CbmRoot
Loading...
Searching...
No Matches
CbmTsDisTofTracklets.h
Go to the documentation of this file.
1/* Copyright (C) 2023 PI-UHd, Heidelberg
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Norbert Herrmann [committer], Pierre-Alain Loizeau */
4
13#define TOFDisplay 1 // =1 means active, other: without Label and not relying on TEvePointSet
14
15#ifndef CBMTSDISTRACKS_H
16#define CBMTSDISTRACKS_H
17
18#include <CbmTimesliceManager.h> // IWYU pragma: keep needed by cling
19
20#include <FairTask.h> // for FairTask, InitStatus
21
22#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
23#include <RtypesCore.h> // for Bool_t, Int_t, Double_t, kFALSE, kTRUE, Opti...
24#include <TEveTrackPropagator.h> // IWYU pragma: keep needed by cling
25#include <TString.h> // for TString
26
27class TClonesArray;
28class TEveElementList;
29class TEveTrackList;
30class TObjArray;
31
32class CbmTsDisTofTracklets : public FairTask {
33
34 public:
37
38
43 CbmTsDisTofTracklets(const char* name, Int_t iVerbose = 1, Bool_t renderP = kFALSE, Bool_t renderT = kTRUE);
44
46 virtual ~CbmTsDisTofTracklets();
47
48 inline static CbmTsDisTofTracklets* Instance() { return fInstance; }
49
51 void SetVerbose(Int_t iVerbose) { fVerbose = iVerbose; }
52 void SetRenderP(Bool_t render) { fRenderP = render; }
53 void SetRenderT(Bool_t render) { fRenderT = render; }
55 virtual void Exec(Option_t* option);
56 virtual InitStatus Init();
57 virtual void SetParContainers();
58
60 virtual void Finish();
61 void GotoEvent(uint32_t uEventIdx);
62 void Reset();
63 TEveTrackList* GetTrGroup(Int_t ihmul, Int_t iOpt);
64#if TOFDisplay == 1 //List for TEvePointSets
65 TEveElementList* GetPSGroup(Int_t ihuml, Int_t iOpt);
66#endif
67
68 protected:
69 TClonesArray* fCbmEvents = nullptr;
70 TClonesArray* fTrackList = nullptr;
71 TEveTrackPropagator* fTrPr = nullptr;
73 TObjArray* fEveTrList = nullptr;
74 TString fEvent = "";
75 TEveTrackList* fTrList = nullptr;
76 TObjArray* fEvePSList = nullptr;
77 TEveElementList* fPSList = nullptr;
78 //TEveElementList *fTrackCont;
79
80 Bool_t fRenderP = kFALSE;
81 Bool_t fRenderT = kFALSE;
82 Double_t MinEnergyLimit = -1.;
83 Double_t MaxEnergyLimit = -1.;
84 Double_t PEnergy = -1.;
85 uint32_t fEventIdx = 0;
86
87 private:
91
93};
94
95
96#endif
TBrowser Event display for Timeslices as Tree entry with CbmEvents in container. Function as unique I...
ClassDef(CbmTsDisTofTracklets, 1)
TEveTrackList * GetTrGroup(Int_t ihmul, Int_t iOpt)
void SetRenderP(Bool_t render)
void SetVerbose(Int_t iVerbose)
CbmTsDisTofTracklets(const CbmTsDisTofTracklets &)
TEveElementList * GetPSGroup(Int_t ihuml, Int_t iOpt)
static CbmTsDisTofTracklets * Instance()
CbmTsDisTofTracklets & operator=(const CbmTsDisTofTracklets &)
void GotoEvent(uint32_t uEventIdx)
static CbmTsDisTofTracklets * fInstance
TEveElementList * fPSList
virtual InitStatus Init()
CbmTimesliceManager * fTimesliceManager
void SetRenderT(Bool_t render)
TEveTrackPropagator * fTrPr
virtual void Exec(Option_t *option)