ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/simulation/g4simulation/g4tpc/PHG4TpcDigitizer.h>
Public Member Functions | |
PHG4TpcDigitizer (const std::string &name="PHG4TpcDigitizer") | |
~PHG4TpcDigitizer () 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 int max_adc, const float energy_per_adc) |
void | SetTpcMinLayer (const int minlayer) |
void | SetADCThreshold (const float thresh) |
void | SetENC (const float enc) |
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 | CalculateCylinderCellADCScale (PHCompositeNode *topNode) |
void | DigitizeCylinderCells (PHCompositeNode *topNode) |
float | added_noise () |
Private Attributes | |
unsigned int | TpcMinLayer |
float | ADCThreshold |
float | TpcEnc |
float | Pedestal |
float | ChargeToPeakVolts |
float | ADCSignalConversionGain |
float | ADCNoiseConversionGain |
std::vector< std::vector < TrkrHitSet::ConstIterator > > | phi_sorted_hits |
std::vector< std::vector < TrkrHitSet::ConstIterator > > | z_sorted_hits |
std::vector< float > | adc_input |
std::vector< TrkrDefs::hitkey > | adc_hitid |
std::vector< int > | is_populated |
std::map< int, unsigned int > | _max_adc |
std::map< int, float > | _energy_scale |
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 20 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 20 of file PHG4TpcDigitizer.h
PHG4TpcDigitizer::PHG4TpcDigitizer | ( | const std::string & | name = "PHG4TpcDigitizer" | ) |
Definition at line 33 of file PHG4TpcDigitizer.cc.
View newest version in sPHENIX GitHub at line 33 of file PHG4TpcDigitizer.cc
References Fun4AllBase::Name(), RandomGenerator, seed, and Fun4AllBase::Verbosity().
|
override |
Definition at line 54 of file PHG4TpcDigitizer.cc.
View newest version in sPHENIX GitHub at line 54 of file PHG4TpcDigitizer.cc
References RandomGenerator.
|
private |
Definition at line 618 of file PHG4TpcDigitizer.cc.
View newest version in sPHENIX GitHub at line 618 of file PHG4TpcDigitizer.cc
References noise(), RandomGenerator, and TpcEnc.
Referenced by DigitizeCylinderCells().
|
private |
Definition at line 118 of file PHG4TpcDigitizer.cc.
View newest version in sPHENIX GitHub at line 118 of file PHG4TpcDigitizer.cc
References _energy_scale, _max_adc, PHG4CylinderCellGeomContainer::get_begin_end(), get_thickness(), G4TTL::layer, BTOF::length, and thickness.
Referenced by InitRun().
|
private |
Definition at line 151 of file PHG4TpcDigitizer.cc.
View newest version in sPHENIX GitHub at line 151 of file PHG4TpcDigitizer.cc
References adc_hitid, adc_input, ADCNoiseConversionGain, ADCSignalConversionGain, ADCThreshold, added_noise(), g4zmq::exit(), TrkrHitSetContainer::findHitSet(), TpcDefs::genHitKey(), PHG4CylinderCellGeom::get_phibins(), PHG4CylinderCellGeom::get_zbins(), TrkrHit::getAdc(), TrkrHitSet::getHits(), TrkrHitSetContainer::getHitSets(), TrkrDefs::getLayer(), PHG4CylinderCellGeomContainer::GetLayerCellGeom(), TpcDefs::getPad(), TpcDefs::getSectorId(), TpcDefs::getSide(), TpcDefs::getTBin(), int(), is_populated, G4TTL::layer, noise(), Pedestal, phi_sorted_hits, PHWHERE, TrkrHitTruthAssoc::removeAssoc(), TrkrHitSet::removeHit(), second, TrkrHit::setAdc(), TrkrDefs::tpcId, Fun4AllBase::Verbosity(), and z_sorted_hits.
Referenced by process_event().
|
inlineoverridevirtual |
end of process
Reimplemented from SubsysReco.
Definition at line 36 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 36 of file PHG4TpcDigitizer.h
|
inlineoverridevirtual |
module initialization
Reimplemented from SubsysReco.
Definition at line 27 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 27 of file PHG4TpcDigitizer.h
|
overridevirtual |
run initialization
Reimplemented from SubsysReco.
Definition at line 59 of file PHG4TpcDigitizer.cc.
View newest version in sPHENIX GitHub at line 59 of file PHG4TpcDigitizer.cc
References _energy_scale, _max_adc, Fun4AllReturnCodes::ABORTRUN, ADCNoiseConversionGain, ADCSignalConversionGain, ADCThreshold, CalculateCylinderCellADCScale(), ChargeToPeakVolts, Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), Pedestal, PHWHERE, and Fun4AllBase::Verbosity().
|
overridevirtual |
event processing
Reimplemented from SubsysReco.
Definition at line 111 of file PHG4TpcDigitizer.cc.
View newest version in sPHENIX GitHub at line 111 of file PHG4TpcDigitizer.cc
References DigitizeCylinderCells(), and Fun4AllReturnCodes::EVENT_OK.
|
inline |
Definition at line 38 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 38 of file PHG4TpcDigitizer.h
References _energy_scale, and _max_adc.
|
inline |
Definition at line 45 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 45 of file PHG4TpcDigitizer.h
References ADCThreshold.
|
inline |
Definition at line 46 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 46 of file PHG4TpcDigitizer.h
References TpcEnc.
Definition at line 44 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 44 of file PHG4TpcDigitizer.h
References TpcMinLayer.
|
private |
Definition at line 71 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 71 of file PHG4TpcDigitizer.h
Referenced by CalculateCylinderCellADCScale(), InitRun(), and set_adc_scale().
Definition at line 70 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 70 of file PHG4TpcDigitizer.h
Referenced by CalculateCylinderCellADCScale(), InitRun(), and set_adc_scale().
|
private |
Definition at line 66 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 66 of file PHG4TpcDigitizer.h
Referenced by DigitizeCylinderCells().
|
private |
Definition at line 65 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 65 of file PHG4TpcDigitizer.h
Referenced by DigitizeCylinderCells().
|
private |
Definition at line 60 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 60 of file PHG4TpcDigitizer.h
Referenced by DigitizeCylinderCells(), and InitRun().
|
private |
Definition at line 59 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 59 of file PHG4TpcDigitizer.h
Referenced by DigitizeCylinderCells(), and InitRun().
|
private |
Definition at line 54 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 54 of file PHG4TpcDigitizer.h
Referenced by DigitizeCylinderCells(), InitRun(), and SetADCThreshold().
|
private |
Definition at line 57 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 57 of file PHG4TpcDigitizer.h
Referenced by InitRun().
|
private |
Definition at line 67 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 67 of file PHG4TpcDigitizer.h
Referenced by DigitizeCylinderCells().
|
private |
Definition at line 56 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 56 of file PHG4TpcDigitizer.h
Referenced by DigitizeCylinderCells(), and InitRun().
|
private |
Definition at line 62 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 62 of file PHG4TpcDigitizer.h
Referenced by DigitizeCylinderCells().
|
private |
random generator that conform with sPHENIX standard
Definition at line 74 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 74 of file PHG4TpcDigitizer.h
Referenced by added_noise(), PHG4TpcDigitizer(), and ~PHG4TpcDigitizer().
|
private |
Definition at line 55 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 55 of file PHG4TpcDigitizer.h
Referenced by added_noise(), and SetENC().
|
private |
Definition at line 53 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 53 of file PHG4TpcDigitizer.h
Referenced by SetTpcMinLayer().
|
private |
Definition at line 63 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 63 of file PHG4TpcDigitizer.h
Referenced by DigitizeCylinderCells().