FairRoot/PandaRoot
PndFtofPoint.cxx
Go to the documentation of this file.
1 //
3 // CbmFtofPoint
4 //
5 // Geant point for Forward tof detector
6 // created by A. Sanchez
7 //
9 
10 #include "PndFtofPoint.h"
11 
12 #include <iostream>
13 
14 using std::cout;
15 using std::endl;
16 
17 // ----- Default constructor -------------------------------------------
18 PndFtofPoint::PndFtofPoint() : FairMCPoint(),
19  fPLin(0), fPLout(0),
20  fmass(0),fcharge(0),
21  fXin(0), fYin(0), fZin(0),
22  fPxin(0), fPyin(0), fPzin(0),
23  fXout(0), fYout(0), fZout(0),
24  fPxout(0), fPyout(0), fPzout(0),
25  fdist(0), fDetName(), fVolumeID(-999), fpdgCode(0)
26 {
27 }
28 // -------------------------------------------------------------------------
29 
30 
31 
32 // ----- Standard constructor ------------------------------------------
33 PndFtofPoint::PndFtofPoint(Int_t trackID, Int_t evtID,
34  Int_t detID, TString detName,
35  TVector3 posin,
36  TVector3 momin,
37  TVector3 posout,
38  TVector3 momout,
39  Double_t tof, Double_t length,
40  Double_t eLoss,Double_t charge,
41  Double_t mass,
42  Int_t pdgCode,Double_t dist,
43  Double_t PLin, Double_t PLout)
44  : FairMCPoint(trackID, detID, posin, momin, tof, length, eLoss, evtID),
45  fPLin(PLin), fPLout(PLout),
46  fmass(mass), fcharge(charge),
47  fXin(posin.X()), fYin(posin.Y()), fZin(posin.Z()),
48  fPxin(momin.X()), fPyin(momin.Py()), fPzin(momin.Pz()),
49  fXout(posout.X()), fYout(posout.Y()), fZout(posout.Z()),
50  fPxout(momout.Px()), fPyout(momout.Py()), fPzout(momout.Pz()),
51  fdist(dist), fDetName(detName), fVolumeID(-999), fpdgCode(pdgCode)
52 {
53 }
54 
55 
56 // ----- Destructor ----------------------------------------------------
58 // -------------------------------------------------------------------------
59 
60 // ----- Public method Print -------------------------------------------
61 void PndFtofPoint::Print(const Option_t* ) const {
62  cout << "-I- PndFtofPoint: forward tof Point for track "
63  <<" in detector " << endl;
64  cout << " Position (" << fX << ", " << fY << ", " << fZ
65  << ") cm" << endl;
66  cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
67  << ") GeV" << endl;
68 
69 }
70 // -------------------------------------------------------------------------
71 
72 
73 
Double_t fX
Definition: PndCaloDraw.cxx:34
double Y
Definition: anaLmdDigi.C:68
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t
virtual ~PndFtofPoint()
double X
Definition: anaLmdDigi.C:68
Double_t fY
Definition: PndCaloDraw.cxx:34
ClassImp(PndAnaContFact)
double Z
Definition: anaLmdDigi.C:68
virtual void Print(const Option_t *opt) const