AliRoot Core  3abf5b4 (3abf5b4)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUON2DMap Class Reference

Basic implementation of AliMUONVStore container using AliMpExMap internally. More...

#include <AliMUON2DMap.h>

Inheritance diagram for AliMUON2DMap:

Public Member Functions

 AliMUON2DMap (TRootIOCtor *ioCtor)
 
 AliMUON2DMap (Bool_t optimizeForDEManu)
 
 AliMUON2DMap (const AliMUON2DMap &other)
 
AliMUON2DMapoperator= (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 AliMUONVStoreCreate () 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...
 
- Public Member Functions inherited from AliMUONVStore
 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

AliMpExMapfMap
 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 Public Member Functions inherited from AliMUONVStore
static AliMUONVStoreCreate (TTree &tree, const char *what)
 Create a store from a TTree. More...
 

Detailed Description

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

Author
Laurent Aphecetche

Definition at line 20 of file AliMUON2DMap.h.

Constructor & Destructor Documentation

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.

AliMUON2DMap::~AliMUON2DMap ( )
virtual

Destructor. We delete the map, which will delete the objects, as we're owner.

Definition at line 87 of file AliMUON2DMap.cxx.

AliMUON2DMap::AliMUON2DMap ( )
private

Not implemented.

Referenced by Create().

Member Function Documentation

virtual Bool_t AliMUON2DMap::CanConnect ( ) const
inlinevirtual

Whether the Connect(TTree&) method is implemented.

Implements AliMUONVStore.

Definition at line 35 of file AliMUON2DMap.h.

void AliMUON2DMap::Clear ( Option_t *  opt = "")
virtual

Mandatory methods from TCollection.

Clear memory

Implements AliMUONVStore.

Definition at line 154 of file AliMUON2DMap.cxx.

Referenced by AliMUONDigitStoreVImpl::ClearIndex(), and main().

AliMUONVStore * AliMUON2DMap::Create ( ) const
virtual

Create an empty copy of this.

Create a void copy of *this.

Implements AliMUONVStore.

Definition at line 96 of file AliMUON2DMap.cxx.

TIterator * AliMUON2DMap::CreateIterator ( ) const
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.

TObject * AliMUON2DMap::FindObject ( Int_t  i,
Int_t  j 
) const
virtual
TObject * AliMUON2DMap::FindObject ( UInt_t  uniqueID) const
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.

Int_t AliMUON2DMap::GetSize ( ) const
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().

Int_t AliMUON2DMap::GetSize ( Int_t  i) const
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.

Bool_t AliMUON2DMap::IsOptimizedForDEManu ( ) const
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.

Bool_t AliMUON2DMap::Set ( Int_t  i,
Int_t  j,
TObject *  object,
Bool_t  replace 
)
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().

Member Data Documentation

const Int_t AliMUON2DMap::fgkOptimalSizeForDEManu = 228
staticprivate

Optimal size for DEManu.

Definition at line 64 of file AliMUON2DMap.h.

Referenced by AliMUON2DMap().

AliMpExMap* AliMUON2DMap::fMap
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().

Bool_t AliMUON2DMap::fOptimizeForDEManu
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().


The documentation for this class was generated from the following files: