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