Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/generators/phhepmc/PHHepMCParticleSelectorDecayProductChain.h>
Public Member Functions | |
PHHepMCParticleSelectorDecayProductChain (const std::string &name="PARTICLESELECTOR") | |
~PHHepMCParticleSelectorDecayProductChain () override | |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
virtual void | SetParticle (const int pid) |
Set the ID of the particle you want in your output. | |
virtual void | AddAncestor (const int pid) |
Add an ancestor of the particle you want in your output. | |
virtual void | AddDaughter (const int pid) |
Add decay products of the particle you want in your output. | |
int | get_embedding_id () const |
void | set_embedding_id (int id) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
virtual int | End (PHCompositeNode *) |
Called at the end of all processing. | |
virtual int | EndRun (const int) |
Called at the end of each run. | |
virtual int | Init (PHCompositeNode *) |
virtual int | Reset (PHCompositeNode *) |
Reset. | |
virtual int | ResetEvent (PHCompositeNode *) |
Clean up after each event. | |
void | Print (const std::string &="ALL") const override |
Public Member Functions inherited from Fun4AllBase | |
virtual | ~Fun4AllBase () |
virtual const std::string | Name () const |
Returns the name of this module. | |
virtual void | Name (const std::string &name) |
Sets the name of this module. | |
virtual void | Verbosity (const int ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual void | Verbosity (enu_Verbosity ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual int | Verbosity () const |
Gets the verbosity of this module. | |
Protected Member Functions | |
HepMC::GenParticle * | GetParent (HepMC::GenParticle *p, HepMC::GenEvent *event) |
find out if a particle comes from one of _theAncestors | |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Protected Member Functions inherited from Fun4AllBase | |
Fun4AllBase (const std::string &name="NONAME") | |
Protected Attributes | |
int | _theParticle |
The particle you want to have in your output. | |
std::vector< int > | _theDaughters |
std::vector< int > | _theAncestors |
int | _embedding_id |
Additional Inherited Members | |
Public Types inherited from Fun4AllBase | |
enum | enu_Verbosity { VERBOSITY_QUIET = 0, VERBOSITY_SOME = 1, VERBOSITY_MORE = 2, VERBOSITY_EVEN_MORE = 3, VERBOSITY_A_LOT = 4, VERBOSITY_MAX = std::numeric_limits<int>::max() - 10 } |
Particle selector for HepMC based events Will write out only _theParticle and _theDaughters (if specified) Special case: when _theParticle=0, all particles in _theDaughers list will be written out no matter where they come from
Definition at line 20 of file PHHepMCParticleSelectorDecayProductChain.h.
View newest version in sPHENIX GitHub at line 20 of file PHHepMCParticleSelectorDecayProductChain.h
PHHepMCParticleSelectorDecayProductChain::PHHepMCParticleSelectorDecayProductChain | ( | const std::string & | name = "PARTICLESELECTOR" | ) |
Definition at line 25 of file PHHepMCParticleSelectorDecayProductChain.cc.
View newest version in sPHENIX GitHub at line 25 of file PHHepMCParticleSelectorDecayProductChain.cc
References _theParticle.
|
inlineoverride |
Definition at line 24 of file PHHepMCParticleSelectorDecayProductChain.h.
View newest version in sPHENIX GitHub at line 24 of file PHHepMCParticleSelectorDecayProductChain.h
|
virtual |
Add an ancestor of the particle you want in your output.
Definition at line 273 of file PHHepMCParticleSelectorDecayProductChain.cc.
View newest version in sPHENIX GitHub at line 273 of file PHHepMCParticleSelectorDecayProductChain.cc
References _theAncestors.
|
virtual |
Add decay products of the particle you want in your output.
Definition at line 279 of file PHHepMCParticleSelectorDecayProductChain.cc.
View newest version in sPHENIX GitHub at line 279 of file PHHepMCParticleSelectorDecayProductChain.cc
References _theDaughters.
|
inline |
embedding ID for the event to be processed positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background
Definition at line 42 of file PHHepMCParticleSelectorDecayProductChain.h.
View newest version in sPHENIX GitHub at line 42 of file PHHepMCParticleSelectorDecayProductChain.h
References _embedding_id.
|
protected |
find out if a particle comes from one of _theAncestors
Definition at line 38 of file PHHepMCParticleSelectorDecayProductChain.cc.
View newest version in sPHENIX GitHub at line 38 of file PHHepMCParticleSelectorDecayProductChain.cc
References _theAncestors, i, and PHNode::parent.
Referenced by process_event().
|
overridevirtual |
Called for first event when run number is known. Typically this is where you may want to fetch data from database, because you know the run number.
Reimplemented from SubsysReco.
Definition at line 33 of file PHHepMCParticleSelectorDecayProductChain.cc.
View newest version in sPHENIX GitHub at line 33 of file PHHepMCParticleSelectorDecayProductChain.cc
References Fun4AllReturnCodes::EVENT_OK.
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 61 of file PHHepMCParticleSelectorDecayProductChain.cc.
View newest version in sPHENIX GitHub at line 61 of file PHHepMCParticleSelectorDecayProductChain.cc
References _embedding_id, _theAncestors, _theDaughters, _theParticle, Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::DISCARDEVENT, eta, event, Fun4AllReturnCodes::EVENT_OK, PHHepMCGenEventMap::get(), PHHepMCGenEvent::getEvent(), GetParent(), i, ActsExamples::HepMC3Vertex::inEvent(), j, k, Acts::UnitConstants::m, mass, npart(), merge_hashes::p, PHNode::parent, Acts::VectorHelpers::perp(), PHWHERE, train_ambiguity_solver::pid, physmon_track_finding_ttbar::pt, utils::status, Acts::Test::tmp(), testSigmaEff::v, and Fun4AllBase::Verbosity().
|
inline |
embedding ID for the event to be processed positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background
Definition at line 48 of file PHHepMCParticleSelectorDecayProductChain.h.
View newest version in sPHENIX GitHub at line 48 of file PHHepMCParticleSelectorDecayProductChain.h
References _embedding_id, and train_ambiguity_solver::id.
|
virtual |
Set the ID of the particle you want in your output.
Definition at line 267 of file PHHepMCParticleSelectorDecayProductChain.cc.
View newest version in sPHENIX GitHub at line 267 of file PHHepMCParticleSelectorDecayProductChain.cc
References _theParticle, and train_ambiguity_solver::pid.
|
protected |
positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background
Definition at line 66 of file PHHepMCParticleSelectorDecayProductChain.h.
View newest version in sPHENIX GitHub at line 66 of file PHHepMCParticleSelectorDecayProductChain.h
Referenced by get_embedding_id(), process_event(), and set_embedding_id().
|
protected |
List of possible ancestors of the particle you want in your output Ignored if empty
Definition at line 61 of file PHHepMCParticleSelectorDecayProductChain.h.
View newest version in sPHENIX GitHub at line 61 of file PHHepMCParticleSelectorDecayProductChain.h
Referenced by AddAncestor(), GetParent(), and process_event().
|
protected |
List of possible decay products of the particle you want in your output Ignored if empty
Definition at line 58 of file PHHepMCParticleSelectorDecayProductChain.h.
View newest version in sPHENIX GitHub at line 58 of file PHHepMCParticleSelectorDecayProductChain.h
Referenced by AddDaughter(), and process_event().
|
protected |
The particle you want to have in your output.
Definition at line 55 of file PHHepMCParticleSelectorDecayProductChain.h.
View newest version in sPHENIX GitHub at line 55 of file PHHepMCParticleSelectorDecayProductChain.h
Referenced by PHHepMCParticleSelectorDecayProductChain(), process_event(), and SetParticle().