16#ifndef CBMSTSCLUSTER_H
17#define CBMSTSCLUSTER_H 1
123 void SetProperties(
double charge,
double position,
double positionError,
double time = 0.,
double timeError = 0.)
143 virtual std::string
ToString()
const;
Base class for cluster objects.
static constexpr size_t size()
Base class for cluster objects.
Data class for STS clusters.
double GetPositionError() const
Cluster position error @value Error (r.m.s.) of cluster position in channel number units.
double GetCharge() const
Get cluster charge @value Total cluster charge [e].
double fCharge
Total charge.
int32_t GetSize() const
Set size of the cluster (number of channels) @value size Number of channels from first to last.
void SetSize(int32_t size)
Set size of the cluster (number of channels)
virtual std::string ToString() const
double fTimeError
Error of cluster time [ns].
double fPosition
Cluster centre in channel number units.
ClassDef(CbmStsCluster, 7)
void SetPositionError(double error)
Set the position error.
double fTime
Cluster time (average of digi times) [ns].
CbmStsCluster()
Default constructor.
double GetTime() const
Get cluster time.
int32_t fIndex
Index of cluster in input array.
double GetPosition() const
Cluster position @value Cluster position in channel number units.
void SetIndex(int32_t index)
Set cluster index To keep track of the input during hit finding.
int32_t GetIndex() const
Get cluster index.
virtual ~CbmStsCluster()
Destructor.
int32_t fSize
Difference between first and last channel.
void SetProperties(double charge, double position, double positionError, double time=0., double timeError=0.)
CbmStsCluster(const CbmStsCluster &)=default
Copy constructor.
double GetTimeError() const
Get error of cluster time.
double fPositionError
Cluster centre error (r.m.s.) in channel number units.