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