CbmRoot
CbmStsCluster.h
Go to the documentation of this file.
1 
12 #ifndef CBMSTSCLUSTER_H
13 #define CBMSTSCLUSTER_H 1
14 
15 #include <Rtypes.h> // for ClassDef
16 #include <RtypesCore.h> // for Double_t, Int_t
17 
18 #include <string> // for string
19 
20 #include "CbmCluster.h" // for CbmCluster
21 
31 class CbmStsCluster : public CbmCluster {
32 
33 public:
37  CbmStsCluster();
38 
39 
41  CbmStsCluster(const CbmStsCluster&) = default;
42 
43 
47  virtual ~CbmStsCluster();
48 
49 
55  Double_t GetCharge() const { return fCharge; }
56 
57 
61  Int_t GetIndex() const { return fIndex; }
62 
63 
67  Double_t GetPosition() const { return fPosition; }
68 
69 
73  Double_t GetPositionError() const { return fPositionError; }
74 
75 
82  Int_t GetSize() const { return fSize; }
83 
84 
90  Double_t GetTime() const { return fTime; }
91 
92 
96  Double_t GetTimeError() const { return fTimeError; }
97 
98 
103  void SetIndex(Int_t index) { fIndex = index; }
104 
105 
109  void SetPositionError(Double_t error) { fPositionError = error; }
110 
111 
119  void SetProperties(Double_t charge,
120  Double_t position,
121  Double_t positionError,
122  Double_t time = 0.,
123  Double_t timeError = 0.) {
124  fCharge = charge;
125  fPosition = position;
126  fPositionError = positionError;
127  fTime = time;
128  fTimeError = timeError;
129  }
130 
131 
138  void SetSize(Int_t size) { fSize = size; }
139 
140 
142  virtual std::string ToString() const;
143 
144 
145 private:
146  Double_t fCharge;
147  Int_t fSize;
148  Double_t fPosition;
149  Double_t
151  Double_t fTime;
152  Double_t fTimeError;
153  Int_t fIndex;
154 
155 
157 };
158 
159 #endif
CbmStsCluster::~CbmStsCluster
virtual ~CbmStsCluster()
Destructor.
Definition: CbmStsCluster.cxx:30
CbmStsCluster::GetPosition
Double_t GetPosition() const
Cluster position @value Cluster position in channel number units.
Definition: CbmStsCluster.h:67
CbmStsCluster
Data class for STS clusters.
Definition: CbmStsCluster.h:31
CbmStsCluster::GetSize
Int_t GetSize() const
Set size of the cluster (number of channels) @value size Number of channels from first to last.
Definition: CbmStsCluster.h:82
CbmStsCluster::fTime
Double_t fTime
Cluster time (average of digi times) [ns].
Definition: CbmStsCluster.h:151
CbmStsCluster::SetSize
void SetSize(Int_t size)
Set size of the cluster (number of channels)
Definition: CbmStsCluster.h:138
CbmStsCluster::CbmStsCluster
CbmStsCluster()
Default constructor.
Definition: CbmStsCluster.cxx:18
CbmStsCluster::GetCharge
Double_t GetCharge() const
Get cluster charge @value Total cluster charge [e].
Definition: CbmStsCluster.h:55
CbmStsCluster::fPositionError
Double_t fPositionError
Cluster centre error (r.m.s.) in channel number units.
Definition: CbmStsCluster.h:150
CbmStsCluster::SetIndex
void SetIndex(Int_t index)
Set cluster index To keep track of the input during hit finding.
Definition: CbmStsCluster.h:103
CbmStsCluster::SetProperties
void SetProperties(Double_t charge, Double_t position, Double_t positionError, Double_t time=0., Double_t timeError=0.)
Definition: CbmStsCluster.h:119
CbmStsCluster::GetTime
Double_t GetTime() const
Get cluster time.
Definition: CbmStsCluster.h:90
CbmStsCluster::ToString
virtual std::string ToString() const
Definition: CbmStsCluster.cxx:34
CbmStsCluster::fSize
Int_t fSize
Difference between first and last channel.
Definition: CbmStsCluster.h:147
CbmStsCluster::GetIndex
Int_t GetIndex() const
Get cluster index.
Definition: CbmStsCluster.h:61
CbmStsCluster::fPosition
Double_t fPosition
Cluster centre in channel number units.
Definition: CbmStsCluster.h:148
CbmStsCluster::GetPositionError
Double_t GetPositionError() const
Cluster position error @value Error (r.m.s.) of cluster position in channel number units.
Definition: CbmStsCluster.h:73
CbmStsCluster::CbmStsCluster
CbmStsCluster(const CbmStsCluster &)=default
Copy constructor.
CbmCluster
Base class for cluster objects.
Definition: CbmCluster.h:26
CbmStsCluster::fCharge
Double_t fCharge
Total charge.
Definition: CbmStsCluster.h:146
CbmStsCluster::fIndex
Int_t fIndex
Index of cluster in input array.
Definition: CbmStsCluster.h:153
CbmStsCluster::SetPositionError
void SetPositionError(Double_t error)
Set the position error.
Definition: CbmStsCluster.h:109
CbmStsCluster::ClassDef
ClassDef(CbmStsCluster, 7)
CbmCluster.h
Base class for cluster objects.
CbmStsCluster::GetTimeError
Double_t GetTimeError() const
Get error of cluster time.
Definition: CbmStsCluster.h:96
CbmStsCluster::fTimeError
Double_t fTimeError
Error of cluster time [ns].
Definition: CbmStsCluster.h:152