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