FairRoot/PandaRoot
PndDrcPDPoint.cxx
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndDrcPDPoint source file -----
3 // ----- Created 09/04/2008 by E. Fioravanti & A. Cecchi -----
4 // -------------------------------------------------------------------------
5 
6 
7 #include "PndDrcPDPoint.h"
8 #include <iostream>
9 
10 using std::cout;
11 using std::endl;
12 
13 
14 // ----- Default constructor -------------------------------------------
16  :FairMCPoint(), fPdgCode(0), fMcpId(0), fBarPointId(0), fmomAtEV(TVector3()), ftimeAtEV(0)
17 {
18 }
19 // -------------------------------------------------------------------------
20 
21 
22 
23 // ----- Standard constructor ------------------------------------------
24 PndDrcPDPoint::PndDrcPDPoint(Int_t trackID, Int_t detID, Int_t mcpId, Int_t barPointId,
25  TVector3 pos, TVector3 mom, TVector3 momAtEV, Double_t timeAtEV,
26  Double_t tof, Double_t length, Int_t pdgCode, Int_t eventID)
27  :FairMCPoint(trackID, detID, pos, mom, tof, length, 0.0, (UInt_t) eventID), fPdgCode(pdgCode), fMcpId(mcpId), fBarPointId(barPointId), fmomAtEV(momAtEV), ftimeAtEV(timeAtEV)
28 {
29  SetLink(FairLink("MCTrack", trackID));
30 }
31 // -------------------------------------------------------------------------
32 
33 
34 
35 // ----- Destructor ----------------------------------------------------
37 // -------------------------------------------------------------------------
38 
39 
40 
41 void PndDrcPDPoint::Print(const Option_t* opt) const {
42  (void)opt; // to remove "unused" warnings
43  cout << "-I- PndDrcPDPoint: DRC Point for trackID---> " << fTrackID
44  << " in detector " << fDetectorID << endl;
45 
46  cout << " Position (" << fX << ", " << fY << ", " << fZ
47  << ") cm" << endl;
48  cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
49  << ") GeV" << endl;
50  cout << " Time " << fTime << " ns, Length " << fLength
51  << " cm "<< endl;
52 
53 }
55 
TVector3 pos
virtual void Print(const Option_t *opt) const
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t mom
Definition: plot_dirc.C:14
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t
virtual ~PndDrcPDPoint()
Double_t fY
Definition: PndCaloDraw.cxx:34
ClassImp(PndAnaContFact)