BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnCSCPoint.cxx
Go to the documentation of this file.
1#include "BmnCSCPoint.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 , fX_center(0.0)
16 , fY_center(0.0)
17 , fZ_center(0.0)
18 , fPx_out(0.0)
19 , fPy_out(0.0)
20 , fPz_out(0.0)
21 , fStation(-1)
22 , fModule(-1)
23{}
24
26 Int_t detID,
27 TVector3 posIn,
28 TVector3 posOut,
29 TVector3 momIn,
30 TVector3 momOut,
31 Double_t tof,
32 Double_t length,
33 Double_t eLoss,
34 Int_t isPrimary,
35 Double_t charge,
36 Int_t pdgId)
37
38 : FairMCPoint(trackID, detID, posIn, momIn, tof, length, eLoss)
39 , fIsPrimary(isPrimary)
40 , fCharge(charge)
41 , fPdgId(pdgId)
42 , fX_out(posOut.X())
43 , fY_out(posOut.Y())
44 , fZ_out(posOut.Z())
45 , fPx_out(momOut.Px())
46 , fPy_out(momOut.Py())
47 , fPz_out(momOut.Pz())
48 , fStation(-1)
49 , fModule(-1)
50{
51 fX_center = (fX_out + fX) * 0.5;
52 fY_center = (fY_out + fY) * 0.5;
53 fZ_center = (fZ_out + fZ) * 0.5;
54}
55
57
58void BmnCSCPoint::Print(const Option_t* opt) const
59{
60 cout << "-I- BmnCSCPoint: CSC point for track " << fTrackID << " in detector " << fDetectorID << endl;
61 cout << " Position (In) (" << fX << ", " << fY << ", " << fZ << ") cm" << endl;
62 cout << " Momentum (In) (" << fPx << ", " << fPy << ", " << fPz << ") GeV" << endl;
63 cout << " Time " << fTime << " ns, Length " << fLength << " cm, Energy loss " << fELoss * 1.0e06 << " keV"
64 << endl;
65 cout << " StationNum " << fStation << ", ModuleNum " << fModule << endl;
66}
int Int_t
double Double_t
const char Option_t
virtual void Print(const Option_t *opt) const
Double_t fY_center
Definition BmnCSCPoint.h:77
Int_t fStation
Definition BmnCSCPoint.h:80
Double_t fPy_out
Definition BmnCSCPoint.h:78
virtual ~BmnCSCPoint()
Double_t fZ_center
Definition BmnCSCPoint.h:77
Double_t fCharge
Definition BmnCSCPoint.h:73
Double_t fY_out
Definition BmnCSCPoint.h:76
Double_t fPz_out
Definition BmnCSCPoint.h:78
Double_t fZ_out
Definition BmnCSCPoint.h:76
Int_t fIsPrimary
Definition BmnCSCPoint.h:72
Double_t fX_center
Definition BmnCSCPoint.h:77
Double_t fX_out
Definition BmnCSCPoint.h:76
Int_t fModule
Definition BmnCSCPoint.h:81
Double_t fPx_out
Definition BmnCSCPoint.h:78
Definition json.hpp:4446