BmnRoot
Loading...
Searching...
No Matches
BmnSsdCluster.h
Go to the documentation of this file.
1
9#ifndef BMNSSDCLUSTER_H
10#define BMNSSDCLUSTER_H 1
11
12#include "BmnCluster.h"
13
24{
25
26 public:
27
32
33
37 virtual ~BmnSsdCluster();
38
39
45 Double_t GetCharge() const { return fCharge; }
46
47
51 Int_t GetIndex() const { return fIndex; }
52
53
57 Double_t GetPosition() const { return fPosition; }
58
59
63 Double_t GetPositionError() const { return fPositionError; }
64
65
72 Int_t GetSize() const { return fSize; }
73
74
80 Double_t GetTime() const { return fTime; }
81
82
86 Double_t GetTimeError() const { return fTimeError; }
87
88
93 void SetIndex(Int_t index) { fIndex = index; }
94
95
99 void SetPositionError(Double_t error) { fPositionError = error; }
100
101
109 void SetProperties(Double_t charge, Double_t position,
110 Double_t positionError, Double_t time = 0.,
111 Double_t timeError = 0.) {
112 fCharge = charge;
113 fPosition = position;
114 fPositionError = positionError;
115 fTime = time;
116 fTimeError = timeError;
117 }
118
119
126 void SetSize(Int_t size) { fSize = size; }
127
128
130 virtual std::string ToString() const;
131
132
133
134 private:
135
136 Double_t fCharge;
137 Int_t fSize;
138 Double_t fPosition;
139 Double_t fPositionError;
140 Double_t fTime;
141 Double_t fTimeError;
142 Int_t fIndex;
143
144
145 ClassDef(BmnSsdCluster, 7);
146};
147
148#endif
Base class for cluster objects.
Base class for cluster objects.
Definition BmnCluster.h:22
Data class for SSD clusters.
Int_t GetSize() const
Set size of the cluster (number of channels) @value size Number of channels from first to last.
Double_t GetPosition() const
Cluster position @value Cluster position in channel number units.
void SetIndex(Int_t index)
Set cluster index To keep track of the input during hit finding.
Int_t GetIndex() const
Get cluster index.
Double_t GetPositionError() const
Cluster position error @value Error (r.m.s.) of cluster position in channel number units.
virtual ~BmnSsdCluster()
Destructor.
BmnSsdCluster()
Default constructor.
void SetProperties(Double_t charge, Double_t position, Double_t positionError, Double_t time=0., Double_t timeError=0.)
void SetSize(Int_t size)
Set size of the cluster (number of channels)
Double_t GetCharge() const
Get cluster charge @value Total cluster charge [e].
void SetPositionError(Double_t error)
Set the position error.
virtual std::string ToString() const
Double_t GetTime() const
Get cluster time.
Double_t GetTimeError() const
Get error of cluster time.