BmnRoot
26.10.0-19-g6979a6c6
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
CbmMvdPoint.cxx
Go to the documentation of this file.
1
// -------------------------------------------------------------------------
2
// ----- CbmMvdPoint source file -----
3
// ----- Created 06/11/06 by V. Friese -----
4
// -------------------------------------------------------------------------
5
#include "
CbmMvdPoint.h
"
6
7
#include <iostream>
8
9
using
std::cout;
10
using
std::endl;
11
12
// ----- Default constructor -------------------------------------------
13
CbmMvdPoint::CbmMvdPoint
()
14
:
FairMCPoint
()
15
,
CbmMvdDetectorId
()
16
,
fX_out
(0)
17
,
fY_out
(0)
18
,
fZ_out
(0)
19
,
fPx_out
(0)
20
,
fPy_out
(0)
21
,
fPz_out
(0)
22
,
fPdgCode
(0)
23
,
fPointId
(-1)
24
{}
25
// -------------------------------------------------------------------------
26
27
// ----- Standard constructor ------------------------------------------
28
CbmMvdPoint::CbmMvdPoint
(
Int_t
trackID,
29
Int_t
pdgCode,
30
Int_t
stationNr,
31
TVector3
posIn,
32
TVector3
posOut,
33
TVector3
momIn,
34
TVector3
momOut,
35
Double_t
tof,
36
Double_t
length,
37
Double_t
eLoss)
38
:
FairMCPoint
(trackID, stationNr, posIn, momIn, tof, length, eLoss)
39
,
CbmMvdDetectorId
()
40
,
fX_out
(posOut.X())
41
,
fY_out
(posOut.Y())
42
,
fZ_out
(posOut.Z())
43
,
fPx_out
(momOut.Px())
44
,
fPy_out
(momOut.Py())
45
,
fPz_out
(momOut.Pz())
46
,
fPdgCode
(pdgCode)
47
,
fPointId
(-1)
48
{
49
SetLink(FairLink(
kMCTrack
, trackID));
50
fDetectorID =
DetectorId
(stationNr);
51
}
52
53
// -------------------------------------------------------------------------
54
55
// ----- Destructor ----------------------------------------------------
56
CbmMvdPoint::~CbmMvdPoint
() {}
57
// -------------------------------------------------------------------------
58
59
// ----- Public method Print -------------------------------------------
60
void
CbmMvdPoint::Print
(
const
Option_t
* opt)
const
61
{
62
cout <<
"-I- CbmMvdPoint: MVD Point for track "
<< fTrackID <<
" in station "
<<
GetStationNr
() << endl;
63
cout <<
" Position ("
<< fX <<
", "
<< fY <<
", "
<< fZ <<
") cm"
<< endl;
64
cout <<
" Momentum ("
<< fPx <<
", "
<< fPy <<
", "
<< fPz <<
") GeV"
<< endl;
65
cout <<
" Time "
<< fTime <<
" ns, Length "
<< fLength <<
" cm, Energy loss "
<< fELoss * 1.0e06 <<
" keV"
66
<< endl;
67
}
68
// -------------------------------------------------------------------------
DetectorId
DetectorId
BM@N DetectorID enumerator.
Definition
BmnDetectorList.h:12
kMCTrack
@ kMCTrack
Definition
BmnDetectorList.h:46
CbmMvdPoint.h
Int_t
int Int_t
Double_t
double Double_t
Option_t
const char Option_t
CbmMvdDetectorId::CbmMvdDetectorId
CbmMvdDetectorId()
Constructor.
Definition
CbmMvdDetectorId.cxx:7
CbmMvdPoint::GetStationNr
Int_t GetStationNr() const
Definition
CbmMvdPoint.h:71
CbmMvdPoint::fY_out
Double32_t fY_out
Definition
CbmMvdPoint.h:87
CbmMvdPoint::fPointId
Int_t fPointId
Definition
CbmMvdPoint.h:90
CbmMvdPoint::fPy_out
Double32_t fPy_out
Definition
CbmMvdPoint.h:88
CbmMvdPoint::~CbmMvdPoint
virtual ~CbmMvdPoint()
Copy constructor.
Definition
CbmMvdPoint.cxx:56
CbmMvdPoint::fPdgCode
Int_t fPdgCode
Definition
CbmMvdPoint.h:89
CbmMvdPoint::Print
virtual void Print(const Option_t *opt) const
Output to screen.
Definition
CbmMvdPoint.cxx:60
CbmMvdPoint::fPx_out
Double32_t fPx_out
Definition
CbmMvdPoint.h:88
CbmMvdPoint::fZ_out
Double32_t fZ_out
Definition
CbmMvdPoint.h:87
CbmMvdPoint::fPz_out
Double32_t fPz_out
Definition
CbmMvdPoint.h:88
CbmMvdPoint::CbmMvdPoint
CbmMvdPoint()
Default constructor.
Definition
CbmMvdPoint.cxx:13
CbmMvdPoint::fX_out
Double32_t fX_out
Definition
CbmMvdPoint.h:87
FairMCPoint
TVector3
base
cbm
CbmMvdPoint.cxx
Generated on
for BmnRoot by
1.17.0