BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnSiMDPoint.cxx
Go to the documentation of this file.
1
2
3#include "BmnSiMDPoint.h"
4
5#include "FairLogger.h"
6#include "FairMCPoint.h"
7#include "TParticle.h"
8#include "TVector3.h"
9#include "TVirtualMC.h"
10
11#include <iostream>
12
13// ----- Default constructor -------------------------------------------
15 : FairMCPoint()
16 , fXOut(0.0)
17 , fYOut(0.0)
18 , fZOut(0.0)
19 , fPxOut(0.0)
20 , fPyOut(0.0)
21 , fPzOut(0.0)
22 , fIsPrimary(0)
23 , fCharge(-1.0)
24 , fPdgId(0)
25
26{
27 nCopy = -1;
28}
29// -------------------------------------------------------------------------
30
31// ----- Standard constructor ------------------------------------------
33 Int_t detID,
34 Int_t copyNo,
35 TVector3 posIn,
36 TVector3 posOut,
37 TVector3 momIn,
38 TVector3 momOut,
39 Double_t tof,
40 Double_t length,
41 Double_t eLoss,
42 Int_t isPrimary,
43 Double_t charge,
44 Int_t pdgId,
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 fTimeIn = timeIn;
68 fTimeOut = timeOut;
69 fLengthtrack = lengthtrack;
70}
71// ----- Destructor ----------------------------------------------------
73// -------------------------------------------------------------------------
74
75// ----- Public method Print -------------------------------------------
76void BmnSiMDPoint::Print(const Option_t* opt) const
77{
78 cout << "-I- BmnSiMDPoint: MUO Point for track " << fTrackID << " in detector " << fDetectorID << endl;
79 cout << " Position (" << fX << ", " << fY << ", " << fZ << ") cm" << endl;
80 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV" << endl;
81 cout << " Time " << fTime << " ns, Length " << fLength << " cm, Energy loss " << fELoss * 1.0e06 << " keV"
82 << endl;
83}
84// -------------------------------------------------------------------------
int Int_t
double Double_t
const char Option_t
Double_t fYOut
Double_t fZOut
virtual ~BmnSiMDPoint()
Destructor.
Double_t fPxOut
Double_t fPyOut
Double_t fLengthtrack
Double_t fXOut
BmnSiMDPoint()
Default constructor.
Double_t fTimeOut
virtual void Print(const Option_t *opt) const
Output to screen.
Double_t fCharge
Double_t fPzOut
Double_t fTimeIn