ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/simulation/g4simulation/g4mvtx/PHG4MvtxDigitizer.h>
Public Member Functions | |
PHG4MvtxDigitizer (const std::string &name="PHG4MvtxDigitizer") | |
~PHG4MvtxDigitizer () override | |
int | Init (PHCompositeNode *) override |
module initialization | |
int | InitRun (PHCompositeNode *topNode) override |
run initialization | |
int | process_event (PHCompositeNode *topNode) override |
event processing | |
int | End (PHCompositeNode *) override |
end of process | |
void | set_adc_scale (const int layer, const unsigned short max_adc, const float energy_per_adc) |
void | set_energy_threshold (const float threshold) |
float | get_energy_threshold () |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
virtual int | EndRun (const int) |
Called at the end of each run. | |
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. | |
Private Member Functions | |
void | CalculateMvtxLadderCellADCScale (PHCompositeNode *topNode) |
void | DigitizeMvtxLadderCells (PHCompositeNode *topNode) |
Private Attributes | |
std::vector< float > | adc_input |
std::vector< int > | is_populated |
std::map< int, unsigned short > | _max_adc |
std::map< int, float > | _energy_scale |
float | _energy_threshold |
gsl_rng * | RandomGenerator |
random generator that conform with sPHENIX standard | |
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 19 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 19 of file PHG4MvtxDigitizer.h
PHG4MvtxDigitizer::PHG4MvtxDigitizer | ( | const std::string & | name = "PHG4MvtxDigitizer" | ) |
Definition at line 33 of file PHG4MvtxDigitizer.cc.
View newest version in sPHENIX GitHub at line 33 of file PHG4MvtxDigitizer.cc
References Fun4AllBase::Name(), RandomGenerator, seed, and Fun4AllBase::Verbosity().
|
override |
Definition at line 46 of file PHG4MvtxDigitizer.cc.
View newest version in sPHENIX GitHub at line 46 of file PHG4MvtxDigitizer.cc
References RandomGenerator.
|
private |
Definition at line 101 of file PHG4MvtxDigitizer.cc.
View newest version in sPHENIX GitHub at line 101 of file PHG4MvtxDigitizer.cc
References _energy_scale, _max_adc, PHG4CylinderGeomContainer::get_begin_end(), G4TTL::layer, BTOF::length, thickness, and Fun4AllBase::Verbosity().
Referenced by InitRun().
|
private |
Definition at line 140 of file PHG4MvtxDigitizer.cc.
View newest version in sPHENIX GitHub at line 140 of file PHG4MvtxDigitizer.cc
References _energy_scale, _energy_threshold, _max_adc, g4zmq::exit(), TrkrHit::getEnergy(), TrkrHitSet::getHits(), TrkrHitSetContainer::getHitSets(), TrkrDefs::getLayer(), G4TTL::layer, TrkrDefs::mvtxId, TrkrHitSet::removeHit(), TrkrHit::setAdc(), and Fun4AllBase::Verbosity().
Referenced by process_event().
|
inlineoverridevirtual |
end of process
Reimplemented from SubsysReco.
Definition at line 35 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 35 of file PHG4MvtxDigitizer.h
|
inline |
Definition at line 48 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 48 of file PHG4MvtxDigitizer.h
References _energy_threshold.
|
inlineoverridevirtual |
module initialization
Reimplemented from SubsysReco.
Definition at line 26 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 26 of file PHG4MvtxDigitizer.h
|
overridevirtual |
run initialization
Reimplemented from SubsysReco.
Definition at line 51 of file PHG4MvtxDigitizer.cc.
View newest version in sPHENIX GitHub at line 51 of file PHG4MvtxDigitizer.cc
References _energy_scale, _max_adc, Fun4AllReturnCodes::ABORTRUN, CalculateMvtxLadderCellADCScale(), Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), PHWHERE, and Fun4AllBase::Verbosity().
|
overridevirtual |
event processing
Reimplemented from SubsysReco.
Definition at line 93 of file PHG4MvtxDigitizer.cc.
View newest version in sPHENIX GitHub at line 93 of file PHG4MvtxDigitizer.cc
References DigitizeMvtxLadderCells(), and Fun4AllReturnCodes::EVENT_OK.
|
inline |
Definition at line 37 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 37 of file PHG4MvtxDigitizer.h
References _energy_scale, and _max_adc.
|
inline |
Definition at line 43 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 43 of file PHG4MvtxDigitizer.h
References _energy_threshold.
|
private |
Definition at line 59 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 59 of file PHG4MvtxDigitizer.h
Referenced by CalculateMvtxLadderCellADCScale(), DigitizeMvtxLadderCells(), InitRun(), and set_adc_scale().
|
private |
Definition at line 60 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 60 of file PHG4MvtxDigitizer.h
Referenced by DigitizeMvtxLadderCells(), get_energy_threshold(), and set_energy_threshold().
|
private |
Definition at line 58 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 58 of file PHG4MvtxDigitizer.h
Referenced by CalculateMvtxLadderCellADCScale(), DigitizeMvtxLadderCells(), InitRun(), and set_adc_scale().
|
private |
Definition at line 54 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 54 of file PHG4MvtxDigitizer.h
|
private |
Definition at line 55 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 55 of file PHG4MvtxDigitizer.h
|
private |
random generator that conform with sPHENIX standard
Definition at line 63 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 63 of file PHG4MvtxDigitizer.h
Referenced by PHG4MvtxDigitizer(), and ~PHG4MvtxDigitizer().