PandaRoot
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=nullptr) 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::ostream & operator<< (std::ostream &out, const PndGemMCPoint &point)
 

Detailed Description

Definition at line 27 of file PndGemMCPoint.h.

Constructor & Destructor Documentation

◆ PndGemMCPoint() [1/3]

PndGemMCPoint::PndGemMCPoint ( )

Default constructor

◆ PndGemMCPoint() [2/3]

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]

◆ PndGemMCPoint() [3/3]

PndGemMCPoint::PndGemMCPoint ( const PndGemMCPoint point)
inline

Copy constructor

Definition at line 57 of file PndGemMCPoint.h.

57 : FairMCPoint(point), fXfOut(0.), fYfOut(0.), fZfOut(0.), fPxfOut(0.), fPyfOut(0.), fPzfOut(0.), fSensorId(0) { *this = point; };
Double32_t fZfOut
Definition: PndGemMCPoint.h:86
Double32_t fPzfOut
Definition: PndGemMCPoint.h:88
Double32_t fYfOut
Definition: PndGemMCPoint.h:86
Double32_t fXfOut
Definition: PndGemMCPoint.h:86
Double32_t fPyfOut
Definition: PndGemMCPoint.h:88
Double32_t fPxfOut
Definition: PndGemMCPoint.h:88

◆ ~PndGemMCPoint()

virtual PndGemMCPoint::~PndGemMCPoint ( )
virtual

Destructor

Member Function Documentation

◆ ClassDef()

PndGemMCPoint::ClassDef ( PndGemMCPoint  ,
 
)
protected

◆ GetPosition()

TVector3 PndGemMCPoint::GetPosition ( ) const
inline

Definition at line 71 of file PndGemMCPoint.h.

71 { return TVector3(fX, fY, fZ); }

◆ GetPositionOut()

TVector3 PndGemMCPoint::GetPositionOut ( ) const
inline

Definition at line 72 of file PndGemMCPoint.h.

72 { return TVector3(fXfOut, fYfOut, fZfOut); }
Double32_t fZfOut
Definition: PndGemMCPoint.h:86
Double32_t fYfOut
Definition: PndGemMCPoint.h:86
Double32_t fXfOut
Definition: PndGemMCPoint.h:86

◆ GetPxOut()

Double_t PndGemMCPoint::GetPxOut ( ) const
inline

Definition at line 67 of file PndGemMCPoint.h.

67 { return fPxfOut; }
Double32_t fPxfOut
Definition: PndGemMCPoint.h:88

◆ GetPyOut()

Double_t PndGemMCPoint::GetPyOut ( ) const
inline

Definition at line 68 of file PndGemMCPoint.h.

68 { return fPyfOut; }
Double32_t fPyfOut
Definition: PndGemMCPoint.h:88

◆ GetPzOut()

Double_t PndGemMCPoint::GetPzOut ( ) const
inline

Definition at line 69 of file PndGemMCPoint.h.

69 { return fPzfOut; }
Double32_t fPzfOut
Definition: PndGemMCPoint.h:88

◆ GetSensorId()

Int_t PndGemMCPoint::GetSensorId ( ) const
inline

Definition at line 70 of file PndGemMCPoint.h.

70 { return fSensorId; }

◆ GetXOut()

Double_t PndGemMCPoint::GetXOut ( ) const
inline

Accessors

Definition at line 63 of file PndGemMCPoint.h.

63 { return fXfOut; };
Double32_t fXfOut
Definition: PndGemMCPoint.h:86

◆ GetYOut()

Double_t PndGemMCPoint::GetYOut ( ) const
inline

Definition at line 64 of file PndGemMCPoint.h.

64 { return fYfOut; };
Double32_t fYfOut
Definition: PndGemMCPoint.h:86

◆ GetZOut()

Double_t PndGemMCPoint::GetZOut ( ) const
inline

Definition at line 65 of file PndGemMCPoint.h.

65 { return fZfOut; };
Double32_t fZfOut
Definition: PndGemMCPoint.h:86

◆ MomentumOut()

void PndGemMCPoint::MomentumOut ( TVector3 &  mom) const
inline

Definition at line 75 of file PndGemMCPoint.h.

75 { mom.SetXYZ(fPxfOut, fPyfOut, fPzfOut); }
Double32_t fPzfOut
Definition: PndGemMCPoint.h:88
Double32_t fPyfOut
Definition: PndGemMCPoint.h:88
Double32_t fPxfOut
Definition: PndGemMCPoint.h:88

◆ PositionOut()

void PndGemMCPoint::PositionOut ( TVector3 &  pos) const
inline

Definition at line 74 of file PndGemMCPoint.h.

74 { pos.SetXYZ(fXfOut, fYfOut, fZfOut); };
Double32_t fZfOut
Definition: PndGemMCPoint.h:86
Double32_t fYfOut
Definition: PndGemMCPoint.h:86
Double32_t fXfOut
Definition: PndGemMCPoint.h:86

◆ Print()

virtual void PndGemMCPoint::Print ( const Option_t *  opt = nullptr) const
virtual

Output to screen

◆ SetMomentumOut()

void PndGemMCPoint::SetMomentumOut ( TVector3  mom)
inline

Definition at line 101 of file PndGemMCPoint.h.

102 {
103  fPxfOut = mom.Px();
104  fPyfOut = mom.Py();
105  fPzfOut = mom.Pz();
106 }
Double32_t fPzfOut
Definition: PndGemMCPoint.h:88
Double32_t fPyfOut
Definition: PndGemMCPoint.h:88
Double32_t fPxfOut
Definition: PndGemMCPoint.h:88

◆ SetPositionOut()

void PndGemMCPoint::SetPositionOut ( TVector3  pos)
inline

Modifiers

Definition at line 94 of file PndGemMCPoint.h.

95 {
96  fXfOut = pos.X();
97  fYfOut = pos.Y();
98  fZfOut = pos.Z();
99 }
Double32_t fZfOut
Definition: PndGemMCPoint.h:86
Double32_t fYfOut
Definition: PndGemMCPoint.h:86
Double32_t fXfOut
Definition: PndGemMCPoint.h:86

◆ SetSensorId()

void PndGemMCPoint::SetSensorId ( Int_t  sensId)
inline

Definition at line 80 of file PndGemMCPoint.h.

80 { fSensorId = sensId; };

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 28 of file PndGemMCPoint.h.

29  {
30  out << "-I- PndGemMCPoint: PndGem Point for track " << point.GetTrackID() << " in detector " << point.GetDetectorID() << " with sensorID " << point.GetSensorId() << std::endl;
31  out << " Position in (" << point.GetX() << ", " << point.GetY() << ", " << point.GetZ() << ") cm" << std::endl;
32  out << " Position out (" << point.GetXOut() << ", " << point.GetYOut() << ", " << point.GetZOut() << ") cm" << std::endl;
33  out << " Momentum (" << point.GetPx() << ", " << point.GetPy() << ", " << point.GetPz() << ") GeV" << std::endl;
34  out << " Time " << point.GetTime() << " ns, Length " << point.GetLength() << " cm, Energy loss " << point.GetEnergyLoss() * 1.0e06 << " keV" << std::endl;
35  return out;
36  }
Double_t GetXOut() const
Definition: PndGemMCPoint.h:63
Int_t GetSensorId() const
Definition: PndGemMCPoint.h:70
Double_t GetZOut() const
Definition: PndGemMCPoint.h:65
Double_t GetYOut() const
Definition: PndGemMCPoint.h:64

Member Data Documentation

◆ fPxfOut

Double32_t PndGemMCPoint::fPxfOut
protected

Definition at line 88 of file PndGemMCPoint.h.

◆ fPyfOut

Double32_t PndGemMCPoint::fPyfOut
protected

Definition at line 88 of file PndGemMCPoint.h.

◆ fPzfOut

Double32_t PndGemMCPoint::fPzfOut
protected

Definition at line 88 of file PndGemMCPoint.h.

◆ fSensorId

Int_t PndGemMCPoint::fSensorId
protected

Definition at line 89 of file PndGemMCPoint.h.

◆ fXfOut

Double32_t PndGemMCPoint::fXfOut
protected

Definition at line 86 of file PndGemMCPoint.h.

◆ fYfOut

Double32_t PndGemMCPoint::fYfOut
protected

Definition at line 86 of file PndGemMCPoint.h.

◆ fZfOut

Double32_t PndGemMCPoint::fZfOut
protected

Definition at line 86 of file PndGemMCPoint.h.


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