PandaRoot
PndSdsMCPoint Class Reference

#include <PndSdsMCPoint.h>

Inheritance diagram for PndSdsMCPoint:
PndMCPoint

Public Member Functions

 PndSdsMCPoint ()
 
 PndSdsMCPoint (Int_t trackID, Int_t detID, Int_t sensorID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss)
 
 PndSdsMCPoint (const PndSdsMCPoint &point)
 
virtual ~PndSdsMCPoint ()
 
Int_t GetSensorID () const
 
void SetSensorID (Int_t sensorID)
 
virtual void SetTrackID (Int_t id)
 
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 (PndSdsMCPoint, 7)
 
- Protected Member Functions inherited from PndMCPoint
 ClassDef (PndMCPoint, 1)
 

Protected Attributes

Int_t fSensorID
 
- 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 PndSdsMCPoint &point)
 

Detailed Description

Definition at line 23 of file PndSdsMCPoint.h.

Constructor & Destructor Documentation

◆ PndSdsMCPoint() [1/3]

PndSdsMCPoint::PndSdsMCPoint ( )

Default constructor

◆ PndSdsMCPoint() [2/3]

PndSdsMCPoint::PndSdsMCPoint ( Int_t  trackID,
Int_t  detID,
Int_t  sensorID,
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
sensorIDFull nameId of the detector, see PndSdsGeoHandling
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]

◆ PndSdsMCPoint() [3/3]

PndSdsMCPoint::PndSdsMCPoint ( const PndSdsMCPoint point)
inline

Copy constructor

Definition at line 53 of file PndSdsMCPoint.h.

53 : PndMCPoint(point), fSensorID(point.fSensorID) { *this = point; };

◆ ~PndSdsMCPoint()

virtual PndSdsMCPoint::~PndSdsMCPoint ( )
virtual

Destructor

Member Function Documentation

◆ ClassDef()

PndSdsMCPoint::ClassDef ( PndSdsMCPoint  ,
 
)
protected

◆ GetSensorID()

Int_t PndSdsMCPoint::GetSensorID ( ) const
inline

Accessors

Definition at line 59 of file PndSdsMCPoint.h.

59 { return fSensorID; }

◆ Print()

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

Output to screen

◆ SetSensorID()

void PndSdsMCPoint::SetSensorID ( Int_t  sensorID)
inline

Modifiers

Definition at line 63 of file PndSdsMCPoint.h.

63 { fSensorID = sensorID; }

◆ SetTrackID()

virtual void PndSdsMCPoint::SetTrackID ( Int_t  id)
inlinevirtual

Definition at line 64 of file PndSdsMCPoint.h.

64 { FairMCPoint::SetTrackID(id); };

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 24 of file PndSdsMCPoint.h.

25  {
26  out << "-I- PndSdsMCPoint: PndSds Point for track " << point.GetTrackID() << " in detector " << point.GetDetectorID() << " with sensor " << point.GetSensorID() << std::endl;
27  out << " Position in (" << point.GetX() << ", " << point.GetY() << ", " << point.GetZ() << ") cm" << std::endl;
28  out << " Position out (" << point.GetXOut() << ", " << point.GetYOut() << ", " << point.GetZOut() << ") cm" << std::endl;
29  out << " Momentum (" << point.GetPx() << ", " << point.GetPy() << ", " << point.GetPz() << ") GeV" << std::endl;
30  out << " Time " << point.GetTime() << " ns, Length " << point.GetLength() << " cm, Energy loss " << point.GetEnergyLoss() * 1.0e06 << " keV" << std::endl;
31  return out;
32  }
Double_t GetZOut() const
Definition: PndMCPoint.h:23
Double_t GetYOut() const
Definition: PndMCPoint.h:22
Int_t GetSensorID() const
Definition: PndSdsMCPoint.h:59
Double_t GetXOut() const
Definition: PndMCPoint.h:21

Member Data Documentation

◆ fSensorID

Int_t PndSdsMCPoint::fSensorID
protected

Definition at line 70 of file PndSdsMCPoint.h.


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