PandaRoot
BSEmcMCPoint Class Reference

represents a mc hit in an emc crystal More...

#include <BSEmcMCPoint.h>

Inheritance diagram for BSEmcMCPoint:

Public Member Functions

 BSEmcMCPoint ()
 
 BSEmcMCPoint (Int_t t_trackID, Int_t t_detID, Int_t t_evtID, const TVector3 &t_pos, const TVector3 &t_mom, Double_t t_tof, Double_t t_length, Double_t t_eLoss, Bool_t t_entering=kFALSE, Bool_t t_exiting=kFALSE)
 
 BSEmcMCPoint (const BSEmcMCPoint &t_point)
 
virtual ~BSEmcMCPoint ()
 
Bool_t GetEntering () const
 
Bool_t GetExiting () const
 
virtual void SetTrackID (Int_t t_trackId)
 
virtual void Print (const Option_t *t_opt) const
 
Bool_t operator< (const BSEmcMCPoint &t_rhs) const
 
Int_t GetDetectorId () const
 
void SetDetectorId (Int_t t_detectorId)
 
TVector3 GetPosition () const
 
Int_t GetClusterID () const
 
void SetClusterID (Int_t t_clusterId)
 

Protected Attributes

Bool_t fEntering {kFALSE}
 
Bool_t fExiting {kFALSE}
 
Int_t fClusterID {-1}
 

Detailed Description

represents a mc hit in an emc crystal

Author
S.Spataro

Definition at line 40 of file BSEmcMCPoint.h.

Constructor & Destructor Documentation

◆ BSEmcMCPoint() [1/3]

BSEmcMCPoint::BSEmcMCPoint ( )

Default constructor

◆ BSEmcMCPoint() [2/3]

BSEmcMCPoint::BSEmcMCPoint ( Int_t  t_trackID,
Int_t  t_detID,
Int_t  t_evtID,
const TVector3 &  t_pos,
const TVector3 &  t_mom,
Double_t  t_tof,
Double_t  t_length,
Double_t  t_eLoss,
Bool_t  t_entering = kFALSE,
Bool_t  t_exiting = kFALSE 
)

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]
enteringExisting particle entering the crystal (needed for MC match)
exitingParticle leaving the crystal (needed for MC match)

◆ BSEmcMCPoint() [3/3]

BSEmcMCPoint::BSEmcMCPoint ( const BSEmcMCPoint t_point)

Copy constructor

◆ ~BSEmcMCPoint()

virtual BSEmcMCPoint::~BSEmcMCPoint ( )
virtual

Destructor

Member Function Documentation

◆ GetClusterID()

Int_t BSEmcMCPoint::GetClusterID ( ) const
inline

Definition at line 87 of file BSEmcMCPoint.h.

References fClusterID.

87 { return fClusterID; }
Int_t fClusterID
Definition: BSEmcMCPoint.h:93

◆ GetDetectorId()

Int_t BSEmcMCPoint::GetDetectorId ( ) const
inline

Definition at line 83 of file BSEmcMCPoint.h.

83 { return fDetectorID; }

◆ GetEntering()

Bool_t BSEmcMCPoint::GetEntering ( ) const
inline

Definition at line 68 of file BSEmcMCPoint.h.

References fEntering.

68 { return fEntering; }
Bool_t fEntering
Definition: BSEmcMCPoint.h:91

◆ GetExiting()

Bool_t BSEmcMCPoint::GetExiting ( ) const
inline

Definition at line 69 of file BSEmcMCPoint.h.

References fExiting.

69 { return fExiting; }
Bool_t fExiting
Definition: BSEmcMCPoint.h:92

◆ GetPosition()

TVector3 BSEmcMCPoint::GetPosition ( ) const
inline

Definition at line 85 of file BSEmcMCPoint.h.

85 { return TVector3{GetX(), GetY(), GetZ()}; }

◆ operator<()

Bool_t BSEmcMCPoint::operator< ( const BSEmcMCPoint t_rhs) const

Referenced by SetTrackID().

◆ Print()

virtual void BSEmcMCPoint::Print ( const Option_t *  t_opt) const
virtual

Output to screen

Referenced by SetTrackID().

◆ SetClusterID()

void BSEmcMCPoint::SetClusterID ( Int_t  t_clusterId)
inline

Definition at line 88 of file BSEmcMCPoint.h.

References fClusterID.

88 { fClusterID = t_clusterId; }
Int_t fClusterID
Definition: BSEmcMCPoint.h:93

◆ SetDetectorId()

void BSEmcMCPoint::SetDetectorId ( Int_t  t_detectorId)
inline

Definition at line 84 of file BSEmcMCPoint.h.

84 { fDetectorID = t_detectorId; }

◆ SetTrackID()

virtual void BSEmcMCPoint::SetTrackID ( Int_t  t_trackId)
inlinevirtual

Modifiers

Definition at line 72 of file BSEmcMCPoint.h.

References operator<(), and Print().

73  {
74  FairMCPoint::SetTrackID(t_trackId);
75  SetLink(FairLink("MCTrack", t_trackId));
76  } // 14.09.10 Stefano FIX

Member Data Documentation

◆ fClusterID

Int_t BSEmcMCPoint::fClusterID {-1}
protected

Definition at line 93 of file BSEmcMCPoint.h.

Referenced by GetClusterID(), and SetClusterID().

◆ fEntering

Bool_t BSEmcMCPoint::fEntering {kFALSE}
protected

Definition at line 91 of file BSEmcMCPoint.h.

Referenced by GetEntering().

◆ fExiting

Bool_t BSEmcMCPoint::fExiting {kFALSE}
protected

Definition at line 92 of file BSEmcMCPoint.h.

Referenced by GetExiting().


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