CbmRoot
CbmStsCluster.cxx
Go to the documentation of this file.
1 
10 #include "CbmStsCluster.h"
11 
12 #include <sstream> // for operator<<, basic_ostream, char_traits
13 
14 using namespace std;
15 
16 
17 // --- Constructor
19  : CbmCluster()
20  , fCharge(0.)
21  , fSize(0)
22  , fPosition(0.)
23  , fPositionError(0.)
24  , fTime(0.)
25  , fTimeError(0.)
26  , fIndex(-1) {}
27 
28 
29 // --- Destructor
31 
32 
33 // --- String output
34 string CbmStsCluster::ToString() const {
35  stringstream ss;
36  ss << "StsCluster: address " << GetAddress() << " | digis " << GetNofDigis()
37  << " | charge " << fCharge << " | time " << fTime << " +- " << fTimeError
38  << " | position " << GetPosition() << " | error " << GetPositionError()
39  << " | Index " << fIndex << "\n " << CbmCluster::ToString();
40  return ss.str();
41 }
42 
43 
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::fTime
Double_t fTime
Cluster time (average of digi times) [ns].
Definition: CbmStsCluster.h:151
CbmStsCluster::CbmStsCluster
CbmStsCluster()
Default constructor.
Definition: CbmStsCluster.cxx:18
CbmCluster::GetNofDigis
Int_t GetNofDigis() const
Number of digis in cluster.
Definition: CbmCluster.h:69
CbmCluster::ToString
virtual std::string ToString() const
Return string representation of the object.
Definition: CbmCluster.cxx:74
CbmStsCluster::ToString
virtual std::string ToString() const
Definition: CbmStsCluster.cxx:34
CbmCluster::GetAddress
Int_t GetAddress() const
Definition: CbmCluster.h:90
ClassImp
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Definition: CbmConverterManager.cxx:12
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
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.h
Data class for STS clusters.
CbmStsCluster::fTimeError
Double_t fTimeError
Error of cluster time [ns].
Definition: CbmStsCluster.h:152