![]() |
AliRoot Core
v5-06-30 (35d6c57)
|
Implementation of AliMUONVStore. More...
#include <AliMUON1DMap.h>
Public Member Functions | |
AliMUON1DMap (Int_t theSize) | |
AliMUON1DMap (TRootIOCtor *ioCtor) | |
AliMUON1DMap (const AliMUON1DMap &other) | |
AliMUON1DMap & | operator= (const AliMUON1DMap &other) |
virtual | ~AliMUON1DMap () |
virtual Bool_t | Add (TObject *object) |
Add an object to the store. More... | |
virtual Bool_t | CanConnect () const |
Whether the Connect(TTree&) method is implemented. More... | |
virtual void | Clear (Option_t *opt="") |
Clear ourselves (i.e. Reset) More... | |
virtual AliMUON1DMap * | Create () const |
Create an empty copy of this. More... | |
virtual TObject * | FindObject (UInt_t i) const |
Find an object using a single id. More... | |
virtual TObject * | FindObject (Int_t i, Int_t j) const |
Find an object using 2 ids. More... | |
virtual TIterator * | CreateIterator () const |
Return an iterator to loop over the whole store. More... | |
virtual Int_t | GetSize () const |
The number of objects stored. More... | |
![]() | |
AliMUONVStore () | |
virtual | ~AliMUONVStore () |
virtual Bool_t | Connect (TTree &tree, Bool_t alone=kTRUE) const |
Connect us to a TTree (only valid if CanConnect()==kTRUE) More... | |
virtual TObject * | FindObject (const char *name) const |
Find an object by name. More... | |
virtual TObject * | FindObject (const TObject *object) const |
Find an object. More... | |
virtual Int_t | GetSize (Int_t i) const |
The number of objects stored for firstid=i. Not implemented by default. More... | |
virtual Bool_t | IsEmpty () const |
Whether we are empty or not. More... | |
virtual void | Print (Option_t *wildcard="") const |
Print all objects whose name matches wildcard. More... | |
virtual void | Print (Option_t *wildcard, Option_t *opt) const |
Print, with option, all objects whose name matches wildcard. More... | |
Private Member Functions | |
virtual Bool_t | Set (Int_t i, TObject *object) |
AliMUON1DMap () | |
Not implemented. More... | |
Private Attributes | |
AliMpExMap * | fMap |
Internal array (map) More... | |
Additional Inherited Members | |
![]() | |
static AliMUONVStore * | Create (TTree &tree, const char *what) |
Create a store from a TTree. More... | |
Implementation of AliMUONVStore.
This class is simply a wrapper to an AliMpExMap, offering in addition a control over the replacement policy when you add something to it.
Definition at line 21 of file AliMUON1DMap.h.
AliMUON1DMap::AliMUON1DMap | ( | Int_t | theSize | ) |
Default ctor
Definition at line 47 of file AliMUON1DMap.cxx.
AliMUON1DMap::AliMUON1DMap | ( | TRootIOCtor * | ioCtor | ) |
I/O ctor
Definition at line 38 of file AliMUON1DMap.cxx.
AliMUON1DMap::AliMUON1DMap | ( | const AliMUON1DMap & | other | ) |
Copy constructor
Definition at line 61 of file AliMUON1DMap.cxx.
|
virtual |
destructor
Definition at line 78 of file AliMUON1DMap.cxx.
|
private |
Not implemented.
Referenced by Create().
|
virtual |
Add an object to the store.
Add an object to this, using uniqueID as the key
Implements AliMUONVStore.
Definition at line 86 of file AliMUON1DMap.cxx.
Referenced by AliMUONTrackerData::GetChannelSparseHisto().
|
inlinevirtual |
Whether the Connect(TTree&) method is implemented.
Implements AliMUONVStore.
Definition at line 32 of file AliMUON1DMap.h.
|
virtual |
Clear ourselves (i.e. Reset)
Reset
Implements AliMUONVStore.
Definition at line 95 of file AliMUON1DMap.cxx.
|
virtual |
Create an empty copy of this.
Create an empty clone of this
Implements AliMUONVStore.
Definition at line 103 of file AliMUON1DMap.cxx.
|
virtual |
Return an iterator to loop over the whole store.
Create and return an iterator on this map Returned iterator must be deleted by user.
Implements AliMUONVStore.
Definition at line 130 of file AliMUON1DMap.cxx.
|
virtual |
Find an object using a single id.
Get the object located at index i, if it exists, and if i is correct.
Generic find method. Should be overriden by derived class if it can be made more efficient there.
Reimplemented from AliMUONVStore.
Definition at line 111 of file AliMUON1DMap.cxx.
Referenced by AliMUONTrackerData::GetChannelSparseHisto(), and Set().
|
virtual |
Find an object using 2 ids.
Get the object located at index (i,j), if it exists, and if i,j is correct.
Find an object using 2 identifiers
Reimplemented from AliMUONVStore.
Definition at line 119 of file AliMUON1DMap.cxx.
|
virtual |
The number of objects stored.
Return the number of objects we hold
Implements AliMUONVStore.
Definition at line 139 of file AliMUON1DMap.cxx.
AliMUON1DMap & AliMUON1DMap::operator= | ( | const AliMUON1DMap & | other | ) |
Assignment operator
Definition at line 70 of file AliMUON1DMap.cxx.
|
privatevirtual |
Set the object located at i If there's already an object at location i, this method fails and returns kFALSE, otherwise it returns kTRUE
Definition at line 147 of file AliMUON1DMap.cxx.
Referenced by Add().
|
private |
Internal array (map)
Definition at line 57 of file AliMUON1DMap.h.
Referenced by AliMUON1DMap(), Clear(), Create(), CreateIterator(), FindObject(), GetSize(), operator=(), Set(), and ~AliMUON1DMap().