Analysis Software
Documentation for sPHENIX simulation software
|
#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 = std::numeric_limits<int>::max() - 10 } |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 18 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 18 of file PHG4MvtxDigitizer.h
PHG4MvtxDigitizer::PHG4MvtxDigitizer | ( | const std::string & | name = "PHG4MvtxDigitizer" | ) |
Definition at line 31 of file PHG4MvtxDigitizer.cc.
View newest version in sPHENIX GitHub at line 31 of file PHG4MvtxDigitizer.cc
References gsl_rng_set(), 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 97 of file PHG4MvtxDigitizer.cc.
View newest version in sPHENIX GitHub at line 97 of file PHG4MvtxDigitizer.cc
References _energy_scale, _max_adc, PHG4CylinderGeomContainer::get_begin_end(), layer, G4PLUGDOOR::length, thickness, and Fun4AllBase::Verbosity().
Referenced by InitRun().
|
private |
Definition at line 150 of file PHG4MvtxDigitizer.cc.
View newest version in sPHENIX GitHub at line 150 of file PHG4MvtxDigitizer.cc
References _energy_scale, _energy_threshold, _max_adc, TrkrHit::getEnergy(), TrkrHitSet::getHits(), TrkrHitSetContainer::getHitSets(), TrkrDefs::getLayer(), layer, TrkrDefs::mvtxId, TrkrHitSet::removeHit(), TrkrHit::setAdc(), and Fun4AllBase::Verbosity().
Referenced by process_event().
|
inlineoverridevirtual |
end of process
Reimplemented from SubsysReco.
Definition at line 34 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 34 of file PHG4MvtxDigitizer.h
|
inline |
Definition at line 47 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 47 of file PHG4MvtxDigitizer.h
References _energy_threshold.
|
inlineoverridevirtual |
module initialization
Reimplemented from SubsysReco.
Definition at line 25 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 25 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 89 of file PHG4MvtxDigitizer.cc.
View newest version in sPHENIX GitHub at line 89 of file PHG4MvtxDigitizer.cc
References DigitizeMvtxLadderCells(), and Fun4AllReturnCodes::EVENT_OK.
|
inline |
Definition at line 36 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 36 of file PHG4MvtxDigitizer.h
References _energy_scale, and _max_adc.
|
inline |
Definition at line 42 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 42 of file PHG4MvtxDigitizer.h
References _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 59 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 59 of file PHG4MvtxDigitizer.h
Referenced by DigitizeMvtxLadderCells(), get_energy_threshold(), and set_energy_threshold().
|
private |
Definition at line 57 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 57 of file PHG4MvtxDigitizer.h
Referenced by CalculateMvtxLadderCellADCScale(), DigitizeMvtxLadderCells(), InitRun(), and set_adc_scale().
|
private |
Definition at line 53 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 53 of file PHG4MvtxDigitizer.h
|
private |
Definition at line 54 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 54 of file PHG4MvtxDigitizer.h
|
private |
random generator that conform with sPHENIX standard
Definition at line 62 of file PHG4MvtxDigitizer.h.
View newest version in sPHENIX GitHub at line 62 of file PHG4MvtxDigitizer.h
Referenced by PHG4MvtxDigitizer(), and ~PHG4MvtxDigitizer().