BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnEcalPoint.cxx
Go to the documentation of this file.
1
/////////////////////////////////////////////////////////////
2
//
3
// BmnEcalPoint
4
//
5
// Geant point for Hyp detector
6
//
7
// Created 14/08/06 by S.Spataro
8
//
9
///////////////////////////////////////////////////////////////
10
11
#include "
BmnEcalPoint.h
"
12
13
#include <iostream>
14
15
// ----- Default constructor -------------------------------------------
16
BmnEcalPoint::BmnEcalPoint
()
17
:
FairMCPoint
()
18
{
19
// fTrackID = -1;
20
// fDetectorID = -1;
21
// // fEventID = -1;
22
// fX = fY = fZ = 0.;
23
// fPx = fPy = fPz = 0.;
24
// fTime = 0.;
25
// fLength = 0.;
26
// fELoss = 0.;
27
28
nCopy
= -1;
29
nCopyMother
= -1;
30
}
31
// -------------------------------------------------------------------------
32
33
// ----- Standard constructor ------------------------------------------
34
BmnEcalPoint::BmnEcalPoint
(
Int_t
trackID,
35
Int_t
detID,
36
Int_t
copyNo,
37
Int_t
copyNoMother,
38
TVector3
pos,
39
TVector3
mom,
40
Double_t
tof,
41
Double_t
length,
42
Double_t
eLoss,
43
UInt_t EventId)
44
:
FairMCPoint
(trackID, detID, pos, mom, tof, length, eLoss, EventId)
45
{
46
nCopy
= copyNo;
47
nCopyMother
= copyNoMother;
48
// fTrackID = trackID;
49
// fDetectorID = detID;
50
51
// fX = pos.X();
52
// fY = pos.Y();
53
// fZ = pos.Z();
54
// fPx = mom.Px();
55
// fPy = mom.Py();
56
// fPz = mom.Pz();
57
// fTime = tof;
58
// fLength = length;
59
// fELoss = eLoss;
60
}
61
62
// ----- Destructor ----------------------------------------------------
63
BmnEcalPoint::~BmnEcalPoint
() {}
64
// -------------------------------------------------------------------------
65
66
// ----- Public method Print -------------------------------------------
67
void
BmnEcalPoint::Print
(
const
Option_t
* opt)
const
68
{
69
cout <<
"-I- BmnEcalPoint: MUO Point for track "
<< fTrackID <<
" in detector "
<< fDetectorID << endl;
70
cout <<
" Position ("
<< fX <<
", "
<< fY <<
", "
<< fZ <<
") cm"
<< endl;
71
cout <<
" Momentum ("
<< fPx <<
", "
<< fPy <<
", "
<< fPz <<
") GeV"
<< endl;
72
cout <<
" Time "
<< fTime <<
" ns, Length "
<< fLength <<
" cm, Energy loss "
<< fELoss * 1.0e06 <<
" keV"
73
<< endl;
74
}
75
// -------------------------------------------------------------------------
Int_t
int Int_t
Double_t
double Double_t
Option_t
const char Option_t
BmnEcalPoint::~BmnEcalPoint
virtual ~BmnEcalPoint()
Destructor.
Definition
BmnEcalPoint.cxx:63
BmnEcalPoint::BmnEcalPoint
BmnEcalPoint()
Default constructor.
Definition
BmnEcalPoint.cxx:16
BmnEcalPoint::Print
virtual void Print(const Option_t *opt) const
Output to screen.
Definition
BmnEcalPoint.cxx:67
BmnEcalPoint::nCopyMother
Short_t nCopyMother
Definition
BmnEcalPoint.h:66
BmnEcalPoint::nCopy
Short_t nCopy
Definition
BmnEcalPoint.h:65
FairMCPoint
TVector3
BmnEcalPoint.h
detectors
ecal
BmnEcalPoint.cxx
Generated on
for BmnRoot by
1.17.0