ROOT logo
AliRoot » MUON » AliMUON2DMap

class AliMUON2DMap: public AliMUONVStore

 \class AliMUON2DMap
 Basic implementation of AliMUONVStore container using
 AliMpExMap internally.
 What we store is a "double" map : an AliMpExMap of AliMpExMaps

 \author Laurent Aphecetche

Function Members (Methods)

public:
AliMUON2DMap(TRootIOCtor* ioCtor)
AliMUON2DMap(Bool_t optimizeForDEManu)
AliMUON2DMap(const AliMUON2DMap& other)
virtual~AliMUON2DMap()
voidTObject::AbstractMethod(const char* method) const
virtual Bool_tAdd(TObject* object)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
virtual Bool_tCanConnect() const
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidClear(Option_t* opt = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual Bool_tAliMUONVStore::Connect(TTree& tree, Bool_t alone = kTRUE) const
virtual voidTObject::Copy(TObject& object) const
virtual AliMUONVStore*Create() const
virtual TIterator*CreateIterator() const
TIterator*CreateIterator(Int_t firstI, Int_t lastI) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*FindObject(UInt_t uid) const
virtual TObject*FindObject(Int_t i, Int_t j) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual Int_tGetSize() const
virtual Int_tGetSize(Int_t i) const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tAliMUONVStore::IsEmpty() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
Bool_tIsOptimizedForDEManu() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
AliMUON2DMap&operator=(const AliMUON2DMap& other)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidAliMUONVStore::Print(Option_t* wildcard = "") const
virtual voidAliMUONVStore::Print(Option_t* wildcard, Option_t* opt) const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
private:
AliMUON2DMap()
Bool_tSet(Int_t i, Int_t j, TObject* object, Bool_t replace)

Data Members

private:
AliMpExMap*fMap/< Our internal map (an AliMpExMap of AliMpExMaps)
Bool_tfOptimizeForDEManu/< whether (i,j) pair is supposed to be (DetElemId,ManuId) (allow us to allocate right amount of memory, that's all it does.
static const Int_tfgkOptimalSizeForDEManu/< Optimal size for DEManu

Class Charts

Inheritance Chart:
TObject
AliMUONVStore
AliMUON2DMap

Function documentation

AliMUON2DMap(TRootIOCtor* ioCtor)
 Root I/O constructor.
AliMUON2DMap(Bool_t optimizeForDEManu)
 Default constructor.
 hard-coded constant in order not to depend on mapping
 if this number ever change, it will not break the code, simply the
 automatic resizing will give a warning...
AliMUON2DMap(const AliMUON2DMap& other)
 Copy constructor.
operator=(const AliMUON2DMap& other)
 Assignment operator
~AliMUON2DMap()
 Destructor.
 We delete the map, which will delete the objects, as we're owner.
Create() const
 Create a void copy of *this.
Add(TObject* object)
 Add object, using the decoding of uniqueID into two ints as the key
FindObject(UInt_t uid) const
 Return the value at position uid
FindObject(Int_t i, Int_t j) const
 Return the value at position (i,j).
CreateIterator() const
 Create and return an iterator on this map
 Returned iterator must be deleted by user.
CreateIterator(Int_t firstI, Int_t lastI) const
 Create and return an iterator on this map
 Returned iterator must be deleted by user.
Clear(Option_t* opt = "")
 Clear memory
GetSize() const
 Return the number of objects we hold
GetSize(Int_t i) const
 Return the number of objects we hold
Set(Int_t i, Int_t j, TObject* object, Bool_t replace)
 Set the object at position (i,j).
 If replace==kTRUE, we don't care if there's an object there already,
 otherwise we might refuse to set if the (i,j) location is already
 filled (in which case we return kFALSE).
AliMUON2DMap(TRootIOCtor* ioCtor)
Bool_t CanConnect() const
 Whether the Connect(TTree&) method is implemented
{ return kFALSE; }
Bool_t IsOptimizedForDEManu() const
 Whether our internal storage is optimize to store (detection element id, manu id)
{ return fOptimizeForDEManu; }