AliRoot Core  3abf5b4 (3abf5b4)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONVClusterStore.h
Go to the documentation of this file.
1 #ifndef ALIMUONVCLUSTERSTORE_H
2 #define ALIMUONVCLUSTERSTORE_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6 
7 // $Id$
8 
13 // Author Laurent Aphecetche, Subatech
14 
15 #ifndef ALIMUONVSTORE_H
16 # include "AliMUONVStore.h"
17 #endif
18 
19 #ifndef ALIMUONVCLUSTER_H
20 # include "AliMUONVCluster.h" // must be there for covariant return type of FindObjet methods
21 #endif
22 
23 class AliMUONVCluster;
24 
26 {
27 public:
29  virtual ~AliMUONVClusterStore();
30 
31  virtual Bool_t Add(TObject* object);
32 
34  virtual AliMUONVCluster* Add(const AliMUONVCluster& Cluster) = 0;
36  virtual AliMUONVCluster* Add(Int_t chamberId, Int_t detElemId, Int_t clusterIndex) = 0;
37 
39 
40  static AliMUONVClusterStore* Create(TTree& tree);
41 
43  virtual AliMUONVCluster* CreateCluster(Int_t chamberId, Int_t detElemId, Int_t clusterIndex) const = 0;
44 
46  virtual TIterator* CreateIterator() const = 0;
47 
49  virtual TIterator* CreateChamberIterator(Int_t firstChamberId, Int_t lastChamberId) const = 0;
50 
52  virtual void Clear(Option_t* opt="") = 0;
53 
55  virtual AliMUONVCluster* Remove(AliMUONVCluster& cluster) = 0;
56 
58 
59  // Find an object (default is the same as in AliMUONVStore)
60  virtual AliMUONVCluster* FindObject(const TObject* object) const;
61 
62  // Find an object by its uniqueID (default is the same as in AliMUONVStore)
63  virtual AliMUONVCluster* FindObject(UInt_t uniqueID) const;
64 
65  ClassDef(AliMUONVClusterStore,1) // Cluster container interface
66 };
67 
68 #endif
69 
virtual void Clear(Option_t *opt="")=0
Clear container.
TTree * tree
virtual Bool_t Add(TObject *object)
Add an object to the store.
abstract base class for clusters
virtual AliMUONVStore * Create() const =0
Create an empty copy of this.
Interface of a cluster container.
virtual AliMUONVCluster * FindObject(const TObject *object) const
Find an object.
virtual TIterator * CreateChamberIterator(Int_t firstChamberId, Int_t lastChamberId) const =0
Return an iterator to loop over the store in the given chamber range.
virtual AliMUONVCluster * Remove(AliMUONVCluster &cluster)=0
Remove a cluster object to the store.
virtual AliMUONVCluster * CreateCluster(Int_t chamberId, Int_t detElemId, Int_t clusterIndex) const =0
Create a cluster.
Base class for MUON data stores.
Definition: AliMUONVStore.h:22
virtual TIterator * CreateIterator() const =0
Return an iterator to loop over the whole store.
virtual TObject * FindObject(const char *name) const
Find an object by name.