![]() |
AliRoot Core
ee782a0 (ee782a0)
|
Implementation of VClusterStore. More...
#include <AliMUONClusterStoreV2.h>
Public Member Functions | |
AliMUONClusterStoreV2 () | |
AliMUONClusterStoreV2 (TRootIOCtor *dummy) | |
AliMUONClusterStoreV2 (const AliMUONClusterStoreV2 &store) | |
AliMUONClusterStoreV2 & | operator= (const AliMUONClusterStoreV2 &store) |
virtual | ~AliMUONClusterStoreV2 () |
virtual void | Clear (Option_t *opt="") |
Clear container. More... | |
virtual Bool_t | CanConnect () const |
Whether the Connect(TTree&) method is implemented. More... | |
virtual Bool_t | Connect (TTree &tree, Bool_t alone=kTRUE) const |
Connect us to a TTree (only valid if CanConnect()==kTRUE) More... | |
virtual AliMUONClusterStoreV2 * | Create () const |
Create an empty copy of this. More... | |
virtual AliMUONVCluster * | CreateCluster (Int_t chamberId, Int_t detElemId, Int_t clusterIndex) const |
Create a cluster. More... | |
virtual AliMUONVCluster * | Add (const AliMUONVCluster &Cluster) |
Add a cluster object to the store. More... | |
virtual AliMUONVCluster * | Add (Int_t chamberId, Int_t detElemId, Int_t clusterIndex) |
Create a new cluster with an unique ID and add it to the store. More... | |
virtual AliMUONVCluster * | Remove (AliMUONVCluster &cluster) |
Remove a cluster object to the store. More... | |
virtual Int_t | GetSize () const |
Return the number of clusters we hold. More... | |
AliMUONVCluster * | FindObject (const TObject *object) const |
Find an object. More... | |
AliMUONVCluster * | FindObject (UInt_t uniqueID) const |
Find an object using a single id. More... | |
virtual TIterator * | CreateIterator () const |
Return an iterator to loop over the whole store. More... | |
virtual TIterator * | CreateChamberIterator (Int_t firstChamberId, Int_t lastChamberId) const |
Return an iterator to loop over the store in the given chamber range. More... | |
![]() | |
AliMUONVClusterStore () | |
virtual | ~AliMUONVClusterStore () |
virtual Bool_t | Add (TObject *object) |
Add an object to the store. More... | |
![]() | |
AliMUONVStore () | |
virtual | ~AliMUONVStore () |
virtual TObject * | FindObject (const char *name) const |
Find an object by name. More... | |
virtual TObject * | FindObject (Int_t i, Int_t j) const |
Find an object using 2 ids. 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 | |
void | ReMap () |
void | UpdateMap (AliMUONVCluster &cluster) |
Private Attributes | |
TClonesArray * | fClusters |
collection of clusters More... | |
TClonesArray * | fMap |
! index map for fast cluster retrieval More... | |
Bool_t | fMapped |
! whether our internal indices are uptodate More... | |
Friends | |
class | AliMUONClusterStoreV2Iterator |
Additional Inherited Members | |
![]() | |
static AliMUONVClusterStore * | Create (TTree &tree) |
![]() | |
static AliMUONVStore * | Create (TTree &tree, const char *what) |
Create a store from a TTree. More... | |
Implementation of VClusterStore.
Implementation of VClusterStore.
Note that clusters are identified by their UniqueID, so it MUST be correctly set
Definition at line 22 of file AliMUONClusterStoreV2.h.
AliMUONClusterStoreV2::AliMUONClusterStoreV2 | ( | ) |
AliMUONClusterStoreV2::AliMUONClusterStoreV2 | ( | TRootIOCtor * | dummy | ) |
Dummy IO ctor that does not allocate memory
Definition at line 48 of file AliMUONClusterStoreV2.cxx.
AliMUONClusterStoreV2::AliMUONClusterStoreV2 | ( | const AliMUONClusterStoreV2 & | store | ) |
Copy constructor
Definition at line 68 of file AliMUONClusterStoreV2.cxx.
|
virtual |
Destructor
Definition at line 93 of file AliMUONClusterStoreV2.cxx.
|
virtual |
Add a cluster object to the store.
Add a cluster to this store
Implements AliMUONVClusterStore.
Definition at line 147 of file AliMUONClusterStoreV2.cxx.
Referenced by Create().
|
virtual |
Create a new cluster with an unique ID and add it to the store.
Add an empty cluster with an unique ID to this store
Implements AliMUONVClusterStore.
Definition at line 182 of file AliMUONClusterStoreV2.cxx.
|
inlinevirtual |
Whether the Connect(TTree&) method is implemented.
Implements AliMUONVStore.
Definition at line 36 of file AliMUONClusterStoreV2.h.
|
virtual |
Clear container.
Clear the internal cluster array AND the index
Implements AliMUONVClusterStore.
Definition at line 101 of file AliMUONClusterStoreV2.cxx.
Referenced by TestRecPoints().
|
virtual |
Connect us to a TTree (only valid if CanConnect()==kTRUE)
Connect this to the tree, i.e. make the branches or set their addresses.
Connect to a Ttree
Reimplemented from AliMUONVStore.
Definition at line 119 of file AliMUONClusterStoreV2.cxx.
Referenced by CanConnect().
|
inlinevirtual |
Create an empty copy of this.
Implements AliMUONVStore.
Definition at line 40 of file AliMUONClusterStoreV2.h.
|
virtual |
Return an iterator to loop over the store in the given chamber range.
Return an iterator to loop over clusters in the chambers within the given range
Implements AliMUONVClusterStore.
Definition at line 293 of file AliMUONClusterStoreV2.cxx.
Referenced by GetSize().
|
virtual |
Create a cluster.
Create a cluster
Implements AliMUONVClusterStore.
Definition at line 140 of file AliMUONClusterStoreV2.cxx.
Referenced by Create().
|
virtual |
Return an iterator to loop over the whole store.
Return an iterator to loop over all clusters
Implements AliMUONVClusterStore.
Definition at line 286 of file AliMUONClusterStoreV2.cxx.
Referenced by GetSize(), and TestRecPoints().
|
virtual |
Find an object.
Find an object, if of AliMUONVCluster type.
Reimplemented from AliMUONVClusterStore.
Definition at line 268 of file AliMUONClusterStoreV2.cxx.
|
virtual |
Find an object using a single id.
Find a cluster by its UniqueID
Generic find method. Should be overriden by derived class if it can be made more efficient there.
Reimplemented from AliMUONVClusterStore.
Definition at line 277 of file AliMUONClusterStoreV2.cxx.
|
inlinevirtual |
Return the number of clusters we hold.
Implements AliMUONVStore.
Definition at line 54 of file AliMUONClusterStoreV2.h.
AliMUONClusterStoreV2 & AliMUONClusterStoreV2::operator= | ( | const AliMUONClusterStoreV2 & | store | ) |
Assignment operator
Definition at line 79 of file AliMUONClusterStoreV2.cxx.
|
private |
Recompute the fMap, which map (ch) to an index within the fClusters array
Definition at line 228 of file AliMUONClusterStoreV2.cxx.
Referenced by AliMUONClusterStoreV2(), GetSize(), operator=(), and UpdateMap().
|
virtual |
Remove a cluster object to the store.
Remove a cluster
Implements AliMUONVClusterStore.
Definition at line 209 of file AliMUONClusterStoreV2.cxx.
Referenced by Create().
|
private |
Update the internal index given this new cluster
Definition at line 260 of file AliMUONClusterStoreV2.cxx.
|
friend |
Definition at line 24 of file AliMUONClusterStoreV2.h.
Referenced by CreateChamberIterator().
|
private |
collection of clusters
Definition at line 69 of file AliMUONClusterStoreV2.h.
Referenced by Add(), Clear(), Connect(), CreateIterator(), GetSize(), operator=(), ReMap(), Remove(), and ~AliMUONClusterStoreV2().
|
private |
! index map for fast cluster retrieval
Definition at line 70 of file AliMUONClusterStoreV2.h.
Referenced by Clear(), FindObject(), AliMUONClusterStoreV2Iterator::Next(), operator=(), ReMap(), AliMUONClusterStoreV2Iterator::Reset(), UpdateMap(), and ~AliMUONClusterStoreV2().
|
private |
! whether our internal indices are uptodate
Definition at line 71 of file AliMUONClusterStoreV2.h.
Referenced by AliMUONClusterStoreV2(), Clear(), CreateChamberIterator(), FindObject(), operator=(), ReMap(), Remove(), and UpdateMap().