AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONClusterStoreV1 Class Reference

Implementation of VClusterStore. More...

#include <AliMUONClusterStoreV1.h>

Inheritance diagram for AliMUONClusterStoreV1:

Public Member Functions

 AliMUONClusterStoreV1 ()
 
 AliMUONClusterStoreV1 (const AliMUONClusterStoreV1 &rhs)
 
AliMUONClusterStoreV1operator= (const AliMUONClusterStoreV1 &rhs)
 
virtual ~AliMUONClusterStoreV1 ()
 
virtual AliMUONClusterStoreV1Create () const
 Create an empty copy of this. More...
 
virtual AliMUONVClusterCreateCluster (Int_t, Int_t detElemId, Int_t) const
 Create a cluster. More...
 
virtual AliMUONVClusterAdd (const AliMUONVCluster &Cluster)
 Add a cluster object to the store. More...
 
virtual AliMUONVClusterAdd (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 AliMUONVClusterRemove (AliMUONVCluster &cluster)
 Remove a cluster object to the store. More...
 
- Public Member Functions inherited from AliMUONVClusterStore
 AliMUONVClusterStore ()
 
virtual ~AliMUONVClusterStore ()
 
virtual Bool_t Add (TObject *object)
 Add an object to the store. More...
 
virtual AliMUONVClusterFindObject (const TObject *object) const
 Find an object. More...
 
virtual AliMUONVClusterFindObject (UInt_t uniqueID) const
 Find an object using a single id. More...
 
- Public Member Functions inherited from AliMUONVStore
 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

TObjArrayfClusters
 ! Array of TClonesArray of VClusters More...
 

Additional Inherited Members

- Static Public Member Functions inherited from AliMUONVClusterStore
static AliMUONVClusterStoreCreate (TTree &tree)
 
- Static Public Member Functions inherited from AliMUONVStore
static AliMUONVStoreCreate (TTree &tree, const char *what)
 Create a store from a TTree. More...
 

Detailed Description

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.

Author
Laurent Aphecetche, Subatech

Definition at line 22 of file AliMUONClusterStoreV1.h.

Constructor & Destructor Documentation

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.

AliMUONClusterStoreV1::~AliMUONClusterStoreV1 ( )
virtual

dtor

Definition at line 81 of file AliMUONClusterStoreV1.cxx.

Member Function Documentation

AliMUONVCluster * AliMUONClusterStoreV1::Add ( const AliMUONVCluster Cluster)
virtual

Add a cluster object to the store.

Add a cluster to this store

Implements AliMUONVClusterStore.

Definition at line 99 of file AliMUONClusterStoreV1.cxx.

AliMUONVCluster * AliMUONClusterStoreV1::Add ( Int_t  chamberId,
Int_t  detElemId,
Int_t  clusterIndex 
)
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.

virtual Bool_t AliMUONClusterStoreV1::CanConnect ( ) const
inlinevirtual

Whether the Connect(TTree&) method is implemented.

Implements AliMUONVStore.

Definition at line 40 of file AliMUONClusterStoreV1.h.

TClonesArray * AliMUONClusterStoreV1::ChamberClusters ( Int_t  chamberId) const
private

Get the internal array of clusters for a given chamber

Definition at line 135 of file AliMUONClusterStoreV1.cxx.

Referenced by Add(), Clear(), GetSize(), and Remove().

TObject ** AliMUONClusterStoreV1::ChamberClustersPtr ( Int_t  chamberId) const
private

Get the internal array of clusters for a given chamber

Definition at line 149 of file AliMUONClusterStoreV1.cxx.

Referenced by Connect().

void AliMUONClusterStoreV1::Clear ( Option_t *  opt = "")
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.

Bool_t AliMUONClusterStoreV1::Connect ( TTree &  tree,
Bool_t  alone = kTRUE 
) const
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.

virtual AliMUONClusterStoreV1* AliMUONClusterStoreV1::Create ( ) const
inlinevirtual

Create an empty copy of this.

Implements AliMUONVStore.

Definition at line 30 of file AliMUONClusterStoreV1.h.

TIterator * AliMUONClusterStoreV1::CreateChamberIterator ( Int_t  firstChamberId,
Int_t  lastChamberId 
) const
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.

AliMUONVCluster * AliMUONClusterStoreV1::CreateCluster ( Int_t  chamberId,
Int_t  detElemId,
Int_t  clusterIndex 
) const
virtual

Create a cluster.

Create a cluster

Implements AliMUONVClusterStore.

Definition at line 89 of file AliMUONClusterStoreV1.cxx.

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

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

AliMUONVCluster * AliMUONClusterStoreV1::Remove ( AliMUONVCluster cluster)
virtual

Remove a cluster object to the store.

Remove a cluster

Implements AliMUONVClusterStore.

Definition at line 199 of file AliMUONClusterStoreV1.cxx.

Member Data Documentation

TObjArray* AliMUONClusterStoreV1::fClusters
private

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