CbmRoot
CbmPointSetArrayDraw.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmPointSetArrayDraw header file -----
3 // ----- Created 18/06/22 by J. Brandt -----
4 // ----- Following class FairPointSetDraw -----
5 // -------------------------------------------------------------------------
6 
7 
15 #ifndef CBMPOINTSETARRAYDRAW_H
16 #define CBMPOINTSETARRAYDRAW_H
17 
18 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
19 #include <RtypesCore.h> // for Int_t, Double_t, Bool_t, kTRUE, Color_t, Opt...
20 
21 #include <FairTask.h> // for FairTask, InitStatus
22 
23 class CbmPointSetArray;
24 class FairEventManager;
25 class TClonesArray;
26 class TObject;
27 class TVector3;
28 
29 class CbmPointSetArrayDraw : public FairTask {
30 
31 public:
34 
35 
42  CbmPointSetArrayDraw(const char* name,
43  Int_t colorMode,
44  Int_t markerMode,
45  Int_t iVerbose = 1,
46  Bool_t render = kTRUE);
47 
49  virtual ~CbmPointSetArrayDraw();
50 
51  // Setters
53  void SetVerbose(Int_t iVerbose) { fVerbose = iVerbose; }
54  void SetColorMode(Int_t colorMode) { fColorMode = colorMode; }
55  void SetMarkerMode(Int_t markerMode) { fMarkerMode = markerMode; }
56  void SetRender(Bool_t render) { fRender = render; }
57  // Accessors
58  Int_t GetColorMode() const { return fColorMode; }
59  Int_t GetMarkerMode() const { return fMarkerMode; }
60 
62  virtual void Exec(Option_t* option);
64  void Reset();
65 
66 protected:
67  TVector3 GetVector(TObject* obj); //Get 3D Vector of Hit
68  Double_t GetTime(TObject* obj); //Get Time of Hit
69  Int_t GetClusterSize(TObject* obj); //Get ClusterSize of TofHit
70  Double_t GetTot(TObject* obj); //Get ToT of TofHit
71  Int_t GetPointId(TObject* obj); //Get RefId of Hit
72 
73  void DetermineTimeOffset(); //Determine TimeOffset and time of latest hit
74 
75  virtual void SetParContainers();
77  virtual InitStatus Init();
79  virtual void Finish();
80 
81  Int_t fVerbose; //Verbosity level
82  TClonesArray* fPointList; //Array containing list of hits
83  FairEventManager* fEventManager; //Pointer to Event Manager
85  fl; //Pointer to CbmPointSetArray -> Cbm class for displaying array of Hit-sets -> TEvePointSetArray
86  Color_t fColor; //Color of Hit-Markers
87  Style_t fStyle; //Style of Hit-Markers
88  Double_t fTimeOffset; //Time Offset on Hits to scale first hit to 0
89  Double_t fTimeMax; //Max Time of Hits in TofHit
90  Int_t fColorMode; //Int determining how points get color-coded
91  Int_t fMarkerMode; //Int determining how marker-size of points gets coded
92  Bool_t fRender; //Boolean whether points shown on default
93 
94 private:
97 
99 };
100 
101 
102 #endif
CbmPointSetArrayDraw::SetColorMode
void SetColorMode(Int_t colorMode)
Definition: CbmPointSetArrayDraw.h:54
CbmPointSetArrayDraw
Definition: CbmPointSetArrayDraw.h:29
CbmPointSetArrayDraw::fEventManager
FairEventManager * fEventManager
Definition: CbmPointSetArrayDraw.h:83
CbmPointSetArrayDraw::fColorMode
Int_t fColorMode
Definition: CbmPointSetArrayDraw.h:90
CbmPointSetArrayDraw::~CbmPointSetArrayDraw
virtual ~CbmPointSetArrayDraw()
Definition: CbmPointSetArrayDraw.cxx:192
CbmPointSetArray
Definition: CbmPointSetArray.h:23
CbmPointSetArrayDraw::SetVerbose
void SetVerbose(Int_t iVerbose)
Definition: CbmPointSetArrayDraw.h:53
CbmPointSetArrayDraw::fMarkerMode
Int_t fMarkerMode
Definition: CbmPointSetArrayDraw.h:91
CbmPointSetArrayDraw::Reset
void Reset()
Definition: CbmPointSetArrayDraw.cxx:199
CbmPointSetArrayDraw::fPointList
TClonesArray * fPointList
Definition: CbmPointSetArrayDraw.h:82
CbmPointSetArrayDraw::fTimeMax
Double_t fTimeMax
Definition: CbmPointSetArrayDraw.h:89
CbmPointSetArrayDraw::CbmPointSetArrayDraw
CbmPointSetArrayDraw()
Definition: CbmPointSetArrayDraw.cxx:27
CbmPointSetArrayDraw::fColor
Color_t fColor
Definition: CbmPointSetArrayDraw.h:86
CbmPointSetArrayDraw::ClassDef
ClassDef(CbmPointSetArrayDraw, 1)
CbmPointSetArrayDraw::fTimeOffset
Double_t fTimeOffset
Definition: CbmPointSetArrayDraw.h:88
CbmPointSetArrayDraw::GetMarkerMode
Int_t GetMarkerMode() const
Definition: CbmPointSetArrayDraw.h:59
CbmPointSetArrayDraw::fRender
Bool_t fRender
Definition: CbmPointSetArrayDraw.h:92
CbmPointSetArrayDraw::CbmPointSetArrayDraw
CbmPointSetArrayDraw(const CbmPointSetArrayDraw &)
CbmPointSetArrayDraw::fVerbose
Int_t fVerbose
Definition: CbmPointSetArrayDraw.h:81
CbmPointSetArrayDraw::DetermineTimeOffset
void DetermineTimeOffset()
Definition: CbmPointSetArrayDraw.cxx:170
CbmPointSetArrayDraw::GetVector
TVector3 GetVector(TObject *obj)
Definition: CbmPointSetArrayDraw.cxx:124
CbmPointSetArrayDraw::SetMarkerMode
void SetMarkerMode(Int_t markerMode)
Definition: CbmPointSetArrayDraw.h:55
CbmPointSetArrayDraw::Finish
virtual void Finish()
Definition: CbmPointSetArrayDraw.cxx:197
CbmPointSetArrayDraw::SetRender
void SetRender(Bool_t render)
Definition: CbmPointSetArrayDraw.h:56
CbmPointSetArrayDraw::SetParContainers
virtual void SetParContainers()
Definition: CbmPointSetArrayDraw.cxx:194
CbmPointSetArrayDraw::GetClusterSize
Int_t GetClusterSize(TObject *obj)
Definition: CbmPointSetArrayDraw.cxx:140
CbmPointSetArrayDraw::Exec
virtual void Exec(Option_t *option)
Definition: CbmPointSetArrayDraw.cxx:80
CbmPointSetArrayDraw::GetTot
Double_t GetTot(TObject *obj)
Definition: CbmPointSetArrayDraw.cxx:155
CbmPointSetArrayDraw::Init
virtual InitStatus Init()
Definition: CbmPointSetArrayDraw.cxx:62
CbmPointSetArrayDraw::GetPointId
Int_t GetPointId(TObject *obj)
Definition: CbmPointSetArrayDraw.cxx:164
CbmPointSetArrayDraw::fStyle
Style_t fStyle
Definition: CbmPointSetArrayDraw.h:87
CbmPointSetArrayDraw::GetTime
Double_t GetTime(TObject *obj)
Definition: CbmPointSetArrayDraw.cxx:132
CbmPointSetArrayDraw::GetColorMode
Int_t GetColorMode() const
Definition: CbmPointSetArrayDraw.h:58
CbmPointSetArrayDraw::operator=
CbmPointSetArrayDraw & operator=(const CbmPointSetArrayDraw &)
CbmPointSetArrayDraw::fl
CbmPointSetArray * fl
Definition: CbmPointSetArrayDraw.h:85