CbmRoot
Loading...
Searching...
No Matches
CbmStsCluster.cxx
Go to the documentation of this file.
1/* Copyright (C) 2008-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese, Anna Kotynia [committer], Andrey Lebedev */
4
14#include "CbmStsCluster.h"
15
16#include <sstream> // for operator<<, basic_ostream, char_traits
17
18using namespace std;
19
20
21// --- Constructor
23 : CbmCluster()
24 , fCharge(0.)
25 , fSize(0)
26 , fPosition(0.)
27 , fPositionError(0.)
28 , fTime(0.)
29 , fTimeError(0.)
30 , fIndex(-1)
31{
32}
33
34
35// --- Destructor
37
38
39// --- String output
41{
42 stringstream ss;
43 ss << "StsCluster: address " << GetAddress() << " | digis " << GetNofDigis() << " | charge " << fCharge << " | time "
44 << fTime << " +- " << fTimeError << " | position " << GetPosition() << " | error " << GetPositionError()
45 << " | Index " << fIndex << "\n " << CbmCluster::ToString();
46 return ss.str();
47}
48
49
ClassImp(CbmConverterManager)
Data class for STS clusters.
Base class for cluster objects.
Definition CbmCluster.h:30
int32_t GetAddress() const
Definition CbmCluster.h:90
virtual std::string ToString() const
Return string representation of the object.
int32_t GetNofDigis() const
Number of digis in cluster.
Definition CbmCluster.h:69
Data class for STS clusters.
double GetPositionError() const
Cluster position error @value Error (r.m.s.) of cluster position in channel number units.
double fCharge
Total charge.
virtual std::string ToString() const
double fTimeError
Error of cluster time [ns].
double fTime
Cluster time (average of digi times) [ns].
CbmStsCluster()
Default constructor.
int32_t fIndex
Index of cluster in input array.
double GetPosition() const
Cluster position @value Cluster position in channel number units.
virtual ~CbmStsCluster()
Destructor.
Hash for CbmL1LinkKey.