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