CbmRoot
CbmBuildEventsFromTracksReal.h
Go to the documentation of this file.
1 
5 #ifndef CBMBUILDEVENTSFROMTRACKSREAL_H_
6 #define CBMBUILDEVENTSFROMTRACKSREAL_H 1
7 
8 #include "CbmStsTrack.h"
9 #include <FairTask.h>
10 
11 class TClonesArray;
12 class CbmMCEventList;
13 
14 class CbmBuildEventsFromTracksReal : public FairTask {
15 public:
18 
24 
26  virtual void Exec(Option_t* opt);
27 
28 private:
29  struct SortTracks {
31  int index;
32  bool used;
33 
34  SortTracks() : Track(), index(-1), used(false) {}
35  };
36 
37  static bool CompareTrackTime(const SortTracks& a, const SortTracks& b) {
38  return (a.Track.GetTime() < b.Track.GetTime());
39  }
40 
41  TClonesArray* fStsTracks;
42  TClonesArray* fEvents;
43 
45  virtual InitStatus Init();
46 
47 
49 };
50 
51 #endif /* CBMBUILDEVENTSFROMTRACKS_H */
CbmBuildEventsFromTracksReal::SortTracks::used
bool used
Definition: CbmBuildEventsFromTracksReal.h:32
CbmBuildEventsFromTracksReal::SortTracks
Definition: CbmBuildEventsFromTracksReal.h:29
CbmBuildEventsFromTracksReal::SortTracks::SortTracks
SortTracks()
Definition: CbmBuildEventsFromTracksReal.h:34
CbmBuildEventsFromTracksReal::operator=
CbmBuildEventsFromTracksReal & operator=(const CbmBuildEventsFromTracksReal &)=delete
CbmBuildEventsFromTracksReal::Init
virtual InitStatus Init()
Definition: CbmBuildEventsFromTracksReal.cxx:39
CbmBuildEventsFromTracksReal::CompareTrackTime
static bool CompareTrackTime(const SortTracks &a, const SortTracks &b)
Definition: CbmBuildEventsFromTracksReal.h:37
CbmBuildEventsFromTracksReal::CbmBuildEventsFromTracksReal
CbmBuildEventsFromTracksReal()
Definition: CbmBuildEventsFromTracksReal.cxx:25
CbmBuildEventsFromTracksReal::fEvents
TClonesArray * fEvents
Output array (class CbmEvent)
Definition: CbmBuildEventsFromTracksReal.h:42
CbmStsTrack.h
Data class for STS tracks.
CbmBuildEventsFromTracksReal::Exec
virtual void Exec(Option_t *opt)
Definition: CbmBuildEventsFromTracksReal.cxx:60
CbmBuildEventsFromTracksReal::CbmBuildEventsFromTracksReal
CbmBuildEventsFromTracksReal(const CbmBuildEventsFromTracksReal &)=delete
CbmBuildEventsFromTracksReal::ClassDef
ClassDef(CbmBuildEventsFromTracksReal, 1)
CbmMCEventList
Container class for MC events with number, file and start time.
Definition: CbmMCEventList.h:38
CbmBuildEventsFromTracksReal
Definition: CbmBuildEventsFromTracksReal.h:14
CbmBuildEventsFromTracksReal::fStsTracks
TClonesArray * fStsTracks
Input array (class CbmStsDigi)
Definition: CbmBuildEventsFromTracksReal.h:41
CbmBuildEventsFromTracksReal::~CbmBuildEventsFromTracksReal
virtual ~CbmBuildEventsFromTracksReal()
Definition: CbmBuildEventsFromTracksReal.cxx:33
CbmBuildEventsFromTracksReal::SortTracks::index
int index
Definition: CbmBuildEventsFromTracksReal.h:31
CbmBuildEventsFromTracksReal::SortTracks::Track
CbmStsTrack Track
Definition: CbmBuildEventsFromTracksReal.h:30
CbmTrack::GetTime
Double_t GetTime() const
Definition: CbmTrack.h:64
CbmStsTrack
Definition: CbmStsTrack.h:37