BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
CbmTofPoint.cxx
Go to the documentation of this file.
1
2
// -------------------------------------------------------------------------
3
// ----- CbmTofPoint source file -----
4
// ----- Created 28/07/04 by V. Friese -----
5
// ----- Modified 30/08/06 by D. Gonzalez -----
6
// -------------------------------------------------------------------------
7
8
#include "
CbmTofPoint.h
"
9
10
#include <iostream>
11
12
using
std::cout;
13
using
std::endl;
14
15
// ----- Default constructor -------------------------------------------
16
CbmTofPoint::CbmTofPoint
()
17
:
FairMCPoint
()
18
{}
19
// -------------------------------------------------------------------------
20
21
// ----- Standard constructor ------------------------------------------
22
CbmTofPoint::CbmTofPoint
(
Int_t
trackID,
23
Int_t
detID,
24
TVector3
pos,
25
TVector3
mom,
26
Double_t
tof,
27
Double_t
length,
28
Double_t
eLoss)
29
:
FairMCPoint
(trackID, detID, pos, mom, tof, length, eLoss)
30
{}
31
// -------------------------------------------------------------------------
32
33
// ----- Destructor ----------------------------------------------------
34
CbmTofPoint::~CbmTofPoint
() {}
35
// -------------------------------------------------------------------------
36
37
// ----- Public method Print -------------------------------------------
38
void
CbmTofPoint::Print
(
const
Option_t
* opt)
const
39
{
40
cout <<
"-I- CbmTofPoint: TOF point for track "
<< fTrackID <<
" in detector "
<< fDetectorID << endl;
41
cout <<
" Position ("
<< fX <<
", "
<< fY <<
", "
<< fZ <<
") cm"
<< endl;
42
cout <<
" Momentum ("
<< fPx <<
", "
<< fPy <<
", "
<< fPz <<
") GeV"
<< endl;
43
cout <<
" Time "
<< fTime <<
" ns, Length "
<< fLength <<
" cm, Energy loss "
<< fELoss * 1.0e06 <<
" keV"
44
<< endl;
45
}
Int_t
int Int_t
Double_t
double Double_t
Option_t
const char Option_t
CbmTofPoint.h
CbmTofPoint::CbmTofPoint
CbmTofPoint()
Default constructor.
Definition
CbmTofPoint.cxx:16
CbmTofPoint::~CbmTofPoint
virtual ~CbmTofPoint()
Destructor.
Definition
CbmTofPoint.cxx:34
CbmTofPoint::Print
virtual void Print(const Option_t *opt) const
Output to screen.
Definition
CbmTofPoint.cxx:38
FairMCPoint
TVector3
base
cbm
CbmTofPoint.cxx
Generated on
for BmnRoot by
1.17.0