FairRoot/PandaRoot
PndHypPoint.cxx
Go to the documentation of this file.
1 //
3 // PndHypPoint
4 //
5 // Geant point for Hyp detector
6 //
7 //
9 
10 #include <iostream>
11 using std::cout;
12 using std::endl;
13 #include "PndHypPoint.h"
14 
15 // ----- Default constructor -------------------------------------------
16 PndHypPoint::PndHypPoint() : FairMCPoint(),
17  fEventID(-1),
18  fPLin(0), fPLout(0),
19  fmass(0), fcharge(0),
20  fXin(0.), fYin(0.), fZin(0.),
21  fPxin(0.),fPyin(0.),fPzin(0.),
22  fXout(0.), fYout(0.), fZout(0.),
23  fPxout(0.),fPyout(0.),fPzout(0.), fdist(0.),
24  fDetName(""),
25  fVolumeID(0), fpdgCode(0)
26 {
27  fTime = 0.;
28 }
29 // -------------------------------------------------------------------------
30 
31 
32 
33 // ----- Standard constructor ------------------------------------------
34 PndHypPoint::PndHypPoint(Int_t trackID, Int_t evtID,
35  Int_t detID, TString detName,
36  TVector3 posin,
37  TVector3 momin,
38  TVector3 posout,
39  TVector3 momout,
40  Double_t tof, Double_t length,
41  Double_t eLoss,Double_t charge,
42  Double_t mass,
43  Int_t pdgCode,Double_t dist,
44  Double_t PLin, Double_t PLout)
45 : FairMCPoint(trackID, detID, posin, momin, tof, length, eLoss),
46  fEventID(evtID),
47  fPLin(PLin),
48  fPLout(PLout),
49  fmass(mass),
50  fcharge(charge),
51  fXin(posin.X()),
52  fYin(posin.Y()),
53  fZin(posin.Z()),
54  fPxin(momin.X()),
55  fPyin(momin.Py()),
56  fPzin(momin.Pz()),
57  fXout(posout.X()),
58  fYout(posout.Y()),
59  fZout(posout.Z()),
60  fPxout(momout.Px()),
61  fPyout(momout.Py()),
62  fPzout(momout.Pz()),
63  fdist(dist),
64  fDetName(detName),
65  fVolumeID(detID),
66  fpdgCode(pdgCode)
67 {
68 
69 }
70 
71 
72 // ----- Destructor ----------------------------------------------------
74 // -------------------------------------------------------------------------
75 
76 // ----- Public method Print -------------------------------------------
77 void PndHypPoint::Print(const Option_t* opt) const {
78  cout << "-I- PndHypPoint: HYP Point for track " << fTrackID
79  << " in detector " << fVolumeID << endl;
80  cout << " Position (" << fXin << ", " << fYin << ", " << fZin
81  << ") cm" << endl;
82  cout << " Momentum (" << fPxin << ", " << fPyin << ", " << fPzin
83  << ") GeV" << endl;
84  cout << " Time " << fTime << " ns, Length " << fLength
85  << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
86  cout << " opt = " << opt <<endl;
87 }
88 // -------------------------------------------------------------------------
89 
90 
91 
Double_t fZin
Definition: PndHypPoint.h:167
virtual void Print(const Option_t *opt) const
Definition: PndHypPoint.cxx:77
double Y
Definition: anaLmdDigi.C:68
Double_t
Double_t fPzin
Definition: PndHypPoint.h:168
virtual ~PndHypPoint()
Definition: PndHypPoint.cxx:73
double X
Definition: anaLmdDigi.C:68
Double_t fXin
Definition: PndHypPoint.h:167
ClassImp(PndAnaContFact)
double Z
Definition: anaLmdDigi.C:68
Double_t fYin
Definition: PndHypPoint.h:167
Double_t fPxin
Definition: PndHypPoint.h:168
Int_t fVolumeID
Definition: PndHypPoint.h:175
Double_t fPyin
Definition: PndHypPoint.h:168