BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
12using std::cout;
13using std::endl;
14
15// ----- Default constructor -------------------------------------------
19// -------------------------------------------------------------------------
20
21// ----- Standard constructor ------------------------------------------
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 ----------------------------------------------------
35// -------------------------------------------------------------------------
36
37// ----- Public method Print -------------------------------------------
38void 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 Int_t
double Double_t
const char Option_t
CbmTofPoint()
Default constructor.
virtual ~CbmTofPoint()
Destructor.
virtual void Print(const Option_t *opt) const
Output to screen.