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