PandaRoot
PndTrkTrackList.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
20 #ifndef PNDTRKTRACKLIST_H
21 #define PNDTRKTRACKLIST_H 1
22 
23 #include "TVector3.h"
24 #include "PndTrkTrack.h"
25 
26 class TClonesArray;
27 class PndTrkTrackList : public TObject {
28 
29  public:
31  // copy ctor
32  PndTrkTrackList(const PndTrkTrackList &tlist);
35 
36  void AddTrack(PndTrkTrack *track);
37  void DeleteTrack(Int_t index);
38  void Reset();
39  void Clear(Option_t *opt = "");
40 
41  inline Int_t GetNofTracks() { return fTrackList.GetEntriesFast(); }
42 
43  PndTrkTrack *GetTrack(Int_t index) { return (PndTrkTrack *)fTrackList.At(index); }
44 
45  /* void ReplaceTrack(Int_t index, PndTrkTrack *track); */
46 
47  protected:
48  TClonesArray fTrackList;
49  // std::vector< PndTrkTrack > tracklist;
50 
52 };
53 
54 #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)