PandaRoot
PndMCPoint Class Reference

#include <PndMCPoint.h>

Inheritance diagram for PndMCPoint:
PndDiscParticleMCPoint PndDskFLGHit PndDskParticle PndFtofPoint PndGemMCPoint PndMdtPoint PndSciTPoint PndSdsMCPoint

Public Member Functions

 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 (PndMCPoint, 1)
 

Protected Attributes

Double32_t fXOut = 0.
 
Double32_t fYOut = 0.
 
Double32_t fZOut = 0.
 
Double32_t fPxOut = 0.
 
Double32_t fPyOut = 0.
 
Double32_t fPzOut = 0.
 

Detailed Description

Base class to handle MC data for points. Derived from FairMCPoint to add missing out position and momentum

Date
15.11.2022
Author
Tobias Stockmanns t.sto.nosp@m.ckma.nosp@m.nns@f.nosp@m.z-ju.nosp@m.elich.nosp@m..de

Definition at line 14 of file PndMCPoint.h.

Constructor & Destructor Documentation

◆ PndMCPoint() [1/2]

PndMCPoint::PndMCPoint ( )

◆ ~PndMCPoint()

virtual PndMCPoint::~PndMCPoint ( )
virtual

◆ PndMCPoint() [2/2]

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 
)

Member Function Documentation

◆ ClassDef()

PndMCPoint::ClassDef ( PndMCPoint  ,
 
)
protected

Referenced by PndMdtPoint::GetWire().

◆ GetMeanPosition()

TVector3 PndMCPoint::GetMeanPosition ( ) const
inline

Definition at line 31 of file PndMCPoint.h.

References fXOut, fYOut, and fZOut.

31 { return TVector3((fX + fXOut) / 2., (fY + fYOut) / 2., (fZ + fZOut) / 2.0); }
Double32_t fYOut
Definition: PndMCPoint.h:43
Double32_t fZOut
Definition: PndMCPoint.h:44
Double32_t fXOut
Definition: PndMCPoint.h:42

◆ GetMomentum()

TVector3 PndMCPoint::GetMomentum ( ) const
inline

Definition at line 34 of file PndMCPoint.h.

Referenced by PndMdtPoint::GetMomIn().

34 { return TVector3(fPx, fPy, fPz); }

◆ GetMomentumOut()

TVector3 PndMCPoint::GetMomentumOut ( ) const
inline

Definition at line 35 of file PndMCPoint.h.

References fPxOut, fPyOut, and fPzOut.

Referenced by PndMdtPoint::GetMomOut().

35 { return TVector3(fPxOut, fPyOut, fPzOut); }
Double32_t fPyOut
Definition: PndMCPoint.h:47
Double32_t fPxOut
Definition: PndMCPoint.h:46
Double32_t fPzOut
Definition: PndMCPoint.h:48

◆ GetPosition()

TVector3 PndMCPoint::GetPosition ( ) const
inline

Definition at line 29 of file PndMCPoint.h.

Referenced by PndMdtPoint::GetPosIn().

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

◆ GetPositionOut()

TVector3 PndMCPoint::GetPositionOut ( ) const
inline

Definition at line 30 of file PndMCPoint.h.

References fXOut, fYOut, and fZOut.

Referenced by PndMdtPoint::GetPosOut().

30 { return TVector3(fXOut, fYOut, fZOut); }
Double32_t fYOut
Definition: PndMCPoint.h:43
Double32_t fZOut
Definition: PndMCPoint.h:44
Double32_t fXOut
Definition: PndMCPoint.h:42

◆ GetPxOut()

Double_t PndMCPoint::GetPxOut ( ) const
inline

Definition at line 25 of file PndMCPoint.h.

References fPxOut.

25 { return fPxOut; }
Double32_t fPxOut
Definition: PndMCPoint.h:46

◆ GetPyOut()

Double_t PndMCPoint::GetPyOut ( ) const
inline

Definition at line 26 of file PndMCPoint.h.

References fPyOut.

26 { return fPyOut; }
Double32_t fPyOut
Definition: PndMCPoint.h:47

◆ GetPzOut()

Double_t PndMCPoint::GetPzOut ( ) const
inline

Definition at line 27 of file PndMCPoint.h.

References fPzOut.

27 { return fPzOut; }
Double32_t fPzOut
Definition: PndMCPoint.h:48

◆ GetXOut()

Double_t PndMCPoint::GetXOut ( ) const
inline

Definition at line 21 of file PndMCPoint.h.

References fXOut.

21 { return fXOut; };
Double32_t fXOut
Definition: PndMCPoint.h:42

◆ GetYOut()

Double_t PndMCPoint::GetYOut ( ) const
inline

Definition at line 22 of file PndMCPoint.h.

References fYOut.

22 { return fYOut; };
Double32_t fYOut
Definition: PndMCPoint.h:43

◆ GetZOut()

Double_t PndMCPoint::GetZOut ( ) const
inline

Definition at line 23 of file PndMCPoint.h.

References fZOut.

23 { return fZOut; };
Double32_t fZOut
Definition: PndMCPoint.h:44

◆ MomentumOut()

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

Definition at line 36 of file PndMCPoint.h.

References fPxOut, fPyOut, fPzOut, SetMomentumOut(), and SetPositionOut().

36 { mom.SetXYZ(fPxOut, fPyOut, fPzOut); }
Double32_t fPyOut
Definition: PndMCPoint.h:47
Double32_t fPxOut
Definition: PndMCPoint.h:46
Double32_t fPzOut
Definition: PndMCPoint.h:48

◆ PositionOut()

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

Definition at line 32 of file PndMCPoint.h.

References fXOut, fYOut, and fZOut.

32 { pos.SetXYZ(fXOut, fYOut, fZOut); };
Double32_t fYOut
Definition: PndMCPoint.h:43
Double32_t fZOut
Definition: PndMCPoint.h:44
Double32_t fXOut
Definition: PndMCPoint.h:42

◆ SetMomentumOut()

void PndMCPoint::SetMomentumOut ( TVector3  mom)
inline

Definition at line 60 of file PndMCPoint.h.

References fPxOut, fPyOut, and fPzOut.

Referenced by MomentumOut().

61 {
62  fPxOut = mom.Px();
63  fPyOut = mom.Py();
64  fPzOut = mom.Pz();
65 }
Double32_t fPyOut
Definition: PndMCPoint.h:47
Double32_t fPxOut
Definition: PndMCPoint.h:46
Double32_t fPzOut
Definition: PndMCPoint.h:48

◆ SetPositionOut()

void PndMCPoint::SetPositionOut ( TVector3  pos)
inline

Definition at line 53 of file PndMCPoint.h.

References fXOut, fYOut, and fZOut.

Referenced by MomentumOut().

54 {
55  fXOut = pos.X();
56  fYOut = pos.Y();
57  fZOut = pos.Z();
58 }
Double32_t fYOut
Definition: PndMCPoint.h:43
Double32_t fZOut
Definition: PndMCPoint.h:44
Double32_t fXOut
Definition: PndMCPoint.h:42

Member Data Documentation

◆ fPxOut

Double32_t PndMCPoint::fPxOut = 0.
protected

Definition at line 46 of file PndMCPoint.h.

Referenced by GetMomentumOut(), GetPxOut(), MomentumOut(), and SetMomentumOut().

◆ fPyOut

Double32_t PndMCPoint::fPyOut = 0.
protected

Definition at line 47 of file PndMCPoint.h.

Referenced by GetMomentumOut(), GetPyOut(), MomentumOut(), and SetMomentumOut().

◆ fPzOut

Double32_t PndMCPoint::fPzOut = 0.
protected

Definition at line 48 of file PndMCPoint.h.

Referenced by GetMomentumOut(), GetPzOut(), MomentumOut(), and SetMomentumOut().

◆ fXOut

Double32_t PndMCPoint::fXOut = 0.
protected

Definition at line 42 of file PndMCPoint.h.

Referenced by GetMeanPosition(), GetPositionOut(), GetXOut(), PositionOut(), and SetPositionOut().

◆ fYOut

Double32_t PndMCPoint::fYOut = 0.
protected

Definition at line 43 of file PndMCPoint.h.

Referenced by GetMeanPosition(), GetPositionOut(), GetYOut(), PositionOut(), and SetPositionOut().

◆ fZOut

Double32_t PndMCPoint::fZOut = 0.
protected

Definition at line 44 of file PndMCPoint.h.

Referenced by GetMeanPosition(), GetPositionOut(), GetZOut(), PositionOut(), and SetPositionOut().


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