CbmRoot
Loading...
Searching...
No Matches
CbmPointSetArrayDraw.h
Go to the documentation of this file.
1/* Copyright (C) 2019-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: J. Brandt, Florian Uhlig [committer] */
4
5// -------------------------------------------------------------------------
6// ----- CbmPointSetArrayDraw header file -----
7// ----- Created 18/06/22 by J. Brandt -----
8// ----- Following class FairPointSetDraw -----
9// -------------------------------------------------------------------------
10
11
19#ifndef CBMPOINTSETARRAYDRAW_H
20#define CBMPOINTSETARRAYDRAW_H
21
22#include <FairTask.h> // for FairTask, InitStatus
23
24#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
25#include <RtypesCore.h> // for Int_t, Double_t, Bool_t, kTRUE, Color_t, Opt...
26
28class FairEventManager;
29class TClonesArray;
30class TObject;
31class TVector3;
32
33class CbmPointSetArrayDraw : public FairTask {
34
35public:
38
39
46 CbmPointSetArrayDraw(const char* name, Int_t colorMode, Int_t markerMode, Int_t iVerbose = 1, 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
66protected:
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
94private:
97
99};
100
101
102#endif
FairEventManager * fEventManager
virtual InitStatus Init()
CbmPointSetArrayDraw(const CbmPointSetArrayDraw &)
void SetRender(Bool_t render)
virtual void Exec(Option_t *option)
Double_t GetTime(TObject *obj)
void SetVerbose(Int_t iVerbose)
void SetColorMode(Int_t colorMode)
Double_t GetTot(TObject *obj)
ClassDef(CbmPointSetArrayDraw, 1)
Int_t GetClusterSize(TObject *obj)
Int_t GetPointId(TObject *obj)
CbmPointSetArrayDraw & operator=(const CbmPointSetArrayDraw &)
TVector3 GetVector(TObject *obj)
void SetMarkerMode(Int_t markerMode)