FairRoot/PandaRoot
PndMdtPoint.cxx
Go to the documentation of this file.
1 
2 #include <iostream>
3 
4 using std::cout;
5 using std::endl;
6 
7 #include "PndMdtPoint.h"
8 #include "PndDetectorList.h"
9 
10 // ----- Default constructor -------------------------------------------
11 PndMdtPoint::PndMdtPoint() : FairMCPoint(), fPosIn(), fMomIn()
12 {
13 
14 }
15 // -------------------------------------------------------------------------
16 
17 
18 
19 // ----- Standard constructor ------------------------------------------
20 PndMdtPoint::PndMdtPoint( Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom,
21  Double_t tof, Double_t length, Double_t eLoss,
22  TVector3 pos_in, TVector3 mom_in)
23  : FairMCPoint(trackID, detID, pos, mom,tof, length, eLoss ), fPosIn(pos_in), fMomIn(mom_in)
24 {
25  SetLink(FairLink("MCTrack", trackID));
26 }
27 
28 
29 // ----- Destructor ----------------------------------------------------
31 // -------------------------------------------------------------------------
32 
33 // ----- Public method Print -------------------------------------------
34 void PndMdtPoint::Print(const Option_t* opt) const {
35  cout << "-I- PndMdtPoint: MDT Point for track " << fTrackID << " in the detector " << fDetectorID << endl;
36  cout << " in event " << fEventId << " track length " << fLength << " time " << fTime << " eloss " << fELoss << endl;
37  cout << " Position In (" << fPosIn.X() << ", " << fPosIn.Y() << ", " << fPosIn.Z() << ") cm^3*s" << endl;
38  cout << " Momentum In (" << fMomIn.X() << ", " << fMomIn.Y() << ", " << fMomIn.Z() << ") GeV^4" << endl;
39  cout << " Position Out (" << fX << ", " << fY << ", " << fZ << ") cm^3*s" << endl;
40  cout << " Momentum Out(" << fPx << ", " << fPy << ", " << fPz << ") GeV^4" << endl;
41  cout << " opt = " << opt << endl;
42 }
43 // -------------------------------------------------------------------------
44 
45 
46 
TVector3 pos
Double_t fX
Definition: PndCaloDraw.cxx:34
virtual ~PndMdtPoint()
Definition: PndMdtPoint.cxx:30
TVector3 fMomIn
Definition: PndMdtPoint.h:69
Double_t mom
Definition: plot_dirc.C:14
Double_t fZ
Definition: PndCaloDraw.cxx:34
virtual void Print(const Option_t *opt) const
Definition: PndMdtPoint.cxx:34
Double_t
Double_t fY
Definition: PndCaloDraw.cxx:34
ClassImp(PndAnaContFact)
TVector3 fPosIn
Definition: PndMdtPoint.h:68