BmnRoot
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
//
10
11
#include <iostream>
12
#include "
BmnEcalPoint.h
"
13
14
// ----- Default constructor -------------------------------------------
15
BmnEcalPoint::BmnEcalPoint
() : FairMCPoint() {
16
// fTrackID = -1;
17
// fDetectorID = -1;
18
// // fEventID = -1;
19
// fX = fY = fZ = 0.;
20
// fPx = fPy = fPz = 0.;
21
// fTime = 0.;
22
// fLength = 0.;
23
// fELoss = 0.;
24
25
nCopy
= -1;
26
nCopyMother
=-1;
27
}
28
// -------------------------------------------------------------------------
29
30
31
32
// ----- Standard constructor ------------------------------------------
33
BmnEcalPoint::BmnEcalPoint
(Int_t trackID, Int_t detID, Int_t copyNo, Int_t copyNoMother, TVector3 pos,
34
TVector3 mom, Double_t tof, Double_t length,
35
Double_t eLoss, UInt_t EventId)
36
: FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss, EventId) {
37
nCopy
= copyNo;
38
nCopyMother
= copyNoMother;
39
// fTrackID = trackID;
40
// fDetectorID = detID;
41
42
// fX = pos.X();
43
// fY = pos.Y();
44
// fZ = pos.Z();
45
// fPx = mom.Px();
46
// fPy = mom.Py();
47
// fPz = mom.Pz();
48
// fTime = tof;
49
// fLength = length;
50
// fELoss = eLoss;
51
52
}
53
54
55
// ----- Destructor ----------------------------------------------------
56
BmnEcalPoint::~BmnEcalPoint
() { }
57
// -------------------------------------------------------------------------
58
59
// ----- Public method Print -------------------------------------------
60
void
BmnEcalPoint::Print
(
const
Option_t* opt)
const
{
61
cout <<
"-I- BmnEcalPoint: MUO Point for track "
<< fTrackID
62
<<
" in detector "
<< fDetectorID << endl;
63
cout <<
" Position ("
<< fX <<
", "
<< fY <<
", "
<< fZ
64
<<
") cm"
<< endl;
65
cout <<
" Momentum ("
<< fPx <<
", "
<< fPy <<
", "
<< fPz
66
<<
") GeV"
<< endl;
67
cout <<
" Time "
<< fTime <<
" ns, Length "
<< fLength
68
<<
" cm, Energy loss "
<< fELoss*1.0e06 <<
" keV"
<< endl;
69
}
70
// -------------------------------------------------------------------------
BmnEcalPoint::~BmnEcalPoint
virtual ~BmnEcalPoint()
Definition
BmnEcalPoint.cxx:56
BmnEcalPoint::BmnEcalPoint
BmnEcalPoint()
Definition
BmnEcalPoint.cxx:15
BmnEcalPoint::Print
virtual void Print(const Option_t *opt) const
Definition
BmnEcalPoint.cxx:60
BmnEcalPoint::nCopyMother
Short_t nCopyMother
Definition
BmnEcalPoint.h:67
BmnEcalPoint::nCopy
Short_t nCopy
Definition
BmnEcalPoint.h:66
BmnEcalPoint.h
detectors
ecal
BmnEcalPoint.cxx
Generated on Fri May 15 2026 10:40:51 for BmnRoot by
1.9.8