PandaRoot
PndEmcPoint Class Reference

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

#include <PndEmcPoint.h>

Inheritance diagram for PndEmcPoint:

Public Member Functions

 PndEmcPoint ()
 
 PndEmcPoint (Int_t trackID, Int_t detID, Int_t evtID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Short_t mod, Short_t row, Short_t crys, Short_t copy, Bool_t entering=kFALSE, Bool_t exiting=kFALSE, int clusteID=-1)
 
 PndEmcPoint (const PndEmcPoint &point)
 
virtual ~PndEmcPoint ()
 
Double_t GetTheta () const
 
Double_t GetPhi () const
 
Short_t GetXPad () const
 
Short_t GetYPad () const
 
Short_t GetModule () const
 
Short_t GetRow () const
 
Short_t GetCrystal () const
 
Short_t GetCopy () const
 
Bool_t GetEntering () const
 
Bool_t GetExiting () const
 
Int_t GetClusterID () const
 
void SetModule (Short_t mod)
 
void SetRow (Short_t row)
 
void SetCrystal (Short_t crys)
 
void SetTrackID (Int_t trackId)
 
void SetClusterID (int clusterID)
 
virtual void Print (const Option_t *opt="") const
 

Protected Attributes

Short_t nModule
 
Short_t nRow
 
Short_t nCrystal
 
Short_t nCopy
 
Bool_t fEntering
 
Bool_t fExiting
 
Int_t fClusterID
 

Detailed Description

represents a mc hit in an emc crystal

Definition at line 19 of file PndEmcPoint.h.

Constructor & Destructor Documentation

◆ PndEmcPoint() [1/3]

PndEmcPoint::PndEmcPoint ( )

Default constructor

◆ PndEmcPoint() [2/3]

PndEmcPoint::PndEmcPoint ( Int_t  trackID,
Int_t  detID,
Int_t  evtID,
TVector3  pos,
TVector3  mom,
Double_t  tof,
Double_t  length,
Double_t  eLoss,
Short_t  mod,
Short_t  row,
Short_t  crys,
Short_t  copy,
Bool_t  entering = kFALSE,
Bool_t  exiting = kFALSE,
int  clusteID = -1 
)

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)

◆ PndEmcPoint() [3/3]

PndEmcPoint::PndEmcPoint ( const PndEmcPoint point)

Copy constructor

◆ ~PndEmcPoint()

virtual PndEmcPoint::~PndEmcPoint ( )
virtual

Destructor

Member Function Documentation

◆ GetClusterID()

Int_t PndEmcPoint::GetClusterID ( ) const
inline

Definition at line 60 of file PndEmcPoint.h.

References fClusterID.

60 { return fClusterID; }
Int_t fClusterID
Definition: PndEmcPoint.h:84

◆ GetCopy()

Short_t PndEmcPoint::GetCopy ( ) const
inline

Definition at line 57 of file PndEmcPoint.h.

57 { return ((fDetectorID / 10000) % 100); };

◆ GetCrystal()

Short_t PndEmcPoint::GetCrystal ( ) const
inline

Definition at line 56 of file PndEmcPoint.h.

56 { return (fDetectorID % 10000); };

◆ GetEntering()

Bool_t PndEmcPoint::GetEntering ( ) const
inline

Definition at line 58 of file PndEmcPoint.h.

References fEntering.

58 { return fEntering; }
Bool_t fEntering
Definition: PndEmcPoint.h:82

◆ GetExiting()

Bool_t PndEmcPoint::GetExiting ( ) const
inline

Definition at line 59 of file PndEmcPoint.h.

References fExiting.

59 { return fExiting; }
Bool_t fExiting
Definition: PndEmcPoint.h:83

◆ GetModule()

Short_t PndEmcPoint::GetModule ( ) const
inline

Definition at line 54 of file PndEmcPoint.h.

54 { return (fDetectorID / 100000000); };

◆ GetPhi()

Double_t PndEmcPoint::GetPhi ( ) const
inline

Definition at line 50 of file PndEmcPoint.h.

References CAMath::ATan2(), GetXPad(), and GetYPad().

50 { return fX == 0.0 && fY == 0.0 ? 0.0 : TMath::ATan2(fY, fX) * TMath::RadToDeg(); };
static T ATan2(const T &y, const T &x)

◆ GetRow()

Short_t PndEmcPoint::GetRow ( ) const
inline

Definition at line 55 of file PndEmcPoint.h.

55 { return ((fDetectorID / 1000000) % 100); };

◆ GetTheta()

Double_t PndEmcPoint::GetTheta ( ) const
inline

Accessors

Definition at line 49 of file PndEmcPoint.h.

References CAMath::ATan2(), and sqrt().

49 { return fX == 0.0 && fY == 0.0 && fZ == 0.0 ? 0.0 : TMath::ATan2(sqrt(fX * fX + fY * fY), fZ) * TMath::RadToDeg(); };
friend F32vec4 sqrt(const F32vec4 &a)
Definition: P4_F32vec4.h:28
static T ATan2(const T &y, const T &x)

◆ GetXPad()

Short_t PndEmcPoint::GetXPad ( ) const

Referenced by GetPhi().

◆ GetYPad()

Short_t PndEmcPoint::GetYPad ( ) const

Referenced by GetPhi().

◆ Print()

virtual void PndEmcPoint::Print ( const Option_t *  opt = "") const
virtual

Output to screen

Referenced by SetClusterID().

◆ SetClusterID()

void PndEmcPoint::SetClusterID ( int  clusterID)
inline

Definition at line 72 of file PndEmcPoint.h.

References fClusterID, and Print().

72 { fClusterID = clusterID; }
Int_t fClusterID
Definition: PndEmcPoint.h:84

◆ SetCrystal()

void PndEmcPoint::SetCrystal ( Short_t  crys)
inline

Definition at line 65 of file PndEmcPoint.h.

References nCrystal.

65 { nCrystal = crys; };
Short_t nCrystal
Definition: PndEmcPoint.h:80

◆ SetModule()

void PndEmcPoint::SetModule ( Short_t  mod)
inline

Modifiers

Definition at line 63 of file PndEmcPoint.h.

References nModule.

63 { nModule = mod; };
Short_t nModule
Definition: PndEmcPoint.h:78

◆ SetRow()

void PndEmcPoint::SetRow ( Short_t  row)
inline

Definition at line 64 of file PndEmcPoint.h.

References nRow.

64 { nRow = row; };
Short_t nRow
Definition: PndEmcPoint.h:79

◆ SetTrackID()

void PndEmcPoint::SetTrackID ( Int_t  trackId)
inline

Definition at line 66 of file PndEmcPoint.h.

67  {
68  FairMCPoint::SetTrackID(trackId);
69  SetLink(FairLink("MCTrack", trackId));
70  } // 14.09.10 Stefano FIX

Member Data Documentation

◆ fClusterID

Int_t PndEmcPoint::fClusterID
protected

Definition at line 84 of file PndEmcPoint.h.

Referenced by GetClusterID(), and SetClusterID().

◆ fEntering

Bool_t PndEmcPoint::fEntering
protected

Definition at line 82 of file PndEmcPoint.h.

Referenced by GetEntering().

◆ fExiting

Bool_t PndEmcPoint::fExiting
protected

Definition at line 83 of file PndEmcPoint.h.

Referenced by GetExiting().

◆ nCopy

Short_t PndEmcPoint::nCopy
protected

Definition at line 81 of file PndEmcPoint.h.

◆ nCrystal

Short_t PndEmcPoint::nCrystal
protected

Definition at line 80 of file PndEmcPoint.h.

Referenced by SetCrystal().

◆ nModule

Short_t PndEmcPoint::nModule
protected

Definition at line 78 of file PndEmcPoint.h.

Referenced by SetModule().

◆ nRow

Short_t PndEmcPoint::nRow
protected

Definition at line 79 of file PndEmcPoint.h.

Referenced by SetRow().


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