CbmRoot
CbmStsSensorPoint.cxx
Go to the documentation of this file.
1 
7 #include "CbmStsSensorPoint.h"
8 #include <sstream>
9 
10 using std::string;
11 
12 // --- Default constructor -----------------------------------------------
14  : fX1(0.)
15  , fY1(0.)
16  , fZ1(0.)
17  , fX2(0.)
18  , fY2(0.)
19  , fZ2(0.)
20  , fP(0.)
21  , fELoss(0.)
22  , fTime(0.)
23  , fBx(0.)
24  , fBy(0.)
25  , fBz(0.)
26  , fPid(0) {}
27 // -------------------------------------------------------------------------
28 
29 
30 // --- Destructor --------------------------------------------------------
32 // -------------------------------------------------------------------------
33 
34 
35 // --- Standard constructor ----------------------------------------------
37  Double_t y1,
38  Double_t z1,
39  Double_t x2,
40  Double_t y2,
41  Double_t z2,
42  Double_t p,
43  Double_t eLoss,
44  Double_t time,
45  Double_t bx,
46  Double_t by,
47  Double_t bz,
48  Int_t pid)
49  : fX1(x1)
50  , fY1(y1)
51  , fZ1(z1)
52  , fX2(x2)
53  , fY2(y2)
54  , fZ2(z2)
55  , fP(p)
56  , fELoss(eLoss)
57  , fTime(time)
58  , fBx(bx)
59  , fBy(by)
60  , fBz(bz)
61  , fPid(pid) {}
62 // -------------------------------------------------------------------------
63 
64 
65 // ----- String output -------------------------------------------------
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 
CbmStsSensorPoint::fY2
Double_t fY2
Exit point y [cm].
Definition: CbmStsSensorPoint.h:80
CbmStsSensorPoint::ToString
std::string ToString() const
Definition: CbmStsSensorPoint.cxx:66
CbmStsSensorPoint::fP
Double_t fP
Momentum magnitude at entry point [GeV].
Definition: CbmStsSensorPoint.h:82
CbmStsSensorPoint::fTime
Double_t fTime
Time [ns].
Definition: CbmStsSensorPoint.h:84
CbmStsSensorPoint::fY1
Double_t fY1
Entry point y [cm].
Definition: CbmStsSensorPoint.h:77
CbmStsSensorPoint::fZ2
Double_t fZ2
Exit point z [cm].
Definition: CbmStsSensorPoint.h:81
CbmStsSensorPoint
Container class for a local point in a STS sensor.
Definition: CbmStsSensorPoint.h:19
CbmStsSensorPoint::fELoss
Double_t fELoss
Energy deposit [GeV].
Definition: CbmStsSensorPoint.h:83
CbmStsSensorPoint::fBy
Double_t fBy
Magnetic field y component at midpoint [T].
Definition: CbmStsSensorPoint.h:86
z2
Double_t z2[nSects2]
Definition: pipe_v16a_mvdsts100.h:11
ClassImp
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Definition: CbmConverterManager.cxx:12
CbmStsSensorPoint::~CbmStsSensorPoint
virtual ~CbmStsSensorPoint()
Definition: CbmStsSensorPoint.cxx:31
CbmStsSensorPoint::fZ1
Double_t fZ1
Entry point z [cm].
Definition: CbmStsSensorPoint.h:78
CbmStsSensorPoint::fX1
Double_t fX1
Entry point x [cm].
Definition: CbmStsSensorPoint.h:76
CbmStsSensorPoint::fX2
Double_t fX2
Exit point x [cm].
Definition: CbmStsSensorPoint.h:79
CbmStsSensorPoint::fPid
Int_t fPid
Particle Type [PDG code].
Definition: CbmStsSensorPoint.h:88
z1
Double_t z1[nSects1]
Definition: pipe_v16a_mvdsts100.h:6
CbmStsSensorPoint::CbmStsSensorPoint
CbmStsSensorPoint()
Definition: CbmStsSensorPoint.cxx:13
CbmStsSensorPoint.h