CbmRoot
Loading...
Searching...
No Matches
CbmStsSensorPoint.cxx
Go to the documentation of this file.
1
/* Copyright (C) 2013-2016 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Volker Friese [committer] */
4
11
#include "
CbmStsSensorPoint.h
"
12
13
#include <sstream>
14
15
using
std::string;
16
17
// --- Default constructor -----------------------------------------------
18
CbmStsSensorPoint::CbmStsSensorPoint
()
19
: fX1(0.)
20
, fY1(0.)
21
, fZ1(0.)
22
, fX2(0.)
23
, fY2(0.)
24
, fZ2(0.)
25
, fP(0.)
26
, fELoss(0.)
27
, fTime(0.)
28
, fBx(0.)
29
, fBy(0.)
30
, fBz(0.)
31
, fPid(0)
32
{
33
}
34
// -------------------------------------------------------------------------
35
36
37
// --- Destructor --------------------------------------------------------
38
CbmStsSensorPoint::~CbmStsSensorPoint
() {}
39
// -------------------------------------------------------------------------
40
41
42
// --- Standard constructor ----------------------------------------------
43
CbmStsSensorPoint::CbmStsSensorPoint
(Double_t x1, Double_t y1, Double_t z1, Double_t x2, Double_t y2, Double_t z2,
44
Double_t p, Double_t eLoss, Double_t time, Double_t bx, Double_t by, Double_t bz,
45
Int_t pid)
46
: fX1(x1)
47
, fY1(y1)
48
, fZ1(z1)
49
, fX2(x2)
50
, fY2(y2)
51
, fZ2(z2)
52
, fP(p)
53
, fELoss(eLoss)
54
, fTime(time)
55
, fBx(bx)
56
, fBy(by)
57
, fBz(bz)
58
, fPid(pid)
59
{
60
}
61
// -------------------------------------------------------------------------
62
63
64
// ----- String output -------------------------------------------------
65
string
CbmStsSensorPoint::ToString
()
const
66
{
67
std::stringstream ss;
68
ss <<
"PID: "
<<
fPid
<<
", p = "
<<
fP
<<
", eLoss = "
<<
fELoss
<<
", "
69
<<
"in : ("
<<
fX1
<<
", "
<<
fY1
<<
", "
<<
fZ1
<<
"), "
70
<<
"out: ("
<<
fX2
<<
", "
<<
fY2
<<
", "
<<
fZ2
<<
"), "
71
<<
"at t = "
<<
fTime
<<
", field "
<<
fBy
;
72
return
ss.str();
73
}
74
// -------------------------------------------------------------------------
75
76
77
ClassImp
(
CbmStsSensorPoint
)
ClassImp
ClassImp(CbmConverterManager)
CbmStsSensorPoint.h
CbmStsSensorPoint
Container class for a local point in a STS sensor.
Definition
CbmStsSensorPoint.h:24
CbmStsSensorPoint::fY2
Double_t fY2
Exit point y [cm].
Definition
CbmStsSensorPoint.h:74
CbmStsSensorPoint::fBy
Double_t fBy
Magnetic field y component at midpoint [T].
Definition
CbmStsSensorPoint.h:80
CbmStsSensorPoint::fP
Double_t fP
Momentum magnitude at entry point [GeV].
Definition
CbmStsSensorPoint.h:76
CbmStsSensorPoint::fX2
Double_t fX2
Exit point x [cm].
Definition
CbmStsSensorPoint.h:73
CbmStsSensorPoint::CbmStsSensorPoint
CbmStsSensorPoint()
Definition
CbmStsSensorPoint.cxx:18
CbmStsSensorPoint::ToString
std::string ToString() const
Definition
CbmStsSensorPoint.cxx:65
CbmStsSensorPoint::fZ1
Double_t fZ1
Entry point z [cm].
Definition
CbmStsSensorPoint.h:72
CbmStsSensorPoint::~CbmStsSensorPoint
virtual ~CbmStsSensorPoint()
Definition
CbmStsSensorPoint.cxx:38
CbmStsSensorPoint::fTime
Double_t fTime
Time [ns].
Definition
CbmStsSensorPoint.h:78
CbmStsSensorPoint::fX1
Double_t fX1
Entry point x [cm].
Definition
CbmStsSensorPoint.h:70
CbmStsSensorPoint::fY1
Double_t fY1
Entry point y [cm].
Definition
CbmStsSensorPoint.h:71
CbmStsSensorPoint::fELoss
Double_t fELoss
Energy deposit [GeV].
Definition
CbmStsSensorPoint.h:77
CbmStsSensorPoint::fPid
Int_t fPid
Particle Type [PDG code].
Definition
CbmStsSensorPoint.h:82
CbmStsSensorPoint::fZ2
Double_t fZ2
Exit point z [cm].
Definition
CbmStsSensorPoint.h:75
sim
detectors
sts
CbmStsSensorPoint.cxx
Generated on Mon Feb 3 2025 23:04:01 for CbmRoot by
1.12.0