FairRoot/PandaRoot
PndTrkClusterList.cxx
Go to the documentation of this file.
1 //
2 // PndTrkClusterList.cxx
3 //
4 // Class for pattern recognition cluster list
5 //
6 // authors: Lia Lavezzi - INFN Pavia (2012)
7 //
8 
9 // #include "PndTrkCluster.h"
10 #include "PndTrkClusterList.h"
11 
12 // #include "PndDetectorList.h"
13 
14 #include <iostream>
15 
16 
17 using namespace std;
18 
19 PndTrkClusterList::PndTrkClusterList() : fClusterList(TClonesArray("PndTrkCluster", 10000)) {}
20 
22  *this = clist;
23 }
24 
26 fClusterList.Clear();
27 }
28 
30  fClusterList = TClonesArray(clist.fClusterList);
31  return *this;
32 }
33 
34 
36  int size = fClusterList.GetEntriesFast();
37  new(fClusterList[size]) PndTrkCluster(*cluster);
38 }
39 
41  fClusterList.RemoveAt(index);
42 }
43 
44 
45 // // CHECK test this
46 // void PndTrkClusterList::ReplaceCluster(Int_t index, PndTrkCluster *cluster) {
47 // fClusterList.RemoveAt(index);
48 // fClusterList.AddAt(cluster, index);
49 // }
50 
52  Clear();
53 }
54 
55 void PndTrkClusterList::Clear(Option_t* opt) {
56 fClusterList.Clear(opt);
57 }
58 
59 // merge clusters
60 
TClonesArray fClusterList
void AddCluster(PndTrkCluster *cluster)
void Clear(Option_t *opt="")
PndTrkClusterList & operator=(const PndTrkClusterList &clist)
void DeleteCluster(Int_t index)
ClassImp(PndAnaContFact)