BmnRoot
Loading...
Searching...
No Matches
BmnTOF1Point.cxx
Go to the documentation of this file.
1//--------------------------------------------------------------------------------------------------------------------------------------
2#include "BmnTOF1Point.h"
3
4#include <iostream>
5
6using namespace std;
7
8//--------------------------------------------------------------------------------------------------------------------------------------
10 : FairMCPoint()
11{}
12//--------------------------------------------------------------------------------------------------------------------------------------
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//--------------------------------------------------------------------------------------------------------------------------------------
27//--------------------------------------------------------------------------------------------------------------------------------------
28void 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//--------------------------------------------------------------------------------------------------------------------------------------
virtual ~BmnTOF1Point()
virtual void Print(const Option_t *opt) const
STL namespace.