Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/EIC-SynRad/SynRadAna/SynRadAna.h>
Public Member Functions | |
SynRadAna (const std::string &filename="SynRadAna.root") | |
virtual | ~SynRadAna () |
int | Init (PHCompositeNode *topNode) override |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
int | ResetEvent (PHCompositeNode *topNode) override |
Clean up internals after each event. | |
int | EndRun (const int runnumber) override |
Called at the end of each run. | |
int | End (PHCompositeNode *topNode) override |
Called at the end of all processing. | |
int | Reset (PHCompositeNode *) override |
Reset. | |
void | Print (const std::string &what="ALL") const override |
int | get_embedding_id () const |
void | set_embedding_id (int id) |
void | AddNode (const std::string &name) |
void | AddHit (const std::string &name) |
void | AddTower (const std::string &name) |
bool | isDoMvtxHits () const |
void | setDoMvtxHits (bool doMvtxHits) |
bool | isDoTPCHits () const |
void | setDoTPCHits (bool doTPCHits) |
bool | isDoPhoton () const |
void | setDoPhoton (bool doPhoton) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
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. | |
Private Member Functions | |
Fun4AllHistoManager * | getHistoManager () |
Get a pointer to the default hist manager for QA modules. | |
std::string | get_histo_prefix () |
Private Attributes | |
int | _embedding_id |
double | m_eventWeight |
bool | do_photon |
bool | do_MVTXHits |
bool | do_TPCHits |
std::string | m_outputFIle |
std::vector< std::string > | _node_postfix |
std::vector< std::string > | _tower_postfix |
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 } |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 14 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 14 of file SynRadAna.h
SynRadAna::SynRadAna | ( | const std::string & | filename = "SynRadAna.root" | ) |
Definition at line 86 of file SynRadAna.cc.
View newest version in sPHENIX GitHub at line 86 of file SynRadAna.cc
References Fun4AllBase::Verbosity().
|
virtual |
Definition at line 100 of file SynRadAna.cc.
View newest version in sPHENIX GitHub at line 100 of file SynRadAna.cc
References Fun4AllBase::Verbosity().
|
inline |
Definition at line 73 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 73 of file SynRadAna.h
References _node_postfix.
|
inline |
Definition at line 67 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 67 of file SynRadAna.h
References _node_postfix.
|
inline |
Definition at line 79 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 79 of file SynRadAna.h
References _tower_postfix.
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 570 of file SynRadAna.cc.
View newest version in sPHENIX GitHub at line 570 of file SynRadAna.cc
References Fun4AllHistoManager::dumpHistos(), Fun4AllReturnCodes::EVENT_OK, getHistoManager(), m_outputFIle, and Fun4AllBase::Verbosity().
|
overridevirtual |
Called at the end of each run.
Reimplemented from SubsysReco.
Definition at line 562 of file SynRadAna.cc.
View newest version in sPHENIX GitHub at line 562 of file SynRadAna.cc
References Fun4AllReturnCodes::EVENT_OK, and Fun4AllBase::Verbosity().
|
inline |
embedding ID for the event 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 58 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 58 of file SynRadAna.h
References _embedding_id.
|
private |
Definition at line 618 of file SynRadAna.cc.
View newest version in sPHENIX GitHub at line 618 of file SynRadAna.cc
References Fun4AllBase::Name().
Referenced by Init(), and process_event().
|
private |
Get a pointer to the default hist manager for QA modules.
Definition at line 596 of file SynRadAna.cc.
View newest version in sPHENIX GitHub at line 596 of file SynRadAna.cc
References assert, Fun4AllServer::getHistoManager(), QAHistManagerDef::HistoManagerName, Fun4AllServer::instance(), and Fun4AllServer::registerHistoManager().
Referenced by End(), Init(), and process_event().
|
overridevirtual |
Called during initialization. Typically this is where you can book histograms, and e.g. register them to Fun4AllServer (so they can be output to file using Fun4AllServer::dumpHistos() method).
Reimplemented from SubsysReco.
Definition at line 107 of file SynRadAna.cc.
View newest version in sPHENIX GitHub at line 107 of file SynRadAna.cc
References _node_postfix, _tower_postfix, assert, do_MVTXHits, do_photon, do_TPCHits, Fun4AllReturnCodes::EVENT_OK, get_histo_prefix(), getHistoManager(), h, h2, i, it, Fun4AllHistoManager::registerHisto(), and Fun4AllBase::Verbosity().
|
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. A place to book histograms which have to know the run number.
Reimplemented from SubsysReco.
Definition at line 222 of file SynRadAna.cc.
View newest version in sPHENIX GitHub at line 222 of file SynRadAna.cc
References Fun4AllReturnCodes::EVENT_OK, and Fun4AllBase::Verbosity().
|
inline |
Definition at line 84 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 84 of file SynRadAna.h
References do_MVTXHits.
|
inline |
Definition at line 104 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 104 of file SynRadAna.h
References do_photon.
|
inline |
Definition at line 94 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 94 of file SynRadAna.h
References do_TPCHits.
|
overridevirtual |
Print out some info about this module.
what | can be used to specify what to print exactly. |
Reimplemented from Fun4AllBase.
Definition at line 589 of file SynRadAna.cc.
View newest version in sPHENIX GitHub at line 589 of file SynRadAna.cc
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 231 of file SynRadAna.cc.
View newest version in sPHENIX GitHub at line 231 of file SynRadAna.cc
References _embedding_id, _node_postfix, assert, do_MVTXHits, do_photon, do_TPCHits, Fun4AllReturnCodes::EVENT_OK, PHHepMCGenEventMap::get(), PHG4Particle::get_e(), PHG4Hit::get_eion(), get_histo_prefix(), PHG4Particle::get_pid(), PHG4Particle::get_primary_id(), PHG4Hit::get_trkid(), PHG4Particle::get_vtx_id(), PHG4VtxPoint::get_z(), TrkrHit::getAdc(), findNode::getClass(), PHHepMCGenEvent::getEvent(), Fun4AllHistoManager::getHisto(), getHistoManager(), PHG4HitContainer::getHits(), TrkrHitSet::getHits(), TrkrHitSetContainer::getHitSets(), TrkrDefs::getLayer(), PHG4TruthInfoContainer::GetNumPrimaryVertexParticles(), PHG4TruthInfoContainer::GetNumVertices(), PHG4TruthInfoContainer::GetParticle(), PHG4TruthInfoContainer::GetPrimaryParticleRange(), PHG4TruthInfoContainer::GetVtx(), PHG4Particle::identify(), TrkrHit::identify(), layer, m_eventWeight, TrkrDefs::mvtxId, particle, PHG4HitContainer::size(), PHG4TruthInfoContainer::size(), TrkrDefs::tpcId, and Fun4AllBase::Verbosity().
|
overridevirtual |
Reset.
Reimplemented from SubsysReco.
Definition at line 581 of file SynRadAna.cc.
View newest version in sPHENIX GitHub at line 581 of file SynRadAna.cc
References Fun4AllReturnCodes::EVENT_OK, and Fun4AllBase::Verbosity().
|
overridevirtual |
Clean up internals after each event.
Reimplemented from SubsysReco.
Definition at line 554 of file SynRadAna.cc.
View newest version in sPHENIX GitHub at line 554 of file SynRadAna.cc
References Fun4AllReturnCodes::EVENT_OK, and Fun4AllBase::Verbosity().
|
inline |
embedding ID for the event 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 64 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 64 of file SynRadAna.h
References _embedding_id, and train_ambiguity_solver::id.
|
inline |
Definition at line 89 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 89 of file SynRadAna.h
References do_MVTXHits.
|
inline |
Definition at line 109 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 109 of file SynRadAna.h
References do_photon.
|
inline |
Definition at line 99 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 99 of file SynRadAna.h
References do_TPCHits.
|
private |
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 118 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 118 of file SynRadAna.h
Referenced by get_embedding_id(), process_event(), and set_embedding_id().
|
private |
Definition at line 128 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 128 of file SynRadAna.h
Referenced by AddHit(), AddNode(), Init(), and process_event().
|
private |
Definition at line 129 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 129 of file SynRadAna.h
Referenced by AddTower(), and Init().
|
private |
Definition at line 123 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 123 of file SynRadAna.h
Referenced by Init(), isDoMvtxHits(), process_event(), and setDoMvtxHits().
|
private |
Definition at line 122 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 122 of file SynRadAna.h
Referenced by Init(), isDoPhoton(), process_event(), and setDoPhoton().
|
private |
Definition at line 124 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 124 of file SynRadAna.h
Referenced by Init(), isDoTPCHits(), process_event(), and setDoTPCHits().
|
private |
Definition at line 120 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 120 of file SynRadAna.h
Referenced by process_event().
|
private |
Definition at line 126 of file SynRadAna.h.
View newest version in sPHENIX GitHub at line 126 of file SynRadAna.h
Referenced by End().