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