BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnScWallPoint.cxx
Go to the documentation of this file.
1#include "BmnScWallPoint.h"
2
3#include "FairLogger.h"
4#include "FairMCPoint.h"
5#include "TParticle.h"
6#include "TVector3.h"
7#include "TVirtualMC.h"
8
9#include <iostream>
10
11// ----- Default constructor -------------------------------------------
13 : FairMCPoint()
14 , fX(0.0)
15 , fY(0.0)
16 , fZ(0.0)
17 , fPx(0.0)
18 , fPy(0.0)
19 , fPz(0.0)
20{
21 nCopy = -1;
22 nCopyMother = -1;
23}
24
25// ----- Standard constructor ------------------------------------------
27 Int_t detID,
28 Int_t copyNo,
29 Int_t copyNoMother,
30 TVector3 pos,
31 TVector3 mom,
32 Double_t tof,
33 Double_t length,
34 Double_t eLoss,
35 UInt_t EventId)
36 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss, EventId)
37 , fX(pos.X())
38 , fY(pos.Y())
39 , fZ(pos.Z())
40 , fPx(mom.Px())
41 , fPy(mom.Py())
42 , fPz(mom.Pz())
43{
44 nCopy = copyNo;
45 nCopyMother = copyNoMother;
46}
47
48// ----- Destructor ----------------------------------------------------
50
51// ----- Public method Print -------------------------------------------
52void BmnScWallPoint::Print(const Option_t* opt) const
53{
54 cout << "-I- BmnScWallPoint: MUO Point for track " << fTrackID << " in detector " << fDetectorID << " "
55 << nCopyMother << " " << nCopy << endl;
56 cout << " Position (" << fX << ", " << fY << ", " << fZ << ") cm" << endl;
57 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV" << endl;
58 cout << " Time " << fTime << " ns, Length " << fLength << " cm, Energy loss " << fELoss * 1.0e06 << " keV"
59 << endl;
60}
int Int_t
double Double_t
const char Option_t
virtual ~BmnScWallPoint()
Destructor.
virtual void Print(const Option_t *opt) const
Output to screen.
BmnScWallPoint()
Default constructor.