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
12using std::cout;
13using std::endl;
14
15
16// ----- Default constructor -------------------------------------------
17CbmTofPoint::CbmTofPoint() : FairMCPoint() { }
18// -------------------------------------------------------------------------
19
20
21
22// ----- Standard constructor ------------------------------------------
23CbmTofPoint::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 ----------------------------------------------------
32// -------------------------------------------------------------------------
33
34
35
36// ----- Public method Print -------------------------------------------
37void 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}
virtual ~CbmTofPoint()
virtual void Print(const Option_t *opt) const