BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
9 , fIsPrimary(0)
10 , fCharge(-1.0)
11 , fPdgId(0)
12 , fX_out(0.0)
13 , fY_out(0.0)
14 , fZ_out(0.0)
15 , fPx_out(0.0)
16 , fPy_out(0.0)
17 , fPz_out(0.0)
18 , fStation(-1)
19 , fModule(-1)
20{}
21
23 Int_t detID,
24 TVector3 posIn,
25 TVector3 posOut,
26 TVector3 momIn,
27 TVector3 momOut,
28 Double_t tof,
29 Double_t length,
30 Double_t eLoss,
31 Int_t isPrimary,
32 Double_t charge,
33 Int_t pdgId)
34 : FairMCPoint(trackID, detID, posIn, momIn, tof, length, eLoss)
35 , fIsPrimary(isPrimary)
36 , fCharge(charge)
37 , fPdgId(pdgId)
38 , fX_out(posOut.X())
39 , fY_out(posOut.Y())
40 , fZ_out(posOut.Z())
41 , fPx_out(momOut.Px())
42 , fPy_out(momOut.Py())
43 , fPz_out(momOut.Pz())
44 , fStation(-1)
45 , fModule(-1)
46{}
47
49
50void BmnVSPPoint::Print(const Option_t* opt) const
51{
52 cout << "-I- BmnVSPPoint: VSP point for track " << fTrackID << " in detector " << fDetectorID << endl;
53 cout << " Position (" << fX << ", " << fY << ", " << fZ << ") cm" << endl;
54 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV" << endl;
55 cout << " Time " << fTime << " ns, Length " << fLength << " cm, Energy loss " << fELoss * 1.0e06 << " keV"
56 << endl;
57}
int Int_t
double Double_t
const char Option_t
Double_t fY_out
Definition BmnVSPPoint.h:70
Int_t fIsPrimary
Definition BmnVSPPoint.h:66
Double_t fZ_out
Definition BmnVSPPoint.h:70
virtual void Print(const Option_t *opt) const
virtual ~BmnVSPPoint()
Double_t fCharge
Definition BmnVSPPoint.h:67
Double_t fX_out
Definition BmnVSPPoint.h:70
Int_t fStation
Definition BmnVSPPoint.h:73
Int_t fModule
Definition BmnVSPPoint.h:74
Double_t fPx_out
Definition BmnVSPPoint.h:71
Double_t fPz_out
Definition BmnVSPPoint.h:71
Double_t fPy_out
Definition BmnVSPPoint.h:71
Definition json.hpp:4446