CbmRoot
CbmEvDisTracks.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- FairMCTracks header file -----
3 // ----- Created 10/12/07 by M. Al-Turany -----
4 // -------------------------------------------------------------------------
5 
6 
13 #define TOFDisplay \
14  1 // =1 means active, other: without Label and not relying on TEvePointSet
15 
16 #ifndef CBMEVDISTRACKS_H
17 #define CBMEVDISTRACKS_H
18 
19 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
20 #include <RtypesCore.h> // for Bool_t, Int_t, Double_t, kFALSE, kTRUE, Opti...
21 #include <TEveTrackPropagator.h> // IWYU pragma: keep needed by cling
22 #include <TString.h> // for TString
23 
24 #include <FairEventManager.h> // IWYU pragma: keep needed by cling
25 #include <FairTask.h> // for FairTask, InitStatus
26 
27 class TClonesArray;
28 class TEveElementList;
29 class TEveTrackList;
30 class TObjArray;
31 
32 class CbmEvDisTracks : public FairTask {
33 
34 public:
37 
38 
43  CbmEvDisTracks(const char* name,
44  Int_t iVerbose = 1,
45  Bool_t renderP = kFALSE,
46  Bool_t renderT = kTRUE);
47 
49  virtual ~CbmEvDisTracks();
50 
51  inline static CbmEvDisTracks* Instance() { return fInstance; }
52 
54  void SetVerbose(Int_t iVerbose) { fVerbose = iVerbose; }
55  void SetRenderP(Bool_t render) { fRenderP = render; }
56  void SetRenderT(Bool_t render) { fRenderT = render; }
58  virtual void Exec(Option_t* option);
59  virtual InitStatus Init();
60  virtual void SetParContainers();
61 
63  virtual void Finish();
64  void Reset();
65  TEveTrackList* GetTrGroup(Int_t ihmul, Int_t iOpt);
66 #if TOFDisplay == 1 //List for TEvePointSets
67  TEveElementList* GetPSGroup(Int_t ihuml, Int_t iOpt);
68 #endif
69 
70 protected:
71  TClonesArray* fTrackList;
72  TEveTrackPropagator* fTrPr;
73  FairEventManager* fEventManager;
74  TObjArray* fEveTrList;
75  TString fEvent;
76  TEveTrackList* fTrList;
77  TObjArray* fEvePSList;
78  TEveElementList* fPSList;
79  //TEveElementList *fTrackCont;
80 
81  Bool_t fRenderP;
82  Bool_t fRenderT;
83  Double_t MinEnergyLimit;
84  Double_t MaxEnergyLimit;
85  Double_t PEnergy;
86 
87 private:
91 
93 };
94 
95 
96 #endif
CbmEvDisTracks::fEventManager
FairEventManager * fEventManager
Definition: CbmEvDisTracks.h:73
CbmEvDisTracks::fTrList
TEveTrackList * fTrList
Definition: CbmEvDisTracks.h:76
CbmEvDisTracks::~CbmEvDisTracks
virtual ~CbmEvDisTracks()
Definition: CbmEvDisTracks.cxx:267
CbmEvDisTracks::Init
virtual InitStatus Init()
Definition: CbmEvDisTracks.cxx:83
CbmEvDisTracks::SetRenderP
void SetRenderP(Bool_t render)
Definition: CbmEvDisTracks.h:55
CbmEvDisTracks::fTrackList
TClonesArray * fTrackList
Definition: CbmEvDisTracks.h:71
CbmEvDisTracks::Exec
virtual void Exec(Option_t *option)
Definition: CbmEvDisTracks.cxx:107
CbmEvDisTracks::Reset
void Reset()
Definition: CbmEvDisTracks.cxx:274
CbmEvDisTracks::fRenderT
Bool_t fRenderT
Definition: CbmEvDisTracks.h:82
CbmEvDisTracks::GetPSGroup
TEveElementList * GetPSGroup(Int_t ihuml, Int_t iOpt)
Definition: CbmEvDisTracks.cxx:336
CbmEvDisTracks::fEveTrList
TObjArray * fEveTrList
Definition: CbmEvDisTracks.h:74
CbmEvDisTracks::Instance
static CbmEvDisTracks * Instance()
Definition: CbmEvDisTracks.h:51
CbmEvDisTracks::operator=
CbmEvDisTracks & operator=(const CbmEvDisTracks &)
CbmEvDisTracks::PEnergy
Double_t PEnergy
Definition: CbmEvDisTracks.h:85
CbmEvDisTracks::fPSList
TEveElementList * fPSList
Definition: CbmEvDisTracks.h:78
CbmEvDisTracks
Definition: CbmEvDisTracks.h:32
CbmEvDisTracks::SetRenderT
void SetRenderT(Bool_t render)
Definition: CbmEvDisTracks.h:56
CbmEvDisTracks::fRenderP
Bool_t fRenderP
Definition: CbmEvDisTracks.h:81
CbmEvDisTracks::fInstance
static CbmEvDisTracks * fInstance
Definition: CbmEvDisTracks.h:88
CbmEvDisTracks::fEvent
TString fEvent
Definition: CbmEvDisTracks.h:75
CbmEvDisTracks::fTrPr
TEveTrackPropagator * fTrPr
Definition: CbmEvDisTracks.h:72
CbmEvDisTracks::MinEnergyLimit
Double_t MinEnergyLimit
Definition: CbmEvDisTracks.h:83
CbmEvDisTracks::GetTrGroup
TEveTrackList * GetTrGroup(Int_t ihmul, Int_t iOpt)
Definition: CbmEvDisTracks.cxx:290
CbmEvDisTracks::MaxEnergyLimit
Double_t MaxEnergyLimit
Definition: CbmEvDisTracks.h:84
CbmEvDisTracks::Finish
virtual void Finish()
Definition: CbmEvDisTracks.cxx:272
CbmEvDisTracks::CbmEvDisTracks
CbmEvDisTracks()
Definition: CbmEvDisTracks.cxx:41
CbmEvDisTracks::fEvePSList
TObjArray * fEvePSList
Definition: CbmEvDisTracks.h:77
CbmEvDisTracks::CbmEvDisTracks
CbmEvDisTracks(const CbmEvDisTracks &)
CbmEvDisTracks::ClassDef
ClassDef(CbmEvDisTracks, 1)
CbmEvDisTracks::SetParContainers
virtual void SetParContainers()
Definition: CbmEvDisTracks.cxx:269
CbmEvDisTracks::SetVerbose
void SetVerbose(Int_t iVerbose)
Definition: CbmEvDisTracks.h:54