EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <fun4all_coresoftware/blob/master/simulation/g4simulation/tpcresponse/TpcRS.h>
Public Member Functions | |
TpcRS (const std::string &name="TpcRS") | |
virtual | ~TpcRS () |
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 |
void | SetupConfigurator (const std::string &filename) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () 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 Attributes | |
tpcrs::Configurator * | cfg = nullptr |
tpcrs::Simulator * | simulator = nullptr |
std::vector< tpcrs::SimulatedHit > | simu_hits |
std::vector< tpcrs::DistortedHit > | dist_hits |
std::vector< tpcrs::DigiHit > | digi_hits |
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 = INT_MAX - 10 } |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 21 of file TpcRS.h.
View newest version in sPHENIX GitHub at line 21 of file TpcRS.h
TpcRS::TpcRS | ( | const std::string & | name = "TpcRS" | ) |
|
virtual |
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 170 of file TpcRS.cc.
View newest version in sPHENIX GitHub at line 170 of file TpcRS.cc
References Fun4AllReturnCodes::EVENT_OK.
|
overridevirtual |
Called at the end of each run.
Reimplemented from SubsysReco.
Definition at line 163 of file TpcRS.cc.
View newest version in sPHENIX GitHub at line 163 of file TpcRS.cc
References Fun4AllReturnCodes::EVENT_OK.
|
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 93 of file TpcRS.cc.
View newest version in sPHENIX GitHub at line 93 of file TpcRS.cc
References Fun4AllReturnCodes::EVENT_OK.
|
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 100 of file TpcRS.cc.
View newest version in sPHENIX GitHub at line 100 of file TpcRS.cc
References Fun4AllReturnCodes::EVENT_OK.
|
overridevirtual |
Print out some info about this module.
what | can be used to specify what to print exactly. |
Reimplemented from SubsysReco.
Definition at line 184 of file TpcRS.cc.
View newest version in sPHENIX GitHub at line 184 of file TpcRS.cc
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 107 of file TpcRS.cc.
View newest version in sPHENIX GitHub at line 107 of file TpcRS.cc
References dist_hits, Fun4AllReturnCodes::EVENT_OK, PHG4Particle::get_pid(), PHG4HitContainer::getHits(), PHG4TruthInfoContainer::GetParticle(), particle, PHWHERE, simu_hits, and simulator.
|
overridevirtual |
Reset.
Reimplemented from SubsysReco.
Definition at line 177 of file TpcRS.cc.
View newest version in sPHENIX GitHub at line 177 of file TpcRS.cc
References Fun4AllReturnCodes::EVENT_OK.
|
overridevirtual |
Clean up internals after each event.
Reimplemented from SubsysReco.
Definition at line 153 of file TpcRS.cc.
View newest version in sPHENIX GitHub at line 153 of file TpcRS.cc
References digi_hits, dist_hits, Fun4AllReturnCodes::EVENT_OK, and simu_hits.
void TpcRS::SetupConfigurator | ( | const std::string & | filename | ) |
|
private |
Definition at line 64 of file TpcRS.h.
View newest version in sPHENIX GitHub at line 64 of file TpcRS.h
Referenced by SetupConfigurator().
|
private |
Definition at line 68 of file TpcRS.h.
View newest version in sPHENIX GitHub at line 68 of file TpcRS.h
Referenced by ResetEvent().
|
private |
Definition at line 67 of file TpcRS.h.
View newest version in sPHENIX GitHub at line 67 of file TpcRS.h
Referenced by process_event(), and ResetEvent().
|
private |
Definition at line 66 of file TpcRS.h.
View newest version in sPHENIX GitHub at line 66 of file TpcRS.h
Referenced by process_event(), and ResetEvent().
|
private |
Definition at line 65 of file TpcRS.h.
View newest version in sPHENIX GitHub at line 65 of file TpcRS.h
Referenced by process_event(), SetupConfigurator(), and ~TpcRS().