FairRoot/PandaRoot
PndTrkTrackList.cxx
Go to the documentation of this file.
1 //
2 // PndTrkTrackList.cxx
3 //
4 // Class for pattern recognition track list
5 // (taken from PndTrkClusterList)
6 //
7 // authors: Lia Lavezzi - INFN Pavia (2012)
8 //
9 
10 // #include "PndTrkTrack.h"
11 #include "PndTrkTrackList.h"
12 
13 // #include "PndDetectorList.h"
14 
15 #include <iostream>
16 
17 
18 using namespace std;
19 
20 PndTrkTrackList::PndTrkTrackList() : fTrackList(TClonesArray("PndTrkTrack", 10000)) {}
21 
22 PndTrkTrackList::PndTrkTrackList(const PndTrkTrackList& tlist) : TObject(tlist) {
23  *this = tlist;
24 }
25 
27  fTrackList.Clear();
28 }
29 
31  fTrackList = TClonesArray(tlist.fTrackList);
32  return *this;
33 }
34 
35 
37  int size = fTrackList.GetEntriesFast();
38  new(fTrackList[size]) PndTrkTrack(*track);
39 }
40 
41 void PndTrkTrackList::DeleteTrack(Int_t index) {
42  fTrackList.RemoveAt(index);
43 }
44 
45 
46 // // CHECK test this
47 // void PndTrkTrackList::ReplaceTrack(Int_t index, PndTrkTrack *track) {
48 // fTrackList.RemoveAt(index);
49 // fTrackList.AddAt(track, index);
50 // }
51 
53  Clear();
54 }
55 
56 void PndTrkTrackList::Clear(Option_t* opt) {
57 fTrackList.Clear(opt);
58 }
59 // merge tracks
60 
void DeleteTrack(Int_t index)
PndRiemannTrack track
Definition: RiemannTest.C:33
TClonesArray fTrackList
void AddTrack(PndTrkTrack *track)
PndTrkTrackList & operator=(const PndTrkTrackList &tlist)
ClassImp(PndAnaContFact)
void Clear(Option_t *opt="")