CbmRoot
Loading...
Searching...
No Matches
CbmTsPointSetArrayDraw.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#ifndef CBMTSPOINTSETARRAYDRAW_H
14#define CBMTSPOINTSETARRAYDRAW_H
15
16#include <FairTask.h> // for FairTask, InitStatus
17
18#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
19#include <RtypesCore.h> // for Int_t, Double_t, Bool_t, kTRUE, Color_t, Opt...
20
23class TClonesArray;
24class TObject;
25class TVector3;
26
27class CbmTsPointSetArrayDraw : public FairTask {
28
29 public:
31 CbmTsPointSetArrayDraw() : FairTask("CbmTsPointSetArrayDraw", 0) {}
32
39 CbmTsPointSetArrayDraw(const char* name, Int_t colorMode, Int_t markerMode, Int_t iVerbose = 1,
40 Bool_t render = kTRUE);
41
44
45 // Setters
47 void SetVerbose(Int_t iVerbose) { fVerbose = iVerbose; }
48 void SetColorMode(Int_t colorMode) { fColorMode = colorMode; }
49 void SetMarkerMode(Int_t markerMode) { fMarkerMode = markerMode; }
50 void SetRender(Bool_t render) { fRender = render; }
51 // Accessors
52 Int_t GetColorMode() const { return fColorMode; }
53 Int_t GetMarkerMode() const { return fMarkerMode; }
54
56 virtual void Exec(Option_t* option);
58 void Reset();
59 void GotoEvent(uint32_t uEventIdx);
60
61 protected:
62 TVector3 GetVector(TObject* obj); //Get 3D Vector of Hit
63 Double_t GetTime(TObject* obj); //Get Time of Hit
64 Int_t GetClusterSize(TObject* obj); //Get ClusterSize of TofHit
65 Double_t GetTot(TObject* obj); //Get ToT of TofHit
66 Int_t GetPointId(TObject* obj); //Get RefId of Hit
67
68 void DetermineTimeOffset(); //Determine TimeOffset and time of latest hit
69
70 virtual void SetParContainers();
72 virtual InitStatus Init();
74 virtual void Finish();
75
76 Int_t fVerbose = 0; // Verbosity level
77 TClonesArray* fCbmEvents = nullptr;
78 TString fTofHitArrayName = "TofUHit";
79 TClonesArray* fTsPointList = nullptr; // Array containing list of hits
80 TClonesArray* fPointList = nullptr; // Array containing list of hits
81 CbmTimesliceManager* fTsManager = nullptr; // Pointer to Event Manager
82 CbmPointSetArray* fl = nullptr; // Pointer to CbmPointSetArray
83 // -> Cbm class for displaying array of Hit-sets -> TEvePointSetArray
84 Color_t fColor = kRed; // Color of Hit-Markers
85 Style_t fStyle = 4; // Style of Hit-Markers
86 Double_t fTimeOffset = 0; // Time Offset on Hits to scale first hit to 0
87 Double_t fTimeMax = 0; // Max Time of Hits in TofHit
88 Int_t fColorMode = 1; // Int determining how points get color-coded
89 Int_t fMarkerMode = 1; // Int determining how marker-size of points gets coded
90 Bool_t fRender = kTRUE; // Boolean whether points shown on default
91
92 private:
95
97};
98
99
100#endif
int Int_t
bool Bool_t
TBrowser Event display for Timeslices as Tree entry with CbmEvents in container. Function as unique I...
void SetMarkerMode(Int_t markerMode)
Double_t GetTot(TObject *obj)
CbmTimesliceManager * fTsManager
void GotoEvent(uint32_t uEventIdx)
void SetVerbose(Int_t iVerbose)
virtual void Exec(Option_t *option)
CbmTsPointSetArrayDraw & operator=(const CbmTsPointSetArrayDraw &)
void SetColorMode(Int_t colorMode)
TVector3 GetVector(TObject *obj)
ClassDef(CbmTsPointSetArrayDraw, 1)
void SetRender(Bool_t render)
CbmTsPointSetArrayDraw(const CbmTsPointSetArrayDraw &)
Double_t GetTime(TObject *obj)