PandaRoot
PndHypGePoint Class Reference

#include <PndHypGePoint.h>

Inheritance diagram for PndHypGePoint:

Public Member Functions

 PndHypGePoint ()
 
 PndHypGePoint (Int_t trackID, Int_t evtID, Int_t pdgCode, Double_t charge, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Short_t copy)
 
 PndHypGePoint (const PndHypGePoint &point)
 
virtual ~PndHypGePoint ()
 
Int_t GetTrackID () const
 
Int_t GetEventID () const
 
Int_t GetDetectorID () const
 
Double_t GetX () const
 
Double_t GetY () const
 
Double_t GetZ () const
 
Double_t GetPx () const
 
Double_t GetPy () const
 
Double_t GetPz () const
 
Double_t GetTime () const
 
Double_t GetLength () const
 
Double_t GetEnergyLoss () const
 
Double_t GetpdgCode () const
 
void Position (TVector3 &pos)
 
void Momentum (TVector3 &mom)
 
void SetTrackID (Int_t id)
 
void SetEventID (Int_t id)
 
void SetDetectorID (Short_t copy)
 
void SetTime (Double_t time)
 
void SetLength (Double_t length)
 
void SetEnergyLoss (Double_t eLoss)
 
void SetpdgCode (Int_t pdgCode)
 
void SetPosition (const TVector3 &pos)
 
void SetMomentum (const TVector3 &mom)
 
virtual void Print (const Option_t *opt) const
 

Protected Attributes

Int_t fEventID
 
TLorentzVector fPos
 
TLorentzVector fMom
 
Double_t fELoss
 
Double_t fmass
 
Double_t fcharge
 
Double_t fTime
 
Short_t fnCopy
 
Int_t fpdgCode
 

Detailed Description

Definition at line 16 of file PndHypGePoint.h.

Constructor & Destructor Documentation

◆ PndHypGePoint() [1/3]

PndHypGePoint::PndHypGePoint ( )

Default constructor

◆ PndHypGePoint() [2/3]

PndHypGePoint::PndHypGePoint ( Int_t  trackID,
Int_t  evtID,
Int_t  pdgCode,
Double_t  charge,
TVector3  pos,
TVector3  mom,
Double_t  tof,
Double_t  length,
Double_t  eLoss,
Short_t  copy 
)

Constructor with arguments

Parameters
trackIDIndex of MCTrack
detIDDetector ID
posInCcoordinates at entrance to active volume [cm]
posOutCoordinates at exit of active volume [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]

◆ PndHypGePoint() [3/3]

PndHypGePoint::PndHypGePoint ( const PndHypGePoint point)
inline

Copy constructor

Definition at line 37 of file PndHypGePoint.h.

37 { *this = point; };

◆ ~PndHypGePoint()

virtual PndHypGePoint::~PndHypGePoint ( )
virtual

Destructor

Member Function Documentation

◆ GetDetectorID()

Int_t PndHypGePoint::GetDetectorID ( ) const
inline

Definition at line 45 of file PndHypGePoint.h.

45 { return fnCopy; };
Short_t fnCopy
Definition: PndHypGePoint.h:79

◆ GetEnergyLoss()

Double_t PndHypGePoint::GetEnergyLoss ( ) const
inline

Definition at line 54 of file PndHypGePoint.h.

54 { return fELoss; };
Double_t fELoss
Definition: PndHypGePoint.h:78

◆ GetEventID()

Int_t PndHypGePoint::GetEventID ( ) const
inline

Definition at line 44 of file PndHypGePoint.h.

44 { return fEventID; };

◆ GetLength()

Double_t PndHypGePoint::GetLength ( ) const
inline

Definition at line 53 of file PndHypGePoint.h.

53 { return fLength; };

◆ GetpdgCode()

Double_t PndHypGePoint::GetpdgCode ( ) const
inline

Definition at line 55 of file PndHypGePoint.h.

55 { return fpdgCode; };

◆ GetPx()

Double_t PndHypGePoint::GetPx ( ) const
inline

Definition at line 49 of file PndHypGePoint.h.

49 { return fPx; };

◆ GetPy()

Double_t PndHypGePoint::GetPy ( ) const
inline

Definition at line 50 of file PndHypGePoint.h.

50 { return fPy; };

◆ GetPz()

Double_t PndHypGePoint::GetPz ( ) const
inline

Definition at line 51 of file PndHypGePoint.h.

51 { return fPz; };

◆ GetTime()

Double_t PndHypGePoint::GetTime ( ) const
inline

Definition at line 52 of file PndHypGePoint.h.

52 { return fTime; };
Double_t fTime
Definition: PndHypGePoint.h:78

◆ GetTrackID()

Int_t PndHypGePoint::GetTrackID ( ) const
inline

Accessors

Definition at line 43 of file PndHypGePoint.h.

43 { return fTrackID; };

◆ GetX()

Double_t PndHypGePoint::GetX ( ) const
inline

Definition at line 46 of file PndHypGePoint.h.

46 { return fX; };

◆ GetY()

Double_t PndHypGePoint::GetY ( ) const
inline

Definition at line 47 of file PndHypGePoint.h.

47 { return fY; };

◆ GetZ()

Double_t PndHypGePoint::GetZ ( ) const
inline

Definition at line 48 of file PndHypGePoint.h.

48 { return fZ; };

◆ Momentum()

void PndHypGePoint::Momentum ( TVector3 &  mom)
inline

Definition at line 57 of file PndHypGePoint.h.

57 { mom.SetXYZ(fPx, fPy, fPz); };

◆ Position()

void PndHypGePoint::Position ( TVector3 &  pos)
inline

Definition at line 56 of file PndHypGePoint.h.

56 { pos.SetXYZ(fX, fY, fZ); };

◆ Print()

virtual void PndHypGePoint::Print ( const Option_t *  opt) const
virtual

Output to screen

◆ SetDetectorID()

void PndHypGePoint::SetDetectorID ( Short_t  copy)
inline

Definition at line 63 of file PndHypGePoint.h.

63 { fnCopy = copy; };
Short_t fnCopy
Definition: PndHypGePoint.h:79

◆ SetEnergyLoss()

void PndHypGePoint::SetEnergyLoss ( Double_t  eLoss)
inline

Definition at line 66 of file PndHypGePoint.h.

66 { fELoss = eLoss; };
Double_t fELoss
Definition: PndHypGePoint.h:78

◆ SetEventID()

void PndHypGePoint::SetEventID ( Int_t  id)
inline

Definition at line 62 of file PndHypGePoint.h.

62 { fEventID = id; };

◆ SetLength()

void PndHypGePoint::SetLength ( Double_t  length)
inline

Definition at line 65 of file PndHypGePoint.h.

65 { fLength = length; };

◆ SetMomentum()

void PndHypGePoint::SetMomentum ( const TVector3 &  mom)
inline

Definition at line 92 of file PndHypGePoint.h.

93 {
94  fPx = mom.Px();
95  fPy = mom.Py();
96  fPz = mom.Pz();
97 }

◆ SetpdgCode()

void PndHypGePoint::SetpdgCode ( Int_t  pdgCode)
inline

Definition at line 67 of file PndHypGePoint.h.

67 { fpdgCode = pdgCode; };

◆ SetPosition()

void PndHypGePoint::SetPosition ( const TVector3 &  pos)
inline

Definition at line 85 of file PndHypGePoint.h.

86 {
87  fX = pos.X();
88  fY = pos.Y();
89  fZ = pos.Z();
90 }

◆ SetTime()

void PndHypGePoint::SetTime ( Double_t  time)
inline

Definition at line 64 of file PndHypGePoint.h.

64 { fTime = time; };
Double_t fTime
Definition: PndHypGePoint.h:78

◆ SetTrackID()

void PndHypGePoint::SetTrackID ( Int_t  id)
inline

Modifiers

Definition at line 61 of file PndHypGePoint.h.

61 { fTrackID = id; };

Member Data Documentation

◆ fcharge

Double_t PndHypGePoint::fcharge
protected

Definition at line 78 of file PndHypGePoint.h.

◆ fELoss

Double_t PndHypGePoint::fELoss
protected

Definition at line 78 of file PndHypGePoint.h.

◆ fEventID

Int_t PndHypGePoint::fEventID
protected

Definition at line 75 of file PndHypGePoint.h.

◆ fmass

Double_t PndHypGePoint::fmass
protected

Definition at line 78 of file PndHypGePoint.h.

◆ fMom

TLorentzVector PndHypGePoint::fMom
protected

Definition at line 77 of file PndHypGePoint.h.

◆ fnCopy

Short_t PndHypGePoint::fnCopy
protected

Definition at line 79 of file PndHypGePoint.h.

◆ fpdgCode

Int_t PndHypGePoint::fpdgCode
protected

Definition at line 80 of file PndHypGePoint.h.

◆ fPos

TLorentzVector PndHypGePoint::fPos
protected

Definition at line 76 of file PndHypGePoint.h.

◆ fTime

Double_t PndHypGePoint::fTime
protected

Definition at line 78 of file PndHypGePoint.h.


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