BmnRoot
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
16
// ----- Default constructor -------------------------------------------
17
CbmTofPoint::CbmTofPoint
() : FairMCPoint() { }
18
// -------------------------------------------------------------------------
19
20
21
22
// ----- Standard constructor ------------------------------------------
23
CbmTofPoint::CbmTofPoint
(Int_t trackID, Int_t detID, TVector3 pos,
24
TVector3 mom, Double_t tof, Double_t length,
25
Double_t eLoss)
26
: FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss) { }
27
// -------------------------------------------------------------------------
28
29
30
// ----- Destructor ----------------------------------------------------
31
CbmTofPoint::~CbmTofPoint
() { }
32
// -------------------------------------------------------------------------
33
34
35
36
// ----- Public method Print -------------------------------------------
37
void
CbmTofPoint::Print
(
const
Option_t* opt)
const
{
38
cout <<
"-I- CbmTofPoint: TOF point for track "
<< fTrackID
39
<<
" in detector "
<< fDetectorID << endl;
40
cout <<
" Position ("
<< fX <<
", "
<< fY <<
", "
<< fZ
41
<<
") cm"
<< endl;
42
cout <<
" Momentum ("
<< fPx <<
", "
<< fPy <<
", "
<< fPz
43
<<
") GeV"
<< endl;
44
cout <<
" Time "
<< fTime <<
" ns, Length "
<< fLength
45
<<
" cm, Energy loss "
<< fELoss*1.0e06 <<
" keV"
<< endl;
46
}
CbmTofPoint::CbmTofPoint
CbmTofPoint()
Definition
CbmTofPoint.cxx:17
CbmTofPoint::~CbmTofPoint
virtual ~CbmTofPoint()
Definition
CbmTofPoint.cxx:31
CbmTofPoint::Print
virtual void Print(const Option_t *opt) const
Definition
CbmTofPoint.cxx:37
CbmTofPoint.h
base
cbm
CbmTofPoint.cxx
Generated on Fri May 15 2026 10:40:50 for BmnRoot by
1.9.8