BmnRoot
Loading...
Searching...
No Matches
BmnVSPPoint.cxx
Go to the documentation of this file.
1#include "BmnVSPPoint.h"
2
3#include <iostream>
4
5using namespace std;
6
8: FairMCPoint(),
9 fIsPrimary(0), fCharge(-1.0), fPdgId(0),
10 fX_out(0.0),
11 fY_out(0.0),
12 fZ_out(0.0),
13 fPx_out(0.0),
14 fPy_out(0.0),
15 fPz_out(0.0),
16 fStation(-1), fModule(-1)
17{}
18
19BmnVSPPoint::BmnVSPPoint(Int_t trackID, Int_t detID,
20 TVector3 posIn, TVector3 posOut,
21 TVector3 momIn, TVector3 momOut,
22 Double_t tof, Double_t length, Double_t eLoss,
23 Int_t isPrimary, Double_t charge, Int_t pdgId)
24: FairMCPoint(trackID, detID, posIn, momIn, tof, length, eLoss),
25 fIsPrimary(isPrimary), fCharge(charge), fPdgId(pdgId),
26 fX_out(posOut.X()),
27 fY_out(posOut.Y()),
28 fZ_out(posOut.Z()),
29 fPx_out(momOut.Px()),
30 fPy_out(momOut.Py()),
31 fPz_out(momOut.Pz()),
32 fStation(-1), fModule(-1)
33{}
34
37
38void BmnVSPPoint::Print(const Option_t* opt) const {
39 cout << "-I- BmnVSPPoint: VSP point for track " << fTrackID << " in detector " << fDetectorID << endl;
40 cout << " Position (" << fX << ", " << fY << ", " << fZ << ") cm" << endl;
41 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV" << endl;
42 cout << " Time " << fTime << " ns, Length " << fLength << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
43}
virtual void Print(const Option_t *opt) const
virtual ~BmnVSPPoint()
STL namespace.