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