PandaRoot
PndSdsMCPoint Class Reference

#include <PndSdsMCPoint.h>

Inheritance diagram for PndSdsMCPoint:

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 ()
 
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 sensorID)
 
virtual void SetTrackID (Int_t id)
 
virtual void Print (const Option_t *opt=nullptr) const
 

Protected Member Functions

 ClassDef (PndSdsMCPoint, 6)
 

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 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.

54  : FairMCPoint(point), fXfOut(point.fXfOut), fYfOut(point.fYfOut), fZfOut(point.fZfOut), fPxfOut(point.fPxfOut), fPyfOut(point.fPyfOut), fPzfOut(point.fPzfOut),
55  fSensorID(point.fSensorID)
56  {
57  *this = point;
58  };
Double32_t fXfOut
Definition: PndSdsMCPoint.h:94
Double32_t fZfOut
Definition: PndSdsMCPoint.h:94
Double32_t fPzfOut
Definition: PndSdsMCPoint.h:96
Double32_t fYfOut
Definition: PndSdsMCPoint.h:94
Double32_t fPxfOut
Definition: PndSdsMCPoint.h:96
Double32_t fPyfOut
Definition: PndSdsMCPoint.h:96

◆ ~PndSdsMCPoint()

virtual PndSdsMCPoint::~PndSdsMCPoint ( )
virtual

Destructor

Member Function Documentation

◆ ClassDef()

PndSdsMCPoint::ClassDef ( PndSdsMCPoint  ,
 
)
protected

◆ GetPosition()

TVector3 PndSdsMCPoint::GetPosition ( ) const
inline

Definition at line 73 of file PndSdsMCPoint.h.

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

◆ GetPositionOut()

TVector3 PndSdsMCPoint::GetPositionOut ( ) const
inline

Definition at line 74 of file PndSdsMCPoint.h.

74 { return TVector3(fXfOut, fYfOut, fZfOut); }
Double32_t fXfOut
Definition: PndSdsMCPoint.h:94
Double32_t fZfOut
Definition: PndSdsMCPoint.h:94
Double32_t fYfOut
Definition: PndSdsMCPoint.h:94

◆ GetPxOut()

Double_t PndSdsMCPoint::GetPxOut ( ) const
inline

Definition at line 68 of file PndSdsMCPoint.h.

68 { return fPxfOut; }
Double32_t fPxfOut
Definition: PndSdsMCPoint.h:96

◆ GetPyOut()

Double_t PndSdsMCPoint::GetPyOut ( ) const
inline

Definition at line 69 of file PndSdsMCPoint.h.

69 { return fPyfOut; }
Double32_t fPyfOut
Definition: PndSdsMCPoint.h:96

◆ GetPzOut()

Double_t PndSdsMCPoint::GetPzOut ( ) const
inline

Definition at line 70 of file PndSdsMCPoint.h.

70 { return fPzfOut; }
Double32_t fPzfOut
Definition: PndSdsMCPoint.h:96

◆ GetSensorID()

Int_t PndSdsMCPoint::GetSensorID ( ) const
inline

Definition at line 72 of file PndSdsMCPoint.h.

72 { return fSensorID; }

◆ GetXOut()

Double_t PndSdsMCPoint::GetXOut ( ) const
inline

Accessors

Definition at line 64 of file PndSdsMCPoint.h.

64 { return fXfOut; };
Double32_t fXfOut
Definition: PndSdsMCPoint.h:94

◆ GetYOut()

Double_t PndSdsMCPoint::GetYOut ( ) const
inline

Definition at line 65 of file PndSdsMCPoint.h.

65 { return fYfOut; };
Double32_t fYfOut
Definition: PndSdsMCPoint.h:94

◆ GetZOut()

Double_t PndSdsMCPoint::GetZOut ( ) const
inline

Definition at line 66 of file PndSdsMCPoint.h.

66 { return fZfOut; };
Double32_t fZfOut
Definition: PndSdsMCPoint.h:94

◆ MomentumOut()

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

Definition at line 77 of file PndSdsMCPoint.h.

77 { mom.SetXYZ(fPxfOut, fPyfOut, fPzfOut); }
Double32_t fPzfOut
Definition: PndSdsMCPoint.h:96
Double32_t fPxfOut
Definition: PndSdsMCPoint.h:96
Double32_t fPyfOut
Definition: PndSdsMCPoint.h:96

◆ PositionOut()

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

Definition at line 76 of file PndSdsMCPoint.h.

76 { pos.SetXYZ(fXfOut, fYfOut, fZfOut); };
Double32_t fXfOut
Definition: PndSdsMCPoint.h:94
Double32_t fZfOut
Definition: PndSdsMCPoint.h:94
Double32_t fYfOut
Definition: PndSdsMCPoint.h:94

◆ Print()

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

Output to screen

◆ SetMomentumOut()

void PndSdsMCPoint::SetMomentumOut ( TVector3  mom)
inline

Definition at line 109 of file PndSdsMCPoint.h.

110 {
111  fPxfOut = mom.Px();
112  fPyfOut = mom.Py();
113  fPzfOut = mom.Pz();
114 }
Double32_t fPzfOut
Definition: PndSdsMCPoint.h:96
Double32_t fPxfOut
Definition: PndSdsMCPoint.h:96
Double32_t fPyfOut
Definition: PndSdsMCPoint.h:96

◆ SetPositionOut()

void PndSdsMCPoint::SetPositionOut ( TVector3  pos)
inline

Modifiers

Definition at line 102 of file PndSdsMCPoint.h.

103 {
104  fXfOut = pos.X();
105  fYfOut = pos.Y();
106  fZfOut = pos.Z();
107 }
Double32_t fXfOut
Definition: PndSdsMCPoint.h:94
Double32_t fZfOut
Definition: PndSdsMCPoint.h:94
Double32_t fYfOut
Definition: PndSdsMCPoint.h:94

◆ SetSensorID()

void PndSdsMCPoint::SetSensorID ( Int_t  sensorID)
inline

Definition at line 83 of file PndSdsMCPoint.h.

83 { fSensorID = sensorID; }

◆ SetTrackID()

virtual void PndSdsMCPoint::SetTrackID ( Int_t  id)
inlinevirtual

Definition at line 84 of file PndSdsMCPoint.h.

85  {
86  // SetLink("MCTrack", id);
87  FairMCPoint::SetTrackID(id);
88  };

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  }
Int_t GetSensorID() const
Definition: PndSdsMCPoint.h:72
Double_t GetZOut() const
Definition: PndSdsMCPoint.h:66
Double_t GetYOut() const
Definition: PndSdsMCPoint.h:65
Double_t GetXOut() const
Definition: PndSdsMCPoint.h:64

Member Data Documentation

◆ fPxfOut

Double32_t PndSdsMCPoint::fPxfOut
protected

Definition at line 96 of file PndSdsMCPoint.h.

◆ fPyfOut

Double32_t PndSdsMCPoint::fPyfOut
protected

Definition at line 96 of file PndSdsMCPoint.h.

◆ fPzfOut

Double32_t PndSdsMCPoint::fPzfOut
protected

Definition at line 96 of file PndSdsMCPoint.h.

◆ fSensorID

Int_t PndSdsMCPoint::fSensorID
protected

Definition at line 97 of file PndSdsMCPoint.h.

◆ fXfOut

Double32_t PndSdsMCPoint::fXfOut
protected

Definition at line 94 of file PndSdsMCPoint.h.

◆ fYfOut

Double32_t PndSdsMCPoint::fYfOut
protected

Definition at line 94 of file PndSdsMCPoint.h.

◆ fZfOut

Double32_t PndSdsMCPoint::fZfOut
protected

Definition at line 94 of file PndSdsMCPoint.h.


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