BmnRoot
Loading...
Searching...
No Matches
BmnTOF1Point.cxx
Go to the documentation of this file.
1
//--------------------------------------------------------------------------------------------------------------------------------------
2
#include "
BmnTOF1Point.h
"
3
4
#include <iostream>
5
6
using namespace
std
;
7
8
//--------------------------------------------------------------------------------------------------------------------------------------
9
BmnTOF1Point::BmnTOF1Point
()
10
: FairMCPoint()
11
{}
12
//--------------------------------------------------------------------------------------------------------------------------------------
13
BmnTOF1Point::BmnTOF1Point
(Int_t trackID,
14
Int_t detID,
15
TVector3 pos,
16
TVector3 mom,
17
Double_t tof,
18
Double_t length,
19
Double_t eLoss,
20
Int_t detUID)
21
: FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss)
22
{
23
fDetectorUID = detUID;
24
}
25
//--------------------------------------------------------------------------------------------------------------------------------------
26
BmnTOF1Point::~BmnTOF1Point
() {}
27
//--------------------------------------------------------------------------------------------------------------------------------------
28
void
BmnTOF1Point::Print
(
const
Option_t* opt)
const
29
{
30
cout <<
"-I- BmnTOF1Point: trackId "
<< fTrackID <<
" detectorUID "
<< fDetectorID;
31
cout <<
"\n Position ("
<< fX <<
", "
<< fY <<
", "
<< fZ <<
") cm"
;
32
cout <<
"\n Momentum ("
<< fPx <<
", "
<< fPy <<
", "
<< fPz <<
") GeV"
;
33
cout <<
"\n Time "
<< fTime <<
" ns, Length "
<< fLength <<
" cm, Energy loss "
<< fELoss * 1.0e06
34
<<
" keV.\n"
;
35
}
36
//--------------------------------------------------------------------------------------------------------------------------------------
BmnTOF1Point::BmnTOF1Point
BmnTOF1Point()
Definition
BmnTOF1Point.cxx:9
BmnTOF1Point::~BmnTOF1Point
virtual ~BmnTOF1Point()
Definition
BmnTOF1Point.cxx:26
BmnTOF1Point::Print
virtual void Print(const Option_t *opt) const
Definition
BmnTOF1Point.cxx:28
BmnTOF1Point.h
std
STL namespace.
detectors
tof1
BmnTOF1Point.cxx
Generated on Fri May 15 2026 10:40:53 for BmnRoot by
1.9.8