FairRoot/PandaRoot
PndGemMCPoint.cxx
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndGemPoint source file -----
3 // ----- Created 27/10/08 by R. Kliemt -----
4 // -------------------------------------------------------------------------
5 
6 
7 #include <iostream>
8 #include "PndGemMCPoint.h"
9 
10 #include "PndDetectorList.h"
11 
12 // ----- Default constructor -------------------------------------------
13 PndGemMCPoint::PndGemMCPoint() : FairMCPoint() ,
14  fXfOut(0.), fYfOut(0.), fZfOut(0.),
15  fPxfOut(0.), fPyfOut(0.), fPzfOut(0.),
16  fSensorId(0)
17 {
18 }
19 // -------------------------------------------------------------------------
20 
21 
22 
23 // ----- Standard constructor ------------------------------------------
24 PndGemMCPoint::PndGemMCPoint(Int_t trackID, Int_t detID, Int_t sensID,
25  TVector3 posIn, TVector3 posOut,
26  TVector3 momIn, TVector3 momOut,
27  Double_t tof, Double_t length, Double_t eLoss)
28  : FairMCPoint(trackID, detID, posIn, momIn, tof, length, eLoss) ,
29  fXfOut(posOut.X()),
30  fYfOut(posOut.Y()),
31  fZfOut(posOut.Z()),
32  fPxfOut(momOut.Px()),
33  fPyfOut(momOut.Py()),
34  fPzfOut(momOut.Pz()),
35  fSensorId(sensID)
36 {
37  SetLink(FairLink("MCTrack", trackID));
38 }
39 // -------------------------------------------------------------------------
40 
41 
42 
43 // ----- Destructor ----------------------------------------------------
45 // -------------------------------------------------------------------------
46 
47 
48 
49 
50 // ----- Public method Print -------------------------------------------
51 void PndGemMCPoint::Print(const Option_t* opt) const {
52  std::cout << *this << " opt = " << opt << std::endl;
53 }
54 // -------------------------------------------------------------------------
55 
56 
57 
double Y
Definition: anaLmdDigi.C:68
Double_t
virtual void Print(const Option_t *opt=0) const
double X
Definition: anaLmdDigi.C:68
ClassImp(PndAnaContFact)
double Z
Definition: anaLmdDigi.C:68
virtual ~PndGemMCPoint()