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