ROOT logo
AliRoot » MUON » MAPPING » AliMpExMap

class AliMpExMap: public TObject

 Class AliMpExMap

 Helper class making Root persistent TExMap
 Author:Ivana Hrivnacova; IPN Orsay

Function Members (Methods)

public:
AliMpExMap()
AliMpExMap(TRootIOCtor*)
AliMpExMap(const AliMpExMap& rhs)
virtual~AliMpExMap()
voidTObject::AbstractMethod(const char* method) const
voidAdd(const TString& key, TObject* object)
voidAdd(Int_t key, TObject* object)
voidAdd(Int_t keyFirst, Int_t keySecond, TObject* object)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
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
AliMpExMapIterator*CreateIterator() 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*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Int_tGetCapacity() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
static Long_tGetIndex(const TString& s)
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
Int_tGetSize() const
static TStringGetString(Long_t index)
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
TObject*GetValue(const TString& key) const
TObject*GetValue(Int_t key) const
TObject*GetValue(Int_t keyFirst, Int_t keySecond) 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_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() 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)
AliMpExMap&operator=(const AliMpExMap& rhs)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(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)
voidSetOwner(Bool_t owner)
voidSetSize(Int_t size)
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:
voidAddKey(Long_t key)
virtual voidCopy(TObject& dest) const
voidFillMap()
static const TString&GetCharacterMap()
static Long_tGetIndex(Int_t first, Int_t second)
static Int_tGetPairFirst(Long_t index)
static Int_tGetPairSecond(Long_t index)

Data Members

private:
TArrayLfKeys/< Array of keys
TExMapfMap!< Transient map class
TObjArrayfObjects/< Array of objects
static const Bool_tfgkDefaultOwnership/< Default ownership
static const Int_tfgkDefaultSize/< Default initial size
static const Int_tfgkSeparator1/< \brief the separator used for conversion
static const Int_tfgkSeparator2/< \brief the separator used for conversion

Class Charts

Inheritance Chart:
TObject
AliMpExMap

Function documentation

const TString& GetCharacterMap()
 Return the string mapping characters to integers
Long_t GetIndex(const TString& s)
 Convert the TString to integer.
TString GetString(Long_t index)
 Convert the integer index to the string.
AliMpExMap()
 Default constructor
AliMpExMap(TRootIOCtor* )
 "Root - I/O" constructor
AliMpExMap(const AliMpExMap& rhs)
 Copy ctor
operator=(const AliMpExMap& rhs)
 Assignment operator
~AliMpExMap()
 Destructor
Long_t GetIndex(Int_t first, Int_t second)
 Convert the pair of integers to integer.
Int_t GetPairFirst(Long_t index)
 Return first integer from index (encoded pair)
Int_t GetPairSecond(Long_t index)
 Return second integer from index (encoded pair)
void FillMap()
 Fill transient map from the arrays of objects and keys
void AddKey(Long_t key)
 Add key in array with checking size
Copy(TObject& dest) const
 Copy this to dest
 Copy implies that dest will become owner of its objects, whatever
 the ownership of (*this) is.
void Clear(Option_t* opt = "")
 Clear memory
void Print(Option_t* opt = "") const
 Print out
void Add(Int_t keyFirst, Int_t keySecond, TObject* object)
 Add object with its key to the map and arrays
void Add(const TString& key, TObject* object)
 Add object with its key to the map and arrays
void Add(Int_t key, TObject* object)
 Add object with its key to the map and arrays
void SetSize(Int_t size)
 Set given size to the key array
void SetOwner(Bool_t owner)
 Set given ownership to object array
Int_t GetSize() const
 Return the map size
Int_t GetCapacity() const
 Return the map capacity
CreateIterator() const
 Return iterator set to the beginning of the map
TObject* GetValue(Int_t keyFirst, Int_t keySecond) const
 Return the object associated with the given key if found,
 otherwise return 0
TObject* GetValue(const TString& key) const
 Return the object associated with the given key if found,
 otherwise return 0
TObject* GetValue(Int_t key) const
 Return the object associated with the given key if found,
 otherwise return 0
void Streamer(TBuffer& )
 Customized streamer                                                     \n
 After the arrays are read, fill the transient map