PandaRoot
PndGemMCPoint Class Reference

#include <PndGemMCPoint.h>

Inheritance diagram for PndGemMCPoint:
PndMCPoint

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 ()
 
Int_t GetSensorId () const
 
void SetSensorId (Int_t sensId)
 
virtual void Print (const Option_t *opt=nullptr) const
 
- Public Member Functions inherited from PndMCPoint
 PndMCPoint ()
 
virtual ~PndMCPoint ()
 
 PndMCPoint (Int_t trackID, Int_t detID, TVector3 pos, TVector3 posOut, TVector3 mom, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss, UInt_t EventId=0)
 
Double_t GetXOut () const
 
Double_t GetYOut () const
 
Double_t GetZOut () const
 
Double_t GetPxOut () const
 
Double_t GetPyOut () const
 
Double_t GetPzOut () const
 
TVector3 GetPosition () const
 
TVector3 GetPositionOut () const
 
TVector3 GetMeanPosition () const
 
void PositionOut (TVector3 &pos) const
 
TVector3 GetMomentum () const
 
TVector3 GetMomentumOut () const
 
void MomentumOut (TVector3 &mom) const
 
void SetPositionOut (TVector3 pos)
 
void SetMomentumOut (TVector3 mom)
 

Protected Member Functions

 ClassDef (PndGemMCPoint, 2)
 
- Protected Member Functions inherited from PndMCPoint
 ClassDef (PndMCPoint, 1)
 

Protected Attributes

Int_t fSensorId = 0
 
- Protected Attributes inherited from PndMCPoint
Double32_t fXOut = 0.
 
Double32_t fYOut = 0.
 
Double32_t fZOut = 0.
 
Double32_t fPxOut = 0.
 
Double32_t fPyOut = 0.
 
Double32_t fPzOut = 0.
 

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 : PndMCPoint(point) { *this = point; };

◆ ~PndGemMCPoint()

virtual PndGemMCPoint::~PndGemMCPoint ( )
virtual

Destructor

Member Function Documentation

◆ ClassDef()

PndGemMCPoint::ClassDef ( PndGemMCPoint  ,
 
)
protected

◆ GetSensorId()

Int_t PndGemMCPoint::GetSensorId ( ) const
inline

Accessors

Definition at line 63 of file PndGemMCPoint.h.

63 { return fSensorId; }

◆ Print()

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

Output to screen

◆ SetSensorId()

void PndGemMCPoint::SetSensorId ( Int_t  sensId)
inline

Modifiers

Definition at line 66 of file PndGemMCPoint.h.

66 { 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 GetZOut() const
Definition: PndMCPoint.h:23
Double_t GetYOut() const
Definition: PndMCPoint.h:22
Int_t GetSensorId() const
Definition: PndGemMCPoint.h:63
Double_t GetXOut() const
Definition: PndMCPoint.h:21

Member Data Documentation

◆ fSensorId

Int_t PndGemMCPoint::fSensorId = 0
protected

Definition at line 72 of file PndGemMCPoint.h.


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