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

#include <fun4all_coresoftware/blob/master/simulation/g4simulation/g4main/PHG4Particle.h>

+ Inheritance diagram for PHG4Particle:
+ Collaboration diagram for PHG4Particle:

Public Member Functions

 PHG4Particle ()
 
 ~PHG4Particle () override
 
void identify (std::ostream &os=std::cout) const override
 
virtual bool isIon () const
 
virtual int get_pid () const
 
virtual std::string get_name () const
 
virtual double get_px () const
 
virtual double get_py () const
 
virtual double get_pz () const
 
virtual double get_e () const
 
virtual int get_track_id () const
 
virtual int get_vtx_id () const
 
virtual int get_parent_id () const
 
virtual int get_primary_id () const
 
virtual int get_barcode () const
 
virtual int get_A () const
 
virtual int get_Z () const
 
virtual double get_IonCharge () const
 
virtual double get_ExcitEnergy () const
 
virtual void set_track_id (const int)
 
virtual void set_vtx_id (const int)
 
virtual void set_parent_id (const int)
 
virtual void set_primary_id (const int)
 
virtual void set_name (const std::string &)
 
virtual void set_pid (const int)
 
virtual void set_px (const double)
 
virtual void set_py (const double)
 
virtual void set_pz (const double)
 
virtual void set_e (const double)
 
virtual void set_barcode (const int)
 
virtual void set_A (const int)
 
virtual void set_Z (const int)
 
virtual void set_NumCharge (const int)
 
virtual void set_IonCharge (const double)
 
virtual void set_ExcitEnergy (const double)
 
bool operator== (const PHG4Particle &p) const
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor
 
 ~PHObject () override
 dtor
 
virtual PHObjectCloneMe () const
 Virtual copy constructor.
 
virtual PHObjectclone () const final
 
PHObjectClone (const char *newname="") const final
 
void Copy (TObject &object) const final
 
virtual void Reset ()
 Clear Event.
 
virtual int isValid () const
 isValid returns non zero if object contains vailid data
 
virtual int isValid (const float) const
 
virtual int isValid (const double) const
 
virtual int isValid (const int) const
 
virtual int isValid (const unsigned int) const
 
virtual int isImplemented (const float f) const
 
virtual int isImplemented (const double f) const
 
virtual int isImplemented (const int i) const
 
virtual int isImplemented (const unsigned int i) const
 
virtual int Integrate () const
 
virtual int Integrate (PHObject *)
 
virtual void CopyFrom (const PHObject *obj)
 

Detailed Description

Definition at line 12 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 12 of file PHG4Particle.h

Constructor & Destructor Documentation

PHG4Particle::PHG4Particle ( )
inline

Definition at line 15 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 15 of file PHG4Particle.h

PHG4Particle::~PHG4Particle ( )
inlineoverride

Definition at line 16 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 16 of file PHG4Particle.h

Member Function Documentation

virtual int PHG4Particle::get_A ( ) const
inlinevirtual

Reimplemented in PHG4Particlev3.

Definition at line 36 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 36 of file PHG4Particle.h

virtual int PHG4Particle::get_barcode ( ) const
inlinevirtual

Reimplemented in PHG4Particlev1.

Definition at line 34 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 34 of file PHG4Particle.h

Referenced by EventEvaluator::fillOutputNtuples(), EventEvaluatorEIC::fillOutputNtuples(), and QAG4SimulationKFParticle::makeHepLV().

+ Here is the caller graph for this function:

virtual double PHG4Particle::get_ExcitEnergy ( ) const
inlinevirtual

Reimplemented in PHG4Particlev3.

Definition at line 39 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 39 of file PHG4Particle.h

virtual double PHG4Particle::get_IonCharge ( ) const
inlinevirtual

Reimplemented in PHG4Particlev3.

Definition at line 38 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 38 of file PHG4Particle.h

virtual std::string PHG4Particle::get_name ( void  ) const
inlinevirtual

Reimplemented in PHG4Particlev1.

Definition at line 23 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 23 of file PHG4Particle.h

Referenced by PHG4DSTReader::add_particle(), PHG4TruthInfoContainer::AddParticle(), and PHG4ParticleGeneratorBase::SetParticleId().

+ Here is the caller graph for this function:

virtual int PHG4Particle::get_parent_id ( ) const
inlinevirtual

Reimplemented in PHG4Particlev2.

Definition at line 31 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 31 of file PHG4Particle.h

Referenced by PHG4DSTReader::add_particle(), PHG4TruthInfoContainer::AddParticle(), PHG4TruthEventAction::EndOfEventAction(), EventEvaluator::fillOutputNtuples(), EventEvaluatorEIC::fillOutputNtuples(), BaseTruthEval::is_primary(), and PHTruthClustering::process_event().

+ Here is the caller graph for this function:

virtual int PHG4Particle::get_pid ( ) const
inlinevirtual
virtual int PHG4Particle::get_primary_id ( ) const
inlinevirtual

Reimplemented in PHG4Particlev2.

Definition at line 32 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 32 of file PHG4Particle.h

Referenced by PHG4DSTReader::add_particle(), DSTEmulator::get_embed(), TrackEvaluation::get_embed(), BaseTruthEval::get_primary_particle(), PHG4ConsistencyCheck::process_event(), and PHTruthClustering::process_event().

+ Here is the caller graph for this function:

virtual double PHG4Particle::get_px ( ) const
inlinevirtual

Reimplemented in PHG4Particlev1.

Definition at line 24 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 24 of file PHG4Particle.h

Referenced by PHG4DSTReader::add_particle(), PHG4TruthInfoContainer::AddParticle(), ActsEvaluator::evaluateTrackFits(), B0TrackFastSimEval::fill_track_tree(), TrackFastSimEval::fill_track_tree(), PHG4TrackFastSimEval::fill_track_tree(), ActsEvaluator::fillG4Particle(), CaloEvaluator::fillOutputNtuples(), SvtxEvaluator::fillOutputNtuples(), EventEvaluator::fillOutputNtuples(), EventEvaluatorEIC::fillOutputNtuples(), TruthJetInput::get_input(), AnaTutorial::getPHG4Truth(), AnaTutorial::getTracks(), SvtxClusterEval::gtrackid_and_layer_by_nhit(), operator==(), CaloEvaluator::printInputInfo(), CaloEvaluator::printOutputInfo(), SvtxEvaluator::printOutputInfo(), PHSiliconTruthTrackSeeding::Process(), PHTruthTrackSeeding::Process(), MomentumEvaluator::process_event(), PHG4ParticleGenerator_flat_pT::process_event(), PHG4ParticleGenerator::process_event(), QAG4SimulationUpsilon::process_event(), QAExample::process_event(), QAG4SimulationVertex::process_event(), EICG4ZDCHitTree::process_event(), ParticleFlowReco::process_event(), DetermineTowerBackground::process_event(), QAG4SimulationTracking::process_event(), EvalRootTTreeReco::process_event(), TPCDataStreamEmulator::process_event(), SamplingFractionReco::process_event(), PHTruthSiliconAssociation::process_event(), PHG4ScoringManager::process_event(), PHG4TrackFastSim::PseudoPatternRecognition(), and B0TrackFastSim::PseudoPatternRecognition().

+ Here is the caller graph for this function:

virtual double PHG4Particle::get_py ( ) const
inlinevirtual

Reimplemented in PHG4Particlev1.

Definition at line 25 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 25 of file PHG4Particle.h

Referenced by PHG4DSTReader::add_particle(), PHG4TruthInfoContainer::AddParticle(), ActsEvaluator::evaluateTrackFits(), B0TrackFastSimEval::fill_track_tree(), TrackFastSimEval::fill_track_tree(), PHG4TrackFastSimEval::fill_track_tree(), ActsEvaluator::fillG4Particle(), CaloEvaluator::fillOutputNtuples(), SvtxEvaluator::fillOutputNtuples(), EventEvaluator::fillOutputNtuples(), EventEvaluatorEIC::fillOutputNtuples(), TruthJetInput::get_input(), AnaTutorial::getPHG4Truth(), AnaTutorial::getTracks(), SvtxClusterEval::gtrackid_and_layer_by_nhit(), operator==(), CaloEvaluator::printInputInfo(), CaloEvaluator::printOutputInfo(), SvtxEvaluator::printOutputInfo(), PHSiliconTruthTrackSeeding::Process(), PHTruthTrackSeeding::Process(), MomentumEvaluator::process_event(), PHG4ParticleGenerator_flat_pT::process_event(), PHG4ParticleGenerator::process_event(), QAG4SimulationUpsilon::process_event(), QAExample::process_event(), QAG4SimulationVertex::process_event(), EICG4ZDCHitTree::process_event(), ParticleFlowReco::process_event(), DetermineTowerBackground::process_event(), QAG4SimulationTracking::process_event(), EvalRootTTreeReco::process_event(), TPCDataStreamEmulator::process_event(), SamplingFractionReco::process_event(), PHTruthSiliconAssociation::process_event(), PHG4ScoringManager::process_event(), PHG4TrackFastSim::PseudoPatternRecognition(), and B0TrackFastSim::PseudoPatternRecognition().

+ Here is the caller graph for this function:

virtual double PHG4Particle::get_pz ( ) const
inlinevirtual

Reimplemented in PHG4Particlev1.

Definition at line 26 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 26 of file PHG4Particle.h

Referenced by PHG4DSTReader::add_particle(), PHG4TruthInfoContainer::AddParticle(), ActsEvaluator::evaluateTrackFits(), B0TrackFastSimEval::fill_track_tree(), TrackFastSimEval::fill_track_tree(), PHG4TrackFastSimEval::fill_track_tree(), ActsEvaluator::fillG4Particle(), CaloEvaluator::fillOutputNtuples(), SvtxEvaluator::fillOutputNtuples(), EventEvaluator::fillOutputNtuples(), EventEvaluatorEIC::fillOutputNtuples(), TruthJetInput::get_input(), AnaTutorial::getPHG4Truth(), AnaTutorial::getTracks(), SvtxClusterEval::gtrackid_and_layer_by_nhit(), operator==(), CaloEvaluator::printOutputInfo(), SvtxEvaluator::printOutputInfo(), PHSiliconTruthTrackSeeding::Process(), PHTruthTrackSeeding::Process(), MomentumEvaluator::process_event(), PHG4ParticleGenerator_flat_pT::process_event(), PHG4ParticleGenerator::process_event(), QAG4SimulationUpsilon::process_event(), QAExample::process_event(), QAG4SimulationVertex::process_event(), EICG4ZDCHitTree::process_event(), ParticleFlowReco::process_event(), DetermineTowerBackground::process_event(), QAG4SimulationTracking::process_event(), EvalRootTTreeReco::process_event(), TPCDataStreamEmulator::process_event(), SamplingFractionReco::process_event(), PHG4ScoringManager::process_event(), PHG4TrackFastSim::PseudoPatternRecognition(), and B0TrackFastSim::PseudoPatternRecognition().

+ Here is the caller graph for this function:

virtual int PHG4Particle::get_track_id ( ) const
inlinevirtual

Reimplemented in PHG4Particlev2.

Definition at line 29 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 29 of file PHG4Particle.h

Referenced by PHG4DSTReader::add_particle(), PHG4TruthInfoContainer::AddParticle(), SvtxHitEval::all_hits_from(), PHTruthClustering::all_truth_clusters(), SvtxTruthEval::all_truth_clusters(), PHTruthClustering::all_truth_hits(), BaseTruthEval::are_same_particle(), QAG4SimulationTpc::evaluate_clusters(), B0TrackFastSimEval::fill_track_tree(), PHG4TrackFastSimEval::fill_track_tree(), TrackFastSimEval::fill_track_tree(), ActsEvaluator::fillG4Particle(), CaloEvaluator::fillOutputNtuples(), SvtxEvaluator::fillOutputNtuples(), EventEvaluator::fillOutputNtuples(), EventEvaluatorEIC::fillOutputNtuples(), SvtxTruthEval::FillTruthHitsFromParticleCache(), BaseTruthEval::get_embed(), JetRecoEval::get_energy_contribution(), TruthJetInput::get_input(), BaseTruthEval::get_primary_shower(), PHTruthSiliconAssociation::getSiliconClustersFromParticle(), BaseTruthEval::is_g4hit_from_particle(), PHG4TruthInfoContainer::is_primary(), SvtxClusterEval::max_truth_cluster_by_energy(), PHG4TruthTrackingAction::PreUserTrackingAction(), CaloEvaluator::printOutputInfo(), SvtxEvaluator::printOutputInfo(), PHTruthTrackSeeding::Process(), MomentumEvaluator::process_event(), CreateCZHitContainer::process_event(), DetermineTowerBackground::process_event(), QAG4SimulationTracking::process_event(), PHTruthSiliconAssociation::process_event(), PHTruthClustering::process_event(), PHG4TrackFastSim::process_event(), B0TrackFastSim::process_event(), PHG4TrackFastSim::PseudoPatternRecognition(), and B0TrackFastSim::PseudoPatternRecognition().

+ Here is the caller graph for this function:

virtual int PHG4Particle::get_Z ( ) const
inlinevirtual

Reimplemented in PHG4Particlev3.

Definition at line 37 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 37 of file PHG4Particle.h

void PHG4Particle::identify ( std::ostream &  os = std::cout) const
overridevirtual

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from PHObject.

Reimplemented in PHG4Particlev2, PHG4Particlev3, and PHG4Particlev1.

Definition at line 3 of file PHG4Particle.cc.

View newest version in sPHENIX GitHub at line 3 of file PHG4Particle.cc

Referenced by SvtxEvaluator::printOutputInfo(), PHSiliconTruthTrackSeeding::Process(), PHTruthTrackSeeding::Process(), PHG4ConsistencyCheck::process_event(), QAG4SimulationUpsilon::process_event(), QAExample::process_event(), QAG4SimulationTracking::process_event(), PHG4TrackFastSim::PseudoPatternRecognition(), and B0TrackFastSim::PseudoPatternRecognition().

+ Here is the caller graph for this function:

virtual bool PHG4Particle::isIon ( ) const
inlinevirtual

Reimplemented in PHG4Particlev3.

Definition at line 21 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 21 of file PHG4Particle.h

bool PHG4Particle::operator== ( const PHG4Particle p) const

Definition at line 9 of file PHG4Particle.cc.

View newest version in sPHENIX GitHub at line 9 of file PHG4Particle.cc

References get_pid(), get_px(), get_py(), and get_pz().

+ Here is the call graph for this function:

virtual void PHG4Particle::set_A ( const int  )
inlinevirtual

Reimplemented in PHG4Particlev3.

Definition at line 54 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 54 of file PHG4Particle.h

Referenced by PHG4TruthTrackingAction::AddParticle(), and PHG4IonGun::UpdateParticle().

+ Here is the caller graph for this function:

virtual void PHG4Particle::set_barcode ( const int  )
inlinevirtual

Reimplemented in PHG4Particlev1.

Definition at line 52 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 52 of file PHG4Particle.h

Referenced by PHG4TruthTrackingAction::PreUserTrackingAction(), and HepMCNodeReader::process_event().

+ Here is the caller graph for this function:

virtual void PHG4Particle::set_e ( const double  )
inlinevirtual

Reimplemented in PHG4Particlev2.

Definition at line 50 of file PHG4Particle.h.

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

Referenced by PHG4TruthTrackingAction::AddParticle(), PHG4ParticleGenerator_flat_pT::process_event(), PHG4ParticleGenerator::process_event(), and PHG4SimpleEventGenerator::process_event().

+ Here is the caller graph for this function:

virtual void PHG4Particle::set_ExcitEnergy ( const double  )
inlinevirtual

Reimplemented in PHG4Particlev3.

Definition at line 58 of file PHG4Particle.h.

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

Referenced by PHG4IonGun::UpdateParticle().

+ Here is the caller graph for this function:

virtual void PHG4Particle::set_IonCharge ( const double  )
inlinevirtual

Reimplemented in PHG4Particlev3.

Definition at line 57 of file PHG4Particle.h.

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

virtual void PHG4Particle::set_name ( const std::string &  )
inlinevirtual

Reimplemented in PHG4Particlev1.

Definition at line 45 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 45 of file PHG4Particle.h

Referenced by PHG4TruthTrackingAction::AddParticle(), PHG4SimpleEventGenerator::process_event(), PHG4ParticleGeneratorBase::SetParticleId(), and PHG4IonGun::UpdateParticle().

+ Here is the caller graph for this function:

virtual void PHG4Particle::set_NumCharge ( const int  )
inlinevirtual

Reimplemented in PHG4Particlev3.

Definition at line 56 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 56 of file PHG4Particle.h

Referenced by PHG4IonGun::UpdateParticle().

+ Here is the caller graph for this function:

virtual void PHG4Particle::set_parent_id ( const int  )
inlinevirtual

Reimplemented in PHG4Particlev2.

Definition at line 43 of file PHG4Particle.h.

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

Referenced by PHG4TruthTrackingAction::AddParticle(), PHG4TruthTrackingAction::PreUserTrackingAction(), and PHG4SimpleEventGenerator::process_event().

+ Here is the caller graph for this function:

virtual void PHG4Particle::set_pid ( const int  )
inlinevirtual

Reimplemented in PHG4Particlev1.

Definition at line 46 of file PHG4Particle.h.

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

Referenced by PHG4ParticleGeneratorBase::AddParticle(), PHG4TruthTrackingAction::AddParticle(), PHG4InEventReadBack::process_event(), HepMCNodeReader::process_event(), PHG4SimpleEventGenerator::process_event(), PHG4ParticleGeneratorBase::SetParticleId(), and PHG4IonGun::UpdateParticle().

+ Here is the caller graph for this function:

virtual void PHG4Particle::set_primary_id ( const int  )
inlinevirtual

Reimplemented in PHG4Particlev2.

Definition at line 44 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 44 of file PHG4Particle.h

Referenced by PHG4TruthTrackingAction::AddParticle(), and PHG4TruthTrackingAction::PreUserTrackingAction().

+ Here is the caller graph for this function:

virtual void PHG4Particle::set_px ( const double  )
inlinevirtual

Reimplemented in PHG4Particlev1.

Definition at line 47 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 47 of file PHG4Particle.h

Referenced by PHG4ParticleGeneratorBase::AddParticle(), PHG4TruthTrackingAction::AddParticle(), PHG4InEventReadBack::process_event(), PHG4ParticleGenerator_flat_pT::process_event(), PHG4ParticleGenerator::process_event(), HepMCNodeReader::process_event(), PHG4SimpleEventGenerator::process_event(), and PHG4IonGun::UpdateParticle().

+ Here is the caller graph for this function:

virtual void PHG4Particle::set_py ( const double  )
inlinevirtual

Reimplemented in PHG4Particlev1.

Definition at line 48 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 48 of file PHG4Particle.h

Referenced by PHG4ParticleGeneratorBase::AddParticle(), PHG4TruthTrackingAction::AddParticle(), PHG4InEventReadBack::process_event(), PHG4ParticleGenerator_flat_pT::process_event(), PHG4ParticleGenerator::process_event(), HepMCNodeReader::process_event(), PHG4SimpleEventGenerator::process_event(), and PHG4IonGun::UpdateParticle().

+ Here is the caller graph for this function:

virtual void PHG4Particle::set_pz ( const double  )
inlinevirtual

Reimplemented in PHG4Particlev1.

Definition at line 49 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 49 of file PHG4Particle.h

Referenced by PHG4ParticleGeneratorBase::AddParticle(), PHG4TruthTrackingAction::AddParticle(), PHG4InEventReadBack::process_event(), PHG4ParticleGenerator_flat_pT::process_event(), PHG4ParticleGenerator::process_event(), HepMCNodeReader::process_event(), PHG4SimpleEventGenerator::process_event(), and PHG4IonGun::UpdateParticle().

+ Here is the caller graph for this function:

virtual void PHG4Particle::set_track_id ( const int  )
inlinevirtual

Reimplemented in PHG4Particlev2.

Definition at line 41 of file PHG4Particle.h.

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

Referenced by PHG4TruthTrackingAction::AddParticle(), and PHG4SimpleEventGenerator::process_event().

+ Here is the caller graph for this function:

virtual void PHG4Particle::set_vtx_id ( const int  )
inlinevirtual

Reimplemented in PHG4Particlev2.

Definition at line 42 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 42 of file PHG4Particle.h

Referenced by PHG4TruthTrackingAction::AddParticle(), and PHG4SimpleEventGenerator::process_event().

+ Here is the caller graph for this function:

virtual void PHG4Particle::set_Z ( const int  )
inlinevirtual

Reimplemented in PHG4Particlev3.

Definition at line 55 of file PHG4Particle.h.

View newest version in sPHENIX GitHub at line 55 of file PHG4Particle.h

Referenced by PHG4TruthTrackingAction::AddParticle(), and PHG4IonGun::UpdateParticle().

+ Here is the caller graph for this function:


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