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 28 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 75 of file BSEmcMCPoint.h.

References fClusterID.

75 { return fClusterID; }
Int_t fClusterID
Definition: BSEmcMCPoint.h:81

◆ GetDetectorId()

Int_t BSEmcMCPoint::GetDetectorId ( ) const
inline

Definition at line 71 of file BSEmcMCPoint.h.

71 { return fDetectorID; }

◆ GetEntering()

Bool_t BSEmcMCPoint::GetEntering ( ) const
inline

Definition at line 56 of file BSEmcMCPoint.h.

References fEntering.

56 { return fEntering; }
Bool_t fEntering
Definition: BSEmcMCPoint.h:79

◆ GetExiting()

Bool_t BSEmcMCPoint::GetExiting ( ) const
inline

Definition at line 57 of file BSEmcMCPoint.h.

References fExiting.

57 { return fExiting; }
Bool_t fExiting
Definition: BSEmcMCPoint.h:80

◆ GetPosition()

TVector3 BSEmcMCPoint::GetPosition ( ) const
inline

Definition at line 73 of file BSEmcMCPoint.h.

73 { 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 76 of file BSEmcMCPoint.h.

References fClusterID.

76 { fClusterID = t_clusterId; }
Int_t fClusterID
Definition: BSEmcMCPoint.h:81

◆ SetDetectorId()

void BSEmcMCPoint::SetDetectorId ( Int_t  t_detectorId)
inline

Definition at line 72 of file BSEmcMCPoint.h.

72 { fDetectorID = t_detectorId; }

◆ SetTrackID()

virtual void BSEmcMCPoint::SetTrackID ( Int_t  t_trackId)
inlinevirtual

Modifiers

Definition at line 60 of file BSEmcMCPoint.h.

References operator<(), and Print().

61  {
62  FairMCPoint::SetTrackID(t_trackId);
63  SetLink(FairLink("MCTrack", t_trackId));
64  } // 14.09.10 Stefano FIX

Member Data Documentation

◆ fClusterID

Int_t BSEmcMCPoint::fClusterID {-1}
protected

Definition at line 81 of file BSEmcMCPoint.h.

Referenced by GetClusterID(), and SetClusterID().

◆ fEntering

Bool_t BSEmcMCPoint::fEntering {kFALSE}
protected

Definition at line 79 of file BSEmcMCPoint.h.

Referenced by GetEntering().

◆ fExiting

Bool_t BSEmcMCPoint::fExiting {kFALSE}
protected

Definition at line 80 of file BSEmcMCPoint.h.

Referenced by GetExiting().


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