CbmRoot
Loading...
Searching...
No Matches
CbmBuildEventsFromTracksReal.h
Go to the documentation of this file.
1/* Copyright (C) 2017 IKF-UFra, GSI
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Valentina Akishina , Maksym Zyzak, Valentina Akishina [committer] */
4
9#ifndef CBMBUILDEVENTSFROMTRACKSREAL_H_
10#define CBMBUILDEVENTSFROMTRACKSREAL_H 1
11
12#include "CbmStsTrack.h"
13
14#include <FairTask.h>
15
16class TClonesArray;
17class CbmMCEventList;
18
19class CbmBuildEventsFromTracksReal : public FairTask {
20 public:
23
28
30 virtual void Exec(Option_t* opt);
31
32 private:
33 struct SortTracks {
35 int index;
36 bool used;
37
38 SortTracks() : Track(), index(-1), used(false) {}
39 };
40
41 static bool CompareTrackTime(const SortTracks& a, const SortTracks& b)
42 {
43 return (a.Track.GetStartTime() < b.Track.GetStartTime());
44 }
45
46 TClonesArray* fStsTracks;
47 TClonesArray* fEvents;
48
50 virtual InitStatus Init();
51
52
54};
55
56#endif /* CBMBUILDEVENTSFROMTRACKS_H */
Data class for STS tracks.
CbmBuildEventsFromTracksReal(const CbmBuildEventsFromTracksReal &)=delete
TClonesArray * fEvents
Output array (class CbmEvent)
static bool CompareTrackTime(const SortTracks &a, const SortTracks &b)
ClassDef(CbmBuildEventsFromTracksReal, 1)
CbmBuildEventsFromTracksReal & operator=(const CbmBuildEventsFromTracksReal &)=delete
TClonesArray * fStsTracks
Input array (class CbmStsDigi)
Container class for MC events with number, file and start time.
double GetStartTime() const
Definition CbmTrack.h:71