EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EicRcParticle Class Reference

#include <EicRoot/blob/master/eic/event/EicRcParticle.h>

+ Inheritance diagram for EicRcParticle:
+ Collaboration diagram for EicRcParticle:

Public Types

enum  HadronPidType { PionKaonProton, PionKaon, KaonProton, PionProton }
 

Public Member Functions

 EicRcParticle ()
 
 ~EicRcParticle ()
 
virtual Double_t GetPx () const
 
virtual Double_t GetPy () const
 
virtual Double_t GetPz () const
 
virtual Double_t GetP () const
 
virtual Double_t GetPt () const
 
virtual Double_t GetTheta () const
 
virtual Double_t GetPhi () const
 
virtual Double_t GetRapidity () const
 
virtual Double_t GetEta () const
 
virtual TVector3 GetVertex () const
 
void SetVertex (const TVector3 &)
 
erhic::Pid Id () const
 
virtual Double_t GetM () const
 
virtual Double_t GetE () const
 
virtual TLorentzVector Get4Vector () const
 
virtual UShort_t GetStatus () const
 
void Set4Vector (const TLorentzVector &)
 
virtual UShort_t GetParentIndex () const
 
int GetGeneratorIndex () const
 
int GetPndPidChargedCandIndex () const
 
int GetPndMCTrackIndex () const
 
const PndMCTrackGetPndMcTrack () const
 
const PndMCTrackpndmc () const
 
const PndPidCandidateGetPndPidCandidate () const
 
const PndPidCandidatepndrc () const
 
const erhic::ParticleMCGetGeneratorTrack () const
 
const erhic::ParticleMCgenmc () const
 
const EicRcParticleeicrc () const
 
const TVector3 GetMcVertex () const
 
const TVector3 GetRcVertex () const
 
const TVector3 GetMcVtxMomentum () const
 
const TVector3 GetRcVtxMomentum () const
 
double GetRcTrackerMomentumSigma () const
 
void SetRcVtxMomentum (TVector3 &momentum)
 
int GetMcPdgCode () const
 
int GetRcPdgCode () const
 
double GetEmCalEnergy () const
 
double GetHCalEnergy () const
 
- Public Member Functions inherited from erhic::VirtualParticle
virtual ~VirtualParticle ()
 

Private Member Functions

 ClassDef (EicRcParticle, 16)
 

Private Attributes

int mGeneratorEventIndex
 
int mPndMCTrackIndex
 
int mPndPidChargedCandIndex
 
int mRcPdgCode
 
float mChargeDefCL
 
float mElectronPidCL
 
std::vector< std::pair
< HadronPidType, float > > 
mHadronPidCL
 
TVector3 mRcVertex
 
TVector3 mRcVtxMomentum
 
Double_t mRcTrackerMomentumSigma
 
std::vector< std::pair
< unsigned, unsigned > > 
mCellGroups
 
EicRcCalorimeterHitmEmCal
 
EicRcCalorimeterHitmHCal
 

Friends

class EicEventAssembler
 

Detailed Description

Definition at line 41 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 41 of file EicRcParticle.h

Member Enumeration Documentation

Enumerator:
PionKaonProton 
PionKaon 
KaonProton 
PionProton 

Definition at line 186 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 186 of file EicRcParticle.h

Constructor & Destructor Documentation

EicRcParticle::EicRcParticle ( )
inline

Definition at line 46 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 46 of file EicRcParticle.h

References mEmCal, and mHCal.

EicRcParticle::~EicRcParticle ( )
inline

Definition at line 50 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 50 of file EicRcParticle.h

Member Function Documentation

EicRcParticle::ClassDef ( EicRcParticle  ,
16   
)
private
const EicRcParticle* EicRcParticle::eicrc ( ) const
inline

Definition at line 123 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 123 of file EicRcParticle.h

const erhic::ParticleMC* EicRcParticle::genmc ( ) const
inline

Definition at line 120 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 120 of file EicRcParticle.h

References GetGeneratorTrack().

+ Here is the call graph for this function:

virtual TLorentzVector EicRcParticle::Get4Vector ( ) const
inlinevirtual

Returns the momentum-energy four-vector (px, py, pz, E).

Implements erhic::VirtualParticle.

Definition at line 89 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 89 of file EicRcParticle.h

References GetE(), GetPx(), GetPy(), and GetPz().

+ Here is the call graph for this function:

virtual Double_t EicRcParticle::GetE ( ) const
inlinevirtual

Returns total energy.

Implements erhic::VirtualParticle.

Definition at line 85 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 85 of file EicRcParticle.h

References GetM(), and GetP().

Referenced by EicEventAssembler::AssignScatteredLepton(), EicEventAssembler::Exec(), Get4Vector(), and GetRapidity().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double EicRcParticle::GetEmCalEnergy ( ) const
inline

Definition at line 171 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 171 of file EicRcParticle.h

References mEmCal, and EicRcCalorimeterHit::mEnergy.

Double_t EicRcParticle::GetEta ( ) const
virtual

Returns the pseudorapidity.

Implements erhic::VirtualParticle.

Definition at line 24 of file EicRcParticle.cxx.

View newest version in sPHENIX GitHub at line 24 of file EicRcParticle.cxx

References _DEFAULT_RAPIDITY_, GetTheta(), and theta().

+ Here is the call graph for this function:

int EicRcParticle::GetGeneratorIndex ( ) const
inline

Definition at line 103 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 103 of file EicRcParticle.h

References mGeneratorEventIndex.

Referenced by EicRcEvent::GetRcParticleMatchingGenMcTrack().

+ Here is the caller graph for this function:

const erhic::ParticleMC * EicRcParticle::GetGeneratorTrack ( ) const

Definition at line 43 of file EicRcParticle.cxx.

View newest version in sPHENIX GitHub at line 43 of file EicRcParticle.cxx

References EicRootManager::GetGenMcTrack(), EicRootManager::Instance(), and mGeneratorEventIndex.

Referenced by genmc().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double EicRcParticle::GetHCalEnergy ( ) const
inline

Definition at line 172 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 172 of file EicRcParticle.h

virtual Double_t EicRcParticle::GetM ( ) const
inlinevirtual

Returns invariant mass (GeV/c2).

Implements erhic::VirtualParticle.

Definition at line 80 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 80 of file EicRcParticle.h

References Id(), and erhic::Pid::Info().

Referenced by GetE().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int EicRcParticle::GetMcPdgCode ( ) const
inline

Definition at line 162 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 162 of file EicRcParticle.h

References PndMCTrack::GetPdgCode(), and GetPndMcTrack().

Referenced by EicEventAssembler::AssignScatteredLepton(), and EicEventAssembler::Exec().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const TVector3 EicRcParticle::GetMcVertex ( ) const
inline

Definition at line 141 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 141 of file EicRcParticle.h

References GetPndMcTrack(), and PndMCTrack::GetStartVertex().

+ Here is the call graph for this function:

const TVector3 EicRcParticle::GetMcVtxMomentum ( ) const
inline

Definition at line 151 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 151 of file EicRcParticle.h

References PndMCTrack::GetMomentum(), and GetPndMcTrack().

+ Here is the call graph for this function:

virtual Double_t EicRcParticle::GetP ( ) const
inlinevirtual

Returns the magnitude of 3-momentum (GeV).

Implements erhic::VirtualParticle.

Definition at line 60 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 60 of file EicRcParticle.h

References mRcVtxMomentum.

Referenced by GetE().

+ Here is the caller graph for this function:

virtual UShort_t EicRcParticle::GetParentIndex ( ) const
inlinevirtual

Returns the index of the parent particle

Implements erhic::VirtualParticle.

Definition at line 98 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 98 of file EicRcParticle.h

virtual Double_t EicRcParticle::GetPhi ( ) const
inlinevirtual

Returns the polar angle in the range [0, 2pi] radians.

Implements erhic::VirtualParticle.

Definition at line 63 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 63 of file EicRcParticle.h

References mRcVtxMomentum.

const PndMCTrack * EicRcParticle::GetPndMcTrack ( ) const

Definition at line 52 of file EicRcParticle.cxx.

View newest version in sPHENIX GitHub at line 52 of file EicRcParticle.cxx

References EicRootManager::GetPndMcBranch(), EicRootManager::GetPndMcTracks(), EicRootManager::Instance(), mPndMCTrackIndex, and EicRootManager::SynchronizeBranch().

Referenced by GetMcPdgCode(), GetMcVertex(), GetMcVtxMomentum(), and pndmc().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int EicRcParticle::GetPndMCTrackIndex ( ) const
inline

Definition at line 105 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 105 of file EicRcParticle.h

References mPndMCTrackIndex.

Referenced by EicRcEvent::GetRcParticleMatchingGenMcTrack().

+ Here is the caller graph for this function:

const PndPidCandidate * EicRcParticle::GetPndPidCandidate ( ) const

Definition at line 65 of file EicRcParticle.cxx.

View newest version in sPHENIX GitHub at line 65 of file EicRcParticle.cxx

References EicRootManager::GetPndPidBranch(), EicRootManager::GetPndPidCandidates(), EicRootManager::Instance(), mPndPidChargedCandIndex, and EicRootManager::SynchronizeBranch().

Referenced by pndrc().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int EicRcParticle::GetPndPidChargedCandIndex ( ) const
inline

Definition at line 104 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 104 of file EicRcParticle.h

References mPndPidChargedCandIndex.

virtual Double_t EicRcParticle::GetPt ( ) const
inlinevirtual

Returns momentum perpendicular to the beam direction.

Implements erhic::VirtualParticle.

Definition at line 61 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 61 of file EicRcParticle.h

References mRcVtxMomentum.

virtual Double_t EicRcParticle::GetPx ( ) const
inlinevirtual

Returns the x component of 3-momentum.

Implements erhic::VirtualParticle.

Definition at line 57 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 57 of file EicRcParticle.h

References mRcVtxMomentum.

Referenced by Get4Vector().

+ Here is the caller graph for this function:

virtual Double_t EicRcParticle::GetPy ( ) const
inlinevirtual

Returns the y component of 3-momentum.

Implements erhic::VirtualParticle.

Definition at line 58 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 58 of file EicRcParticle.h

References mRcVtxMomentum.

Referenced by Get4Vector().

+ Here is the caller graph for this function:

virtual Double_t EicRcParticle::GetPz ( ) const
inlinevirtual

Returns the z component of 3-momentum.

Implements erhic::VirtualParticle.

Definition at line 59 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 59 of file EicRcParticle.h

References mRcVtxMomentum.

Referenced by Get4Vector(), and GetRapidity().

+ Here is the caller graph for this function:

Double_t EicRcParticle::GetRapidity ( ) const
virtual

Returns the rapidity.

Implements erhic::VirtualParticle.

Definition at line 32 of file EicRcParticle.cxx.

View newest version in sPHENIX GitHub at line 32 of file EicRcParticle.cxx

References _DEFAULT_RAPIDITY_, GetE(), and GetPz().

+ Here is the call graph for this function:

int EicRcParticle::GetRcPdgCode ( ) const
inline

Definition at line 169 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 169 of file EicRcParticle.h

References mRcPdgCode.

double EicRcParticle::GetRcTrackerMomentumSigma ( ) const
inline

Definition at line 157 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 157 of file EicRcParticle.h

References mRcTrackerMomentumSigma.

const TVector3 EicRcParticle::GetRcVertex ( ) const
inline

Definition at line 147 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 147 of file EicRcParticle.h

References mRcVertex.

const TVector3 EicRcParticle::GetRcVtxMomentum ( ) const
inline

Definition at line 156 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 156 of file EicRcParticle.h

References mRcVtxMomentum.

virtual UShort_t EicRcParticle::GetStatus ( ) const
inlinevirtual

A general "status" code for the particle (definition depends on implementation).

Implements erhic::VirtualParticle.

Definition at line 94 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 94 of file EicRcParticle.h

References exit().

+ Here is the call graph for this function:

virtual Double_t EicRcParticle::GetTheta ( ) const
inlinevirtual

Returns the polar angle in the range [0, pi] radians.

Implements erhic::VirtualParticle.

Definition at line 62 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 62 of file EicRcParticle.h

References mRcVtxMomentum.

Referenced by GetEta().

+ Here is the caller graph for this function:

virtual TVector3 EicRcParticle::GetVertex ( ) const
inlinevirtual

Returns the origin point of the particle in cm. (0,0,0) indicates a particle originating in the collision.

Implements erhic::VirtualParticle.

Definition at line 69 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 69 of file EicRcParticle.h

References mRcVertex.

erhic::Pid EicRcParticle::Id ( ) const
inlinevirtual

Returns identity information for the Particle species.

Implements erhic::VirtualParticle.

Definition at line 74 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 74 of file EicRcParticle.h

References mRcPdgCode.

Referenced by GetM().

+ Here is the caller graph for this function:

const PndMCTrack* EicRcParticle::pndmc ( ) const
inline

Definition at line 112 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 112 of file EicRcParticle.h

References GetPndMcTrack().

+ Here is the call graph for this function:

const PndPidCandidate* EicRcParticle::pndrc ( ) const
inline

Definition at line 116 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 116 of file EicRcParticle.h

References GetPndPidCandidate().

+ Here is the call graph for this function:

void EicRcParticle::Set4Vector ( const TLorentzVector &  )
inlinevirtual

Sets the four-momentum of the particle. Changes are propagated to derived quantities.

Implements erhic::VirtualParticle.

Definition at line 96 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 96 of file EicRcParticle.h

void EicRcParticle::SetRcVtxMomentum ( TVector3 &  momentum)
inline

Definition at line 159 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 159 of file EicRcParticle.h

References momentum, and mRcVtxMomentum.

void EicRcParticle::SetVertex ( const TVector3 &  )
inlinevirtual

Sets the origin coordinates

Implements erhic::VirtualParticle.

Definition at line 72 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 72 of file EicRcParticle.h

References exit().

+ Here is the call graph for this function:

Friends And Related Function Documentation

friend class EicEventAssembler
friend

Definition at line 43 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 43 of file EicRcParticle.h

Member Data Documentation

std::vector<std::pair<unsigned, unsigned> > EicRcParticle::mCellGroups
private

Definition at line 283 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 283 of file EicRcParticle.h

Referenced by EicEventAssembler::ComposeCalorimeterInformation(), and EicEventAssembler::Exec().

float EicRcParticle::mChargeDefCL
private

Definition at line 234 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 234 of file EicRcParticle.h

float EicRcParticle::mElectronPidCL
private

Definition at line 235 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 235 of file EicRcParticle.h

int EicRcParticle::mGeneratorEventIndex
private

Definition at line 172 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 172 of file EicRcParticle.h

Referenced by EicEventAssembler::Exec(), GetGeneratorIndex(), and GetGeneratorTrack().

std::vector< std::pair<HadronPidType, float> > EicRcParticle::mHadronPidCL
private

Definition at line 239 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 239 of file EicRcParticle.h

EicRcCalorimeterHit * EicRcParticle::mHCal
private

Definition at line 284 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 284 of file EicRcParticle.h

Referenced by EicEventAssembler::ComposeCalorimeterInformation(), EicRcParticle(), and EicEventAssembler::ReAssignMomentumValue().

int EicRcParticle::mPndMCTrackIndex
private

Definition at line 177 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 177 of file EicRcParticle.h

Referenced by EicEventAssembler::ComposeCalorimeterInformation(), EicEventAssembler::Exec(), GetPndMcTrack(), and GetPndMCTrackIndex().

int EicRcParticle::mPndPidChargedCandIndex
private

Definition at line 178 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 178 of file EicRcParticle.h

Referenced by EicEventAssembler::Exec(), GetPndPidCandidate(), GetPndPidChargedCandIndex(), and EicEventAssembler::PerformPidCalculations().

int EicRcParticle::mRcPdgCode
private
Double_t EicRcParticle::mRcTrackerMomentumSigma
private
TVector3 EicRcParticle::mRcVertex
private

Definition at line 248 of file EicRcParticle.h.

View newest version in sPHENIX GitHub at line 248 of file EicRcParticle.h

Referenced by EicEventAssembler::Exec(), GetRcVertex(), and GetVertex().

TVector3 EicRcParticle::mRcVtxMomentum
private

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