BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnSiliconPoint.cxx
Go to the documentation of this file.
1#include "BmnSiliconPoint.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
35 : FairMCPoint(trackID, detID, posIn, momIn, tof, length, eLoss)
36 , fIsPrimary(isPrimary)
37 , fCharge(charge)
38 , fPdgId(pdgId)
39 , fX_out(posOut.X())
40 , fY_out(posOut.Y())
41 , fZ_out(posOut.Z())
42 , fPx_out(momOut.Px())
43 , fPy_out(momOut.Py())
44 , fPz_out(momOut.Pz())
45 , fStation(-1)
46 , fModule(-1)
47{}
48
50
51void BmnSiliconPoint::Print(const Option_t* opt) const
52{
53 cout << "-I- BmnSiliconPoint: Silicon point for track " << fTrackID << " in detector " << fDetectorID << endl;
54 cout << " Position (" << fX << ", " << fY << ", " << fZ << ") cm" << endl;
55 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV" << endl;
56 cout << " Time " << fTime << " ns, Length " << fLength << " cm, Energy loss " << fELoss * 1.0e06 << " keV"
57 << endl;
58}
int Int_t
double Double_t
const char Option_t
virtual ~BmnSiliconPoint()
virtual void Print(const Option_t *opt) const
Definition json.hpp:4446