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

#include <coresoftware/blob/master/simulation/g4simulation/tpcresponse/TpcRS.h>

+ Inheritance diagram for TpcRS:
+ Collaboration diagram for TpcRS:

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")
 

Detailed Description

Definition at line 21 of file TpcRS.h.

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

Constructor & Destructor Documentation

TpcRS::TpcRS ( const std::string &  name = "TpcRS")

Definition at line 79 of file TpcRS.cc.

View newest version in sPHENIX GitHub at line 79 of file TpcRS.cc

TpcRS::~TpcRS ( )
virtual

Definition at line 86 of file TpcRS.cc.

View newest version in sPHENIX GitHub at line 86 of file TpcRS.cc

References simulator.

Member Function Documentation

int TpcRS::End ( PHCompositeNode topNode)
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.

int TpcRS::EndRun ( const int  runnumber)
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.

int TpcRS::Init ( PHCompositeNode topNode)
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.

int TpcRS::InitRun ( PHCompositeNode topNode)
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.

void TpcRS::Print ( const std::string &  what = "ALL") const
overridevirtual

Print out some info about this module.

Parameters
whatcan 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

int TpcRS::process_event ( PHCompositeNode topNode)
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(), hits(), particle, PHWHERE, simu_hits, and simulator.

+ Here is the call graph for this function:

int TpcRS::Reset ( PHCompositeNode topNode)
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.

int TpcRS::ResetEvent ( PHCompositeNode topNode)
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)

Definition at line 189 of file TpcRS.cc.

View newest version in sPHENIX GitHub at line 189 of file TpcRS.cc

References cfg, and simulator.

Member Data Documentation

tpcrs::Configurator* TpcRS::cfg = nullptr
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().

std::vector<tpcrs::DigiHit> TpcRS::digi_hits
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().

std::vector<tpcrs::DistortedHit> TpcRS::dist_hits
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().

std::vector<tpcrs::SimulatedHit> TpcRS::simu_hits
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().

tpcrs::Simulator* TpcRS::simulator = nullptr
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().


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