FairRoot/PandaRoot
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
PndGemMCPoint Class Reference

#include <PndGemMCPoint.h>

Inheritance diagram for PndGemMCPoint:

Public Member Functions

 PndGemMCPoint ()
 
 PndGemMCPoint (Int_t trackID, Int_t detID, Int_t sensID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss)
 
 PndGemMCPoint (const PndGemMCPoint &point)
 
virtual ~PndGemMCPoint ()
 
Double_t GetXOut () const
 
Double_t GetYOut () const
 
Double_t GetZOut () const
 
Double_t GetPxOut () const
 
Double_t GetPyOut () const
 
Double_t GetPzOut () const
 
Int_t GetSensorId () const
 
TVector3 GetPosition () const
 
TVector3 GetPositionOut () const
 
void PositionOut (TVector3 &pos) const
 
void MomentumOut (TVector3 &mom) const
 
void SetPositionOut (TVector3 pos)
 
void SetMomentumOut (TVector3 mom)
 
void SetSensorId (Int_t sensId)
 
virtual void Print (const Option_t *opt=0) const
 

Protected Member Functions

 ClassDef (PndGemMCPoint, 1)
 

Protected Attributes

Double32_t fXfOut
 
Double32_t fYfOut
 
Double32_t fZfOut
 
Double32_t fPxfOut
 
Double32_t fPyfOut
 
Double32_t fPzfOut
 
Int_t fSensorId
 

Friends

std::ostreamoperator<< (std::ostream &out, const PndGemMCPoint &point)
 

Detailed Description

Definition at line 32 of file PndGemMCPoint.h.

Constructor & Destructor Documentation

PndGemMCPoint::PndGemMCPoint ( )

Default constructor

Definition at line 13 of file PndGemMCPoint.cxx.

13  : FairMCPoint() ,
14  fXfOut(0.), fYfOut(0.), fZfOut(0.),
15  fPxfOut(0.), fPyfOut(0.), fPzfOut(0.),
16  fSensorId(0)
17 {
18 }
Double32_t fZfOut
Double32_t fPzfOut
Double32_t fYfOut
Double32_t fXfOut
Double32_t fPyfOut
Double32_t fPxfOut
PndGemMCPoint::PndGemMCPoint ( Int_t  trackID,
Int_t  detID,
Int_t  sensID,
TVector3  posIn,
TVector3  posOut,
TVector3  momIn,
TVector3  momOut,
Double_t  tof,
Double_t  length,
Double_t  eLoss 
)

Constructor with arguments

Parameters
trackIDIndex of MCTrack
detIDDetector ID
sensIDSensor ID
posInCoordinates of ingoing point[cm]
posOutCoordinates of outgoing point[cm]
momInMomentum of track at entrance [GeV]
momOutMomentum of track at exit [GeV]
tofTime since event start [ns]
lengthTrack length since creation [cm]
eLossEnergy deposit [GeV]

Definition at line 24 of file PndGemMCPoint.cxx.

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 }
Double32_t fZfOut
Double32_t fPzfOut
Double32_t fYfOut
Double32_t fXfOut
Double32_t fPyfOut
Double32_t fPxfOut
PndGemMCPoint::PndGemMCPoint ( const PndGemMCPoint point)
inline

Copy constructor

Definition at line 71 of file PndGemMCPoint.h.

References point.

71  : FairMCPoint(point),
72  fXfOut(0.), fYfOut(0.), fZfOut(0.),
73  fPxfOut(0.), fPyfOut(0.), fPzfOut(0.),
74  fSensorId(0)
75  { *this = point; };
Double32_t fZfOut
Double32_t fPzfOut
Double32_t fYfOut
Double32_t fXfOut
Double32_t fPyfOut
Double32_t fPxfOut
PndSdsMCPoint * point
Definition: anaLmdCluster.C:72
PndGemMCPoint::~PndGemMCPoint ( )
virtual

Destructor

Definition at line 44 of file PndGemMCPoint.cxx.

44 { }

Member Function Documentation

PndGemMCPoint::ClassDef ( PndGemMCPoint  ,
 
)
protected
TVector3 PndGemMCPoint::GetPosition ( ) const
inline

Definition at line 91 of file PndGemMCPoint.h.

References fX, fY, and fZ.

91 { return TVector3(fX, fY, fZ);}
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t fY
Definition: PndCaloDraw.cxx:34
TVector3 PndGemMCPoint::GetPositionOut ( ) const
inline

Definition at line 92 of file PndGemMCPoint.h.

92 { return TVector3(fXfOut, fYfOut, fZfOut);}
Double32_t fZfOut
Double32_t fYfOut
Double32_t fXfOut
Double_t PndGemMCPoint::GetPxOut ( ) const
inline

Definition at line 87 of file PndGemMCPoint.h.

87 { return fPxfOut; }
Double32_t fPxfOut
Double_t PndGemMCPoint::GetPyOut ( ) const
inline

Definition at line 88 of file PndGemMCPoint.h.

88 { return fPyfOut; }
Double32_t fPyfOut
Double_t PndGemMCPoint::GetPzOut ( ) const
inline

Definition at line 89 of file PndGemMCPoint.h.

89 { return fPzfOut; }
Double32_t fPzfOut
Int_t PndGemMCPoint::GetSensorId ( ) const
inline
Double_t PndGemMCPoint::GetXOut ( ) const
inline
Double_t PndGemMCPoint::GetYOut ( ) const
inline
Double_t PndGemMCPoint::GetZOut ( ) const
inline

Definition at line 85 of file PndGemMCPoint.h.

Referenced by PndGemFindHitsQA::Exec(), and PndGemDigitize::SimulateGaussianResponse().

85 { return fZfOut;};
Double32_t fZfOut
void PndGemMCPoint::MomentumOut ( TVector3 &  mom) const
inline

Definition at line 95 of file PndGemMCPoint.h.

95 { mom.SetXYZ(fPxfOut,fPyfOut,fPzfOut); }
Double32_t fPzfOut
Double_t mom
Definition: plot_dirc.C:14
Double32_t fPyfOut
Double32_t fPxfOut
void PndGemMCPoint::PositionOut ( TVector3 &  pos) const
inline

Definition at line 94 of file PndGemMCPoint.h.

Referenced by PndIdealTrackFinder::CreateTracks().

94 { pos.SetXYZ(fXfOut, fYfOut, fZfOut);};
TVector3 pos
Double32_t fZfOut
Double32_t fYfOut
Double32_t fXfOut
void PndGemMCPoint::Print ( const Option_t *  opt = 0) const
virtual

Output to screen

Definition at line 51 of file PndGemMCPoint.cxx.

51  {
52  std::cout << *this << " opt = " << opt << std::endl;
53 }
void PndGemMCPoint::SetMomentumOut ( TVector3  mom)
inline

Definition at line 127 of file PndGemMCPoint.h.

127  {
128  fPxfOut = mom.Px();
129  fPyfOut = mom.Py();
130  fPzfOut = mom.Pz();
131 }
Double32_t fPzfOut
Double_t mom
Definition: plot_dirc.C:14
Double32_t fPyfOut
Double32_t fPxfOut
void PndGemMCPoint::SetPositionOut ( TVector3  pos)
inline

Modifiers

Definition at line 120 of file PndGemMCPoint.h.

120  {
121  fXfOut = pos.X();
122  fYfOut = pos.Y();
123  fZfOut = pos.Z();
124 }
TVector3 pos
Double32_t fZfOut
Double32_t fYfOut
Double32_t fXfOut
void PndGemMCPoint::SetSensorId ( Int_t  sensId)
inline

Definition at line 101 of file PndGemMCPoint.h.

101 { fSensorId = sensId; };

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream out,
const PndGemMCPoint point 
)
friend

Definition at line 34 of file PndGemMCPoint.h.

34  {
35  out << "-I- PndGemMCPoint: PndGem Point for track " << point.GetTrackID()
36  << " in detector " << point.GetDetectorID() << " with sensorID "
37  << point.GetSensorId() << std::endl;
38  out << " Position in (" << point.GetX() << ", " << point.GetY() << ", " << point.GetZ() << ") cm" << std::endl;
39  out << " Position out (" << point.GetXOut() << ", " << point.GetYOut() << ", " << point.GetZOut() << ") cm" << std::endl;
40  out << " Momentum (" << point.GetPx() << ", " << point.GetPy() << ", " << point.GetPz()
41  << ") GeV" << std::endl;
42  out << " Time " << point.GetTime() << " ns, Length " << point.GetLength()
43  << " cm, Energy loss " << point.GetEnergyLoss()*1.0e06 << " keV" << std::endl;
44  return out;
45  }
Double_t GetZOut() const
Definition: PndGemMCPoint.h:85
Int_t GetSensorId() const
Definition: PndGemMCPoint.h:90
TFile * out
Definition: reco_muo.C:20
Double_t GetYOut() const
Definition: PndGemMCPoint.h:84
Double_t GetXOut() const
Definition: PndGemMCPoint.h:83

Member Data Documentation

Double32_t PndGemMCPoint::fPxfOut
protected

Definition at line 112 of file PndGemMCPoint.h.

Double32_t PndGemMCPoint::fPyfOut
protected

Definition at line 112 of file PndGemMCPoint.h.

Double32_t PndGemMCPoint::fPzfOut
protected

Definition at line 112 of file PndGemMCPoint.h.

Int_t PndGemMCPoint::fSensorId
protected

Definition at line 113 of file PndGemMCPoint.h.

Double32_t PndGemMCPoint::fXfOut
protected

Definition at line 110 of file PndGemMCPoint.h.

Double32_t PndGemMCPoint::fYfOut
protected

Definition at line 110 of file PndGemMCPoint.h.

Double32_t PndGemMCPoint::fZfOut
protected

Definition at line 110 of file PndGemMCPoint.h.


The documentation for this class was generated from the following files: