CbmRoot
Loading...
Searching...
No Matches
CbmStsHit.h
Go to the documentation of this file.
1/* Copyright (C) 2006-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese, Florian Uhlig, Denis Bertini [committer] */
4
15#ifndef CBMSTSSHIT_H
16#define CBMSTSSHIT_H 1
17
18#include "CbmPixelHit.h" // for CbmPixelHit
19
20#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
21#include <TVector3.h> // for TVector3
22
23#include <cstdint>
24#include <string> // for string
25
26
35class CbmStsHit : public CbmPixelHit {
36
37public:
39 CbmStsHit();
40
41
54 CbmStsHit(int32_t address, const TVector3& pos, const TVector3& dpos, double dxy, int32_t frontClusterId,
55 int32_t backClusterId, double time = 0., double timeError = 0., double du = 0., double dv = 0.);
56
57
59 virtual ~CbmStsHit();
60
61
65 int32_t GetBackClusterId() const { return fBackClusterId; }
66
67
74 double GetDu() const { return fDu; }
75
82 void SetDu(Double_t du) { fDu = du; }
83
84
91 double GetDv() const { return fDv; }
92
99 void SetDv(Double_t dv) { fDv = dv; }
100
101
105 int32_t GetFrontClusterId() const { return fFrontClusterId; }
106
111 void SetFrontClusterId(int32_t index) { fFrontClusterId = index; }
112
117 void SetBackClusterId(int32_t index) { fBackClusterId = index; }
118
120 virtual std::string ToString() const;
121
122
123private:
126 double fDu;
127 double fDv;
128
130};
131
132#endif
TVector3 dpos
data class for a reconstructed 3-d hit in the STS
Definition CbmStsHit.h:35
void SetDv(Double_t dv)
Error of coordinate across front-side strips @value Coordinate error [cm].
Definition CbmStsHit.h:99
int32_t GetFrontClusterId() const
Definition CbmStsHit.h:105
double fDu
Error of coordinate across front-side strips [cm].
Definition CbmStsHit.h:126
void SetFrontClusterId(int32_t index)
Set the index of the frontside cluster To keep track of the input during matching.
Definition CbmStsHit.h:111
void SetBackClusterId(int32_t index)
Set the index of the backside cluster To keep track of the input during matching.
Definition CbmStsHit.h:117
ClassDef(CbmStsHit, 7)
int32_t fFrontClusterId
Cluster index front side.
Definition CbmStsHit.h:124
double fDv
Error of coordinate across back-side strips [cm].
Definition CbmStsHit.h:127
virtual std::string ToString() const
Definition CbmStsHit.cxx:50
void SetDu(Double_t du)
Error of coordinate across front-side strips @value Coordinate error [cm].
Definition CbmStsHit.h:82
double GetDv() const
Error of coordinate across front-side strips @value Coordinate error [cm].
Definition CbmStsHit.h:91
double GetDu() const
Error of coordinate across front-side strips @value Coordinate error [cm].
Definition CbmStsHit.h:74
int32_t fBackClusterId
Cluster index back side.
Definition CbmStsHit.h:125
virtual ~CbmStsHit()
Definition CbmStsHit.cxx:46
int32_t GetBackClusterId() const
Definition CbmStsHit.h:65