CbmRoot
Loading...
Searching...
No Matches
CbmEvDisTracks.h
Go to the documentation of this file.
1/* Copyright (C) 2015-2020 PI-UHd, GSI
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Mohammad Al-Turany, Norbert Herrmann [committer], Florian Uhlig */
4
5// -------------------------------------------------------------------------
6// ----- FairMCTracks header file -----
7// ----- Created 10/12/07 by M. Al-Turany -----
8// -------------------------------------------------------------------------
9
10
17#define TOFDisplay 1 // =1 means active, other: without Label and not relying on TEvePointSet
18
19#ifndef CBMEVDISTRACKS_H
20#define CBMEVDISTRACKS_H
21
22#include <FairEventManager.h> // IWYU pragma: keep needed by cling
23#include <FairTask.h> // for FairTask, InitStatus
24
25#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
26#include <RtypesCore.h> // for Bool_t, Int_t, Double_t, kFALSE, kTRUE, Opti...
27#include <TEveTrackPropagator.h> // IWYU pragma: keep needed by cling
28#include <TString.h> // for TString
29
30class TClonesArray;
31class TEveElementList;
32class TEveTrackList;
33class TObjArray;
34
35class CbmEvDisTracks : public FairTask {
36
37public:
40
41
46 CbmEvDisTracks(const char* name, Int_t iVerbose = 1, Bool_t renderP = kFALSE, 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
70protected:
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;
85 Double_t PEnergy;
86
87private:
91
93};
94
95
96#endif
TObjArray * fEvePSList
void SetVerbose(Int_t iVerbose)
virtual ~CbmEvDisTracks()
static CbmEvDisTracks * Instance()
TEveTrackList * GetTrGroup(Int_t ihmul, Int_t iOpt)
virtual InitStatus Init()
static CbmEvDisTracks * fInstance
virtual void SetParContainers()
FairEventManager * fEventManager
Double_t MinEnergyLimit
CbmEvDisTracks(const CbmEvDisTracks &)
virtual void Exec(Option_t *option)
CbmEvDisTracks & operator=(const CbmEvDisTracks &)
TClonesArray * fTrackList
Double_t MaxEnergyLimit
TEveTrackList * fTrList
ClassDef(CbmEvDisTracks, 1)
TEveElementList * GetPSGroup(Int_t ihuml, Int_t iOpt)
virtual void Finish()
TEveElementList * fPSList
TEveTrackPropagator * fTrPr
void SetRenderP(Bool_t render)
TObjArray * fEveTrList
void SetRenderT(Bool_t render)