FairRoot/PandaRoot
PndTrkClusterList.h
Go to the documentation of this file.
1 
9 #ifndef PNDTRKCLUSTERLIST_H
10 #define PNDTRKCLUSTERLIST_H 1
11 
12 #include "TVector3.h"
13 #include "PndTrkCluster.h"
14 
15 class TClonesArray;
16 class PndTrkClusterList : public TObject
17 {
18 
19  public:
20 
22  // copy ctor
26 
27  void AddCluster(PndTrkCluster *cluster) ;
28  void DeleteCluster(Int_t index) ;
29  void Reset();
30  void Clear(Option_t* opt = "");
31 
32  inline Int_t GetNofClusters() { return fClusterList.GetEntriesFast(); }
33 
34  PndTrkCluster * GetCluster(Int_t index) { return (PndTrkCluster*) fClusterList[index]; }
35 
36 /* void ReplaceCluster(Int_t index, PndTrkCluster *cluster); */
37 
38  protected:
39 
40  TClonesArray fClusterList;
41  // TObjArray clusterlist;
42  // std::vector< PndTrkCluster > clusterlist;
43 
45 };
46 
47 
48 #endif
TClonesArray fClusterList
ClassDef(PndTrkClusterList, 1)
void AddCluster(PndTrkCluster *cluster)
void Clear(Option_t *opt="")
PndTrkClusterList & operator=(const PndTrkClusterList &clist)
void DeleteCluster(Int_t index)
PndTrkCluster * GetCluster(Int_t index)