![]() |
AliRoot Core
v5-06-30 (35d6c57)
|
Implementation of VClusterStore. More...
#include <AliMUONClusterStoreV1.h>
Public Member Functions | |
AliMUONClusterStoreV1 () | |
AliMUONClusterStoreV1 (const AliMUONClusterStoreV1 &rhs) | |
AliMUONClusterStoreV1 & | operator= (const AliMUONClusterStoreV1 &rhs) |
virtual | ~AliMUONClusterStoreV1 () |
virtual AliMUONClusterStoreV1 * | Create () const |
Create an empty copy of this. More... | |
virtual AliMUONVCluster * | CreateCluster (Int_t, Int_t detElemId, Int_t) 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) |
Create a new cluster with an unique ID and add it to the store. More... | |
virtual Bool_t | CanConnect () const |
Whether the Connect(TTree&) method is implemented. 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... | |
virtual Bool_t | Connect (TTree &tree, Bool_t alone=kTRUE) const |
Connect us to a TTree (only valid if CanConnect()==kTRUE) More... | |
virtual void | Clear (Option_t *opt="") |
Clear container. More... | |
virtual Int_t | GetSize () const |
The number of objects stored. More... | |
virtual AliMUONVCluster * | Remove (AliMUONVCluster &cluster) |
Remove a cluster object to the store. More... | |
![]() | |
AliMUONVClusterStore () | |
virtual | ~AliMUONVClusterStore () |
virtual Bool_t | Add (TObject *object) |
Add an object to the store. More... | |
virtual AliMUONVCluster * | FindObject (const TObject *object) const |
Find an object. More... | |
virtual AliMUONVCluster * | FindObject (UInt_t uniqueID) const |
Find an object using a single id. 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 | |
TClonesArray * | ChamberClusters (Int_t chamberId) const |
TObject ** | ChamberClustersPtr (Int_t chamberId) const |
Private Attributes | |
TObjArray * | fClusters |
! Array of TClonesArray of VClusters More... | |
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.
This one is a basic implementation, let's say "legacy" one, i.e. compatible with what we stored in MUON.RecPoints.root files before the switch to data stores.
Definition at line 22 of file AliMUONClusterStoreV1.h.
AliMUONClusterStoreV1::AliMUONClusterStoreV1 | ( | ) |
ctor. Set correct ownerships
Definition at line 48 of file AliMUONClusterStoreV1.cxx.
Referenced by Create().
AliMUONClusterStoreV1::AliMUONClusterStoreV1 | ( | const AliMUONClusterStoreV1 & | rhs | ) |
copy ctor
Definition at line 63 of file AliMUONClusterStoreV1.cxx.
|
virtual |
dtor
Definition at line 81 of file AliMUONClusterStoreV1.cxx.
|
virtual |
Add a cluster object to the store.
Add a cluster to this store
Implements AliMUONVClusterStore.
Definition at line 99 of file AliMUONClusterStoreV1.cxx.
|
virtual |
Create a new cluster with an unique ID and add it to the store.
Add a cluster to this store
Implements AliMUONVClusterStore.
Definition at line 122 of file AliMUONClusterStoreV1.cxx.
|
inlinevirtual |
Whether the Connect(TTree&) method is implemented.
Implements AliMUONVStore.
Definition at line 40 of file AliMUONClusterStoreV1.h.
|
private |
|
private |
Get the internal array of clusters for a given chamber
Definition at line 149 of file AliMUONClusterStoreV1.cxx.
Referenced by Connect().
|
virtual |
Clear container.
Reset internal arrays
Reset the tclonesarray, but keep the tobjarray's size constant.
Implements AliMUONVClusterStore.
Definition at line 214 of file AliMUONClusterStoreV1.cxx.
|
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 163 of file AliMUONClusterStoreV1.cxx.
|
inlinevirtual |
Create an empty copy of this.
Implements AliMUONVStore.
Definition at line 30 of file AliMUONClusterStoreV1.h.
|
virtual |
Return an iterator to loop over the store in the given chamber range.
Return an iterator to loop over our clusters
Implements AliMUONVClusterStore.
Definition at line 235 of file AliMUONClusterStoreV1.cxx.
|
virtual |
Create a cluster.
Create a cluster
Implements AliMUONVClusterStore.
Definition at line 89 of file AliMUONClusterStoreV1.cxx.
|
virtual |
Return an iterator to loop over the whole store.
Return an iterator to loop over our clusters
Implements AliMUONVClusterStore.
Definition at line 227 of file AliMUONClusterStoreV1.cxx.
|
virtual |
The number of objects stored.
Return the number of clusters we hold
Implements AliMUONVStore.
Definition at line 243 of file AliMUONClusterStoreV1.cxx.
AliMUONClusterStoreV1 & AliMUONClusterStoreV1::operator= | ( | const AliMUONClusterStoreV1 & | rhs | ) |
assignment operator
Definition at line 73 of file AliMUONClusterStoreV1.cxx.
|
virtual |
Remove a cluster object to the store.
Remove a cluster
Implements AliMUONVClusterStore.
Definition at line 199 of file AliMUONClusterStoreV1.cxx.
|
private |
! Array of TClonesArray of VClusters
Definition at line 63 of file AliMUONClusterStoreV1.h.
Referenced by ChamberClusters(), ChamberClustersPtr(), Clear(), CreateChamberIterator(), CreateIterator(), GetSize(), and ~AliMUONClusterStoreV1().