CbmRoot
Loading...
Searching...
No Matches
CbmPointSetArray.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// ----- CbmPointSetArray header file -----
7// ----- Created 05/07/22 by J. Brandt -----
8// ----- Following class TEvePointSetArray -----
9// -------------------------------------------------------------------------
10
11
20#ifndef CBMPOINTSETARRAY_H
21#define CBMPOINTSETARRAY_H
22
23#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
24#include <RtypesCore.h> // for Int_t, Double_t
25#include <TEvePointSet.h> // for TEvePointSetArray
26
27class CbmPointSetArray : public TEvePointSetArray {
29
30 CbmPointSetArray(const CbmPointSetArray&); // Not implemented
31 CbmPointSetArray& operator=(const CbmPointSetArray&); // Not implemented
32
33public:
34 CbmPointSetArray(const char* name = "CbmPointSetArray", const char* title = "");
35 virtual ~CbmPointSetArray();
36
37 void InitValues(Int_t npoints); // Init arrays for storing of time,cluSize,...
38 void FillValues(Int_t id, Double_t time, Double_t tot, Int_t cluSize, Int_t index);
39 // fill time[id],... index[id] to use information for later color-coding
40 void ApplyColorMode(); // apply colorcoding according to fColorMode
41 void ApplyMarkerMode(); // apply markercoding according to fMarkerMode
42 void ApplyTitles(); // setTitle of each bin and ComputeBBox
43
44 /* Setters */
45 void SetColorMode(Int_t colorMode) { fColorMode = colorMode; }
46 void SetMarkerMode(Int_t markerMode) { fMarkerMode = markerMode; }
47
48 /* Accessors */
49 Int_t GetColorMode() const { return fColorMode; }
50 Int_t GetMarkerMode() const { return fMarkerMode; }
51
52private:
53 Int_t fColorMode; // determine how to color-code points
54 Int_t fMarkerMode; // determine how to markersize-code points
55 Double_t* fTime; // array for times of hits stored in PointSetArray
56 Int_t* fCluSize; // array for CluSizes of hits stored in PointSetArray
57 Double_t* fToT; // array for ToTs of hits stored in PointSetArray
58 Int_t* fIndex; // array of bin-indices in which hits of PointSetArray are stored
59 Int_t fNPoints; // number of points stored in PointSetArray
60
61
63 0); //CbmPointSetArray to implement Additional ColorCoding and other functionalities
64 // 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.
65};
66
67#endif
void ApplyTitles()
Apply BBox-Titles to all bins.
void SetMarkerMode(Int_t markerMode)
void SetColorMode(Int_t colorMode)
ClassDef(CbmPointSetArray, 0)
CbmPointSetArray & operator=(const CbmPointSetArray &)
Int_t GetMarkerMode() const
void FillValues(Int_t id, Double_t time, Double_t tot, Int_t cluSize, Int_t index)
FillQuantities.
void ApplyColorMode()
Apply ColorMode to bins.
void InitValues(Int_t npoints)
Init Arrays for physical Quantities.
CbmPointSetArray(const CbmPointSetArray &)
Int_t GetColorMode() const
virtual ~CbmPointSetArray()
Destructor.
void ApplyMarkerMode()
Apply MarkerMode to bins.