PandaRoot
PndTrkTrackList.h
Go to the documentation of this file.
1 
8 #ifndef PNDTRKTRACKLIST_H
9 #define PNDTRKTRACKLIST_H 1
10 
11 #include "TVector3.h"
12 #include "PndTrkTrack.h"
13 
14 class TClonesArray;
15 class PndTrkTrackList : public TObject {
16 
17  public:
19  // copy ctor
20  PndTrkTrackList(const PndTrkTrackList &tlist);
23 
24  void AddTrack(PndTrkTrack *track);
25  void DeleteTrack(Int_t index);
26  void Reset();
27  void Clear(Option_t *opt = "");
28 
29  inline Int_t GetNofTracks() { return fTrackList.GetEntriesFast(); }
30 
31  PndTrkTrack *GetTrack(Int_t index) { return (PndTrkTrack *)fTrackList.At(index); }
32 
33  /* void ReplaceTrack(Int_t index, PndTrkTrack *track); */
34 
35  protected:
36  TClonesArray fTrackList;
37  // std::vector< PndTrkTrack > tracklist;
38 
40 };
41 
42 #endif
void DeleteTrack(Int_t index)
TClonesArray fTrackList
PndTrkTrackList & operator=(const PndTrkTrackList &tlist)
PndTrkTrack * GetTrack(Int_t index)
void AddTrack(PndTrkTrack *track)
void Clear(Option_t *opt="")
ClassDef(PndTrkTrackList, 1)