BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnBdPoint.cxx
Go to the documentation of this file.
1
2#include "BmnBdPoint.h"
3
4#include "FairLogger.h"
5#include "FairMCPoint.h"
6#include "TParticle.h"
7#include "TVector3.h"
8#include "TVirtualMC.h"
9
10#include <iostream>
11
12// ----- Default constructor -------------------------------------------
14 : FairMCPoint()
15 , fXOut(0.0)
16 , fYOut(0.0)
17 , fZOut(0.0)
18 , fPxOut(0.0)
19 , fPyOut(0.0)
20 , fPzOut(0.0)
21 , fIsPrimary(0)
22 , fCharge(-1.0)
23 , fPdgId(0)
24
25{
26 nCopy = -1;
27}
28// -------------------------------------------------------------------------
29
30// ----- Standard constructor ------------------------------------------
32 Int_t detID,
33 Int_t copyNo,
34 TVector3 posIn,
35 TVector3 posOut,
36 TVector3 momIn,
37 TVector3 momOut,
38 Double_t tof,
39 Double_t length,
40 Double_t eLoss,
41 Int_t isPrimary,
42 Double_t charge,
43 Int_t pdgId,
44 Double_t lightYield,
45 Double_t timeIn,
46 Double_t timeOut,
47 Double_t lengthtrack)
48 // UInt_t EventId,
49 : FairMCPoint(trackID, detID, posIn, momIn, tof, length, eLoss)
50 ,
51 // EventId
52
53 fXOut(posOut.X())
54 , fYOut(posOut.Y())
55 , fZOut(posOut.Z())
56 , fPxOut(momOut.Px())
57 , fPyOut(momOut.Py())
58 , fPzOut(momOut.Pz())
59 , fIsPrimary(isPrimary)
60 , fCharge(charge)
61 , fPdgId(pdgId)
62
63{
64
65 nCopy = copyNo;
66
67 fLightYield = lightYield;
68 fTimeIn = timeIn;
69 fTimeOut = timeOut;
70 fLengthtrack = lengthtrack;
71}
72// ----- Destructor ----------------------------------------------------
74// -------------------------------------------------------------------------
75
76// ----- Public method Print -------------------------------------------
77void BmnBdPoint::Print(const Option_t* opt) const
78{
79 cout << "-I- BmnBdPoint: MUO Point for track " << fTrackID << " in detector " << fDetectorID << endl;
80 cout << " Position (" << fX << ", " << fY << ", " << fZ << ") cm" << endl;
81 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV" << endl;
82 cout << " Time " << fTime << " ns, Length " << fLength << " cm, Energy loss " << fELoss * 1.0e06 << " keV"
83 << endl;
84}
85// -------------------------------------------------------------------------
int Int_t
double Double_t
const char Option_t
Double_t fTimeOut
Definition BmnBdPoint.h:117
virtual void Print(const Option_t *opt) const
Output to screen.
Double_t fXOut
Definition BmnBdPoint.h:106
virtual ~BmnBdPoint()
Destructor.
Int_t fPdgId
Definition BmnBdPoint.h:114
Int_t fIsPrimary
Definition BmnBdPoint.h:112
BmnBdPoint()
Default constructor.
Double_t fYOut
Definition BmnBdPoint.h:106
Double_t fZOut
Definition BmnBdPoint.h:106
Double_t fTimeIn
Definition BmnBdPoint.h:116
Double_t fLengthtrack
Definition BmnBdPoint.h:118
Double_t fCharge
Definition BmnBdPoint.h:113
Double_t fPzOut
Definition BmnBdPoint.h:107
Float_t fLightYield
Definition BmnBdPoint.h:115
Short_t nCopy
Definition BmnBdPoint.h:109
Double_t fPyOut
Definition BmnBdPoint.h:107
Double_t fPxOut
Definition BmnBdPoint.h:107