![]() |
AliRoot Core
3abf5b4 (3abf5b4)
|
Basic implementation of AliMUONVStore container using AliMpExMap internally. More...
#include <AliMUON2DMap.h>
Public Member Functions | |
AliMUON2DMap (TRootIOCtor *ioCtor) | |
AliMUON2DMap (Bool_t optimizeForDEManu) | |
AliMUON2DMap (const AliMUON2DMap &other) | |
AliMUON2DMap & | operator= (const AliMUON2DMap &other) |
virtual | ~AliMUON2DMap () |
virtual Bool_t | Add (TObject *object) |
Add an object to the store. More... | |
virtual void | Clear (Option_t *opt="") |
Mandatory methods from TCollection. More... | |
virtual Bool_t | CanConnect () const |
Whether the Connect(TTree&) method is implemented. More... | |
virtual AliMUONVStore * | Create () const |
Create an empty copy of this. More... | |
virtual TIterator * | CreateIterator () const |
The returned iterator is owned by the client. More... | |
TIterator * | CreateIterator (Int_t firstI, Int_t lastI) const |
Iterate on part of the store (only for (i,j) where firstI<=i<=lastI. More... | |
virtual TObject * | FindObject (Int_t i, Int_t j) const |
Find an object using 2 ids. More... | |
virtual TObject * | FindObject (UInt_t uid) const |
Find an object using a single id. More... | |
Bool_t | IsOptimizedForDEManu () const |
Whether our internal storage is optimize to store (detection element id, manu id) More... | |
virtual Int_t | GetSize () const |
The number of objects stored. More... | |
virtual Int_t | GetSize (Int_t i) const |
The number of objects stored for firstid=i. Not implemented by default. 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 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 | |
AliMUON2DMap () | |
Not implemented. More... | |
Bool_t | Set (Int_t i, Int_t j, TObject *object, Bool_t replace) |
Private Attributes | |
AliMpExMap * | fMap |
Our internal map (an AliMpExMap of AliMpExMaps) More... | |
Bool_t | fOptimizeForDEManu |
whether (i,j) pair is supposed to be (DetElemId,ManuId) (allow us to allocate right amount of memory, that's all it does. More... | |
Static Private Attributes | |
static const Int_t | fgkOptimalSizeForDEManu = 228 |
Optimal size for DEManu. More... | |
Additional Inherited Members | |
![]() | |
static AliMUONVStore * | Create (TTree &tree, const char *what) |
Create a store from a TTree. More... | |
Basic implementation of AliMUONVStore container using AliMpExMap internally.
Basic implementation of AliMUONVStore container using AliMpExMap internally. What we store is a "double" map : an AliMpExMap of AliMpExMaps
Definition at line 20 of file AliMUON2DMap.h.
AliMUON2DMap::AliMUON2DMap | ( | TRootIOCtor * | ioCtor | ) |
Root I/O constructor.
Definition at line 42 of file AliMUON2DMap.cxx.
AliMUON2DMap::AliMUON2DMap | ( | Bool_t | optimizeForDEManu | ) |
Default constructor.
Definition at line 51 of file AliMUON2DMap.cxx.
AliMUON2DMap::AliMUON2DMap | ( | const AliMUON2DMap & | other | ) |
Copy constructor.
Definition at line 65 of file AliMUON2DMap.cxx.
|
virtual |
Destructor. We delete the map, which will delete the objects, as we're owner.
Definition at line 87 of file AliMUON2DMap.cxx.
|
private |
Not implemented.
Referenced by Create().
|
virtual |
Add an object to the store.
Add object, using the decoding of uniqueID into two ints as the key
Implements AliMUONVStore.
Definition at line 104 of file AliMUON2DMap.cxx.
Referenced by AliMUONAlignmentCompareDialog::CompareAlignment(), AliMUONPainterDataRegistry::CreateInteractiveReadOutConfig(), main(), AliMUONTrackerQADataMakerRec::MakeDigits(), AliMUONTrackerQADataMakerRec::MakeRecPoints(), AliMUONTrackerHV::ReportTrips(), AliMUONCDB::ShowFaultyBusPatches(), AliMUONDigitStoreVImpl::UpdateIndex(), and AliMUONVPainter::WriteIROC().
|
inlinevirtual |
Whether the Connect(TTree&) method is implemented.
Implements AliMUONVStore.
Definition at line 35 of file AliMUON2DMap.h.
|
virtual |
Mandatory methods from TCollection.
Clear memory
Implements AliMUONVStore.
Definition at line 154 of file AliMUON2DMap.cxx.
Referenced by AliMUONDigitStoreVImpl::ClearIndex(), and main().
|
virtual |
Create an empty copy of this.
Create a void copy of *this.
Implements AliMUONVStore.
Definition at line 96 of file AliMUON2DMap.cxx.
|
virtual |
The returned iterator is owned by the client.
Implements AliMUONVStore.
Definition at line 136 of file AliMUON2DMap.cxx.
TIterator * AliMUON2DMap::CreateIterator | ( | Int_t | firstI, |
Int_t | lastI | ||
) | const |
Iterate on part of the store (only for (i,j) where firstI<=i<=lastI.
Definition at line 145 of file AliMUON2DMap.cxx.
|
virtual |
Find an object using 2 ids.
Return the value at position (i,j).
Find an object using 2 identifiers
Reimplemented from AliMUONVStore.
Definition at line 127 of file AliMUON2DMap.cxx.
Referenced by AliMUONAlignmentCompareDialog::CompareAlignment(), AliMUONDigitStoreVImpl::FindIndex(), FindObject(), main(), AliMUONTrackerQADataMakerRec::MakeDigits(), AliMUONTrackerQADataMakerRec::MakeRecPoints(), AliMUONCDB::ShowFaultyBusPatches(), and AliMUONDigitStoreVImpl::UpdateIndex().
|
virtual |
Find an object using a single id.
Return the value at position uid
Generic find method. Should be overriden by derived class if it can be made more efficient there.
Reimplemented from AliMUONVStore.
Definition at line 116 of file AliMUON2DMap.cxx.
|
virtual |
The number of objects stored.
Return the number of objects we hold
Implements AliMUONVStore.
Definition at line 162 of file AliMUON2DMap.cxx.
Referenced by AliMUONCDB::ShowFaultyBusPatches().
|
virtual |
The number of objects stored for firstid=i. Not implemented by default.
Return the number of objects we hold
Number of objects store for "i", whatever that can means
Reimplemented from AliMUONVStore.
Definition at line 182 of file AliMUON2DMap.cxx.
|
inline |
Whether our internal storage is optimize to store (detection element id, manu id)
Definition at line 52 of file AliMUON2DMap.h.
AliMUON2DMap & AliMUON2DMap::operator= | ( | const AliMUON2DMap & | other | ) |
Assignment operator
Definition at line 75 of file AliMUON2DMap.cxx.
|
private |
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).
Definition at line 191 of file AliMUON2DMap.cxx.
Referenced by Add().
|
staticprivate |
Optimal size for DEManu.
Definition at line 64 of file AliMUON2DMap.h.
Referenced by AliMUON2DMap().
|
private |
Our internal map (an AliMpExMap of AliMpExMaps)
Definition at line 66 of file AliMUON2DMap.h.
Referenced by AliMUON2DMap(), Clear(), CreateIterator(), FindObject(), GetSize(), operator=(), Set(), and ~AliMUON2DMap().
|
private |
whether (i,j) pair is supposed to be (DetElemId,ManuId) (allow us to allocate right amount of memory, that's all it does.
Definition at line 67 of file AliMUON2DMap.h.
Referenced by AliMUON2DMap(), Create(), IsOptimizedForDEManu(), operator=(), and Set().