CbmRoot
CbmPointSetArray.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmPointSetArray header file -----
3 // ----- Created 05/07/22 by J. Brandt -----
4 // ----- Following class TEvePointSetArray -----
5 // -------------------------------------------------------------------------
6 
7 
16 #ifndef CBMPOINTSETARRAY_H
17 #define CBMPOINTSETARRAY_H
18 
19 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
20 #include <RtypesCore.h> // for Int_t, Double_t
21 #include <TEvePointSet.h> // for TEvePointSetArray
22 
23 class CbmPointSetArray : public TEvePointSetArray {
24  friend class CbmPointSetArrayEditor;
25 
26  CbmPointSetArray(const CbmPointSetArray&); // Not implemented
27  CbmPointSetArray& operator=(const CbmPointSetArray&); // Not implemented
28 
29 public:
30  CbmPointSetArray(const char* name = "CbmPointSetArray",
31  const char* title = "");
32  virtual ~CbmPointSetArray();
33 
34  void
35  InitValues(Int_t npoints); // Init arrays for storing of time,cluSize,...
36  void
37  FillValues(Int_t id, Double_t time, Double_t tot, Int_t cluSize, Int_t index);
38  // fill time[id],... index[id] to use information for later color-coding
39  void ApplyColorMode(); // apply colorcoding according to fColorMode
40  void ApplyMarkerMode(); // apply markercoding according to fMarkerMode
41  void ApplyTitles(); // setTitle of each bin and ComputeBBox
42 
43  /* Setters */
44  void SetColorMode(Int_t colorMode) { fColorMode = colorMode; }
45  void SetMarkerMode(Int_t markerMode) { fMarkerMode = markerMode; }
46 
47  /* Accessors */
48  Int_t GetColorMode() const { return fColorMode; }
49  Int_t GetMarkerMode() const { return fMarkerMode; }
50 
51 private:
52  Int_t fColorMode; // determine how to color-code points
53  Int_t fMarkerMode; // determine how to markersize-code points
54  Double_t* fTime; // array for times of hits stored in PointSetArray
55  Int_t* fCluSize; // array for CluSizes of hits stored in PointSetArray
56  Double_t* fToT; // array for ToTs of hits stored in PointSetArray
57  Int_t*
58  fIndex; // array of bin-indices in which hits of PointSetArray are stored
59  Int_t fNPoints; // number of points stored in PointSetArray
60 
61 
64  0); //CbmPointSetArray to implement Additional ColorCoding and other functionalities
65  // Array of TEvePointSet's filled via a common point-source; range of displayed TEvePointSet's can be controlled, based on a separating quantity provided on fill-time by a user.
66 };
67 
68 #endif
CbmPointSetArray::fTime
Double_t * fTime
Definition: CbmPointSetArray.h:54
CbmPointSetArray::ApplyColorMode
void ApplyColorMode()
Apply ColorMode to bins.
Definition: CbmPointSetArray.cxx:71
CbmPointSetArray::fMarkerMode
Int_t fMarkerMode
Definition: CbmPointSetArray.h:53
CbmPointSetArray::fIndex
Int_t * fIndex
Definition: CbmPointSetArray.h:58
CbmPointSetArray
Definition: CbmPointSetArray.h:23
CbmPointSetArray::ClassDef
ClassDef(CbmPointSetArray, 0)
CbmPointSetArray::ApplyMarkerMode
void ApplyMarkerMode()
Apply MarkerMode to bins.
Definition: CbmPointSetArray.cxx:126
CbmPointSetArray::CbmPointSetArray
CbmPointSetArray(const CbmPointSetArray &)
CbmPointSetArrayEditor
Definition: CbmPointSetArrayEditor.h:32
CbmPointSetArray::SetMarkerMode
void SetMarkerMode(Int_t markerMode)
Definition: CbmPointSetArray.h:45
CbmPointSetArray::GetMarkerMode
Int_t GetMarkerMode() const
Definition: CbmPointSetArray.h:49
CbmPointSetArray::operator=
CbmPointSetArray & operator=(const CbmPointSetArray &)
CbmPointSetArray::FillValues
void FillValues(Int_t id, Double_t time, Double_t tot, Int_t cluSize, Int_t index)
FillQuantities.
Definition: CbmPointSetArray.cxx:57
CbmPointSetArray::SetColorMode
void SetColorMode(Int_t colorMode)
Definition: CbmPointSetArray.h:44
CbmPointSetArray::fNPoints
Int_t fNPoints
Definition: CbmPointSetArray.h:59
CbmPointSetArray::fCluSize
Int_t * fCluSize
Definition: CbmPointSetArray.h:55
CbmPointSetArray::ApplyTitles
void ApplyTitles()
Apply BBox-Titles to all bins.
Definition: CbmPointSetArray.cxx:147
CbmPointSetArray::InitValues
void InitValues(Int_t npoints)
Init Arrays for physical Quantities.
Definition: CbmPointSetArray.cxx:46
CbmPointSetArray::fColorMode
Int_t fColorMode
Definition: CbmPointSetArray.h:52
CbmPointSetArray::fToT
Double_t * fToT
Definition: CbmPointSetArray.h:56
CbmPointSetArray::~CbmPointSetArray
virtual ~CbmPointSetArray()
Destructor.
Definition: CbmPointSetArray.cxx:32
CbmPointSetArray::GetColorMode
Int_t GetColorMode() const
Definition: CbmPointSetArray.h:48