BmnRoot
Loading...
Searching...
No Matches
BmnSiBTPoint.cxx
Go to the documentation of this file.
1#include "BmnSiBTPoint.h"
2
3#include <iostream>
4
5using namespace std;
6
8 : FairMCPoint()
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 : FairMCPoint(trackID, detID, posIn, momIn, tof, length, eLoss)
38 , fIsPrimary(isPrimary)
39 , fCharge(charge)
40 , fPdgId(pdgId)
41 , fX_out(posOut.X())
42 , fY_out(posOut.Y())
43 , fZ_out(posOut.Z())
44 , fPx_out(momOut.Px())
45 , fPy_out(momOut.Py())
46 , fPz_out(momOut.Pz())
47 , fStation(-1)
48 , fModule(-1)
49{
50 fX_center = (fX_out + fX) * 0.5;
51 fY_center = (fY_out + fY) * 0.5;
52 fZ_center = (fZ_out + fZ) * 0.5;
53}
54
56
57void BmnSiBTPoint::Print(const Option_t* opt) const
58{
59 cout << "-I- BmnSiBTPoint: SiBT point for track " << fTrackID << " in detector " << fDetectorID << endl;
60 cout << " Position (In) (" << fX << ", " << fY << ", " << fZ << ") cm" << endl;
61 cout << " Momentum (In) (" << fPx << ", " << fPy << ", " << fPz << ") GeV" << endl;
62 cout << " Time " << fTime << " ns, Length " << fLength << " cm, Energy loss " << fELoss * 1.0e06 << " keV"
63 << endl;
64 cout << " StationNum " << fStation << ", ModuleNum " << fModule << endl;
65}
Double_t fX_center
virtual ~BmnSiBTPoint()
Double_t fZ_center
Double_t fZ_out
virtual void Print(const Option_t *opt) const
Double_t fY_center
Double_t fX_out
Double_t fY_out
STL namespace.