BmnRoot
Loading...
Searching...
No Matches
BmnHodoPoint.cxx
Go to the documentation of this file.
1#include "BmnHodoPoint.h"
2
3#include <iostream>
4
5#include "FairLogger.h"
6#include "FairMCPoint.h"
7#include "TParticle.h"
8#include "TVector3.h"
9#include "TVirtualMC.h"
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 nCopy = -1;
21 nCopyMother=-1;
22}
23
24// ----- Standard constructor ------------------------------------------
25BmnHodoPoint::BmnHodoPoint(Int_t trackID, Int_t detID, Int_t copyNo, Int_t copyNoMother, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, UInt_t EventId)
26 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss, EventId),
27 fX(pos.X()),
28 fY(pos.Y()),
29 fZ(pos.Z()),
30 fPx(mom.Px()),
31 fPy(mom.Py()),
32 fPz(mom.Pz()) {
33 nCopy = copyNo;
34 nCopyMother = copyNoMother;
35}
36
37// ----- Destructor ----------------------------------------------------
39
40// ----- Public method Print -------------------------------------------
41void BmnHodoPoint::Print(const Option_t* opt) const {
42 cout << "-I- BmnHodoPoint: MUO Point for track " << fTrackID
43 << " in detector " << fDetectorID <<" " <<nCopyMother <<" " <<nCopy << endl;
44 cout << " Position (" << fX << ", " << fY << ", " << fZ
45 << ") cm" << endl;
46 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
47 << ") GeV" << endl;
48 cout << " Time " << fTime << " ns, Length " << fLength
49 << " cm, Energy loss " << fELoss * 1.0e06 << " keV" << endl;
50}
51// -------------------------------------------------------------------------
Double_t fPx
virtual void Print(const Option_t *opt) const
Double_t fX
Double_t fTime
Double_t fPz
virtual ~BmnHodoPoint()
Short_t nCopyMother
Double_t fY
Double_t fZ
Short_t nCopy
Double_t fPy