Analysis Software
Documentation for sPHENIX simulation software
|
#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) |
void | set_drift_velocity (float vd) |
void | set_skip_noise_flag (const bool skip) |
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 () |
float | add_noise_to_bin (float signal) |
Private Attributes | |
unsigned int | TpcMinLayer |
unsigned int | TpcNLayers |
float | ADCThreshold |
float | ADCThreshold_mV = 0 |
float | TpcEnc |
float | Pedestal |
float | ChargeToPeakVolts |
float | _drift_velocity = 8.0e-3 |
float | ADCSignalConversionGain |
float | ADCNoiseConversionGain |
bool | skip_noise = false |
std::vector< std::vector < TrkrHitSet::ConstIterator > > | phi_sorted_hits |
std::vector< std::vector < TrkrHitSet::ConstIterator > > | t_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 = std::numeric_limits<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 32 of file PHG4TpcDigitizer.cc.
View newest version in sPHENIX GitHub at line 32 of file PHG4TpcDigitizer.cc
References gsl_rng_set(), 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 635 of file PHG4TpcDigitizer.cc.
View newest version in sPHENIX GitHub at line 635 of file PHG4TpcDigitizer.cc
References ADCNoiseConversionGain, ADCSignalConversionGain, added_noise(), and Pedestal.
Referenced by DigitizeCylinderCells().
|
private |
Definition at line 645 of file PHG4TpcDigitizer.cc.
View newest version in sPHENIX GitHub at line 645 of file PHG4TpcDigitizer.cc
References RandomGenerator, and TpcEnc.
Referenced by add_noise_to_bin().
|
private |
Definition at line 120 of file PHG4TpcDigitizer.cc.
View newest version in sPHENIX GitHub at line 120 of file PHG4TpcDigitizer.cc
References _drift_velocity, _energy_scale, _max_adc, PHG4TpcCylinderGeomContainer::get_begin_end(), layer, G4PLUGDOOR::length, and thickness.
Referenced by InitRun().
|
private |
Definition at line 154 of file PHG4TpcDigitizer.cc.
View newest version in sPHENIX GitHub at line 154 of file PHG4TpcDigitizer.cc
References adc_hitid, adc_input, ADCNoiseConversionGain, ADCSignalConversionGain, ADCThreshold, ADCThreshold_mV, add_noise_to_bin(), TrkrHitSetContainer::findHitSet(), TrkrHitSetContainer::findOrAddHitSet(), TpcDefs::genHitKey(), TpcDefs::genHitSetKey(), PHG4TpcCylinderGeom::get_phibins(), PHG4TpcCylinderGeom::get_zbins(), TrkrHit::getAdc(), TrkrHitSet::getHits(), TrkrHitSetContainer::getHitSets(), TrkrDefs::getLayer(), PHG4TpcCylinderGeomContainer::GetLayerCellGeom(), TpcDefs::getPad(), TpcDefs::getSectorId(), TpcDefs::getSide(), TpcDefs::getTBin(), i, digitization_config::input, is_populated, it, layer, phi_sorted_hits, PHWHERE, TrkrHitSet::removeHit(), TrkrHit::setAdc(), skip_noise, t_sorted_hits, TrkrDefs::tpcId, TpcMinLayer, TpcNLayers, and Fun4AllBase::Verbosity().
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, ADCThreshold_mV, CalculateCylinderCellADCScale(), ChargeToPeakVolts, Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), Pedestal, PHWHERE, and Fun4AllBase::Verbosity().
|
overridevirtual |
event processing
Reimplemented from SubsysReco.
Definition at line 113 of file PHG4TpcDigitizer.cc.
View newest version in sPHENIX GitHub at line 113 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 47 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 47 of file PHG4TpcDigitizer.h
References _drift_velocity.
|
inline |
Definition at line 48 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 48 of file PHG4TpcDigitizer.h
References Acts::Test::skip, and skip_noise.
Referenced by TPC_Cells().
|
inline |
Definition at line 45 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 45 of file PHG4TpcDigitizer.h
References ADCThreshold.
Referenced by Fun4All_G4_TPC(), and TPC_Cells().
|
inline |
Definition at line 46 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 46 of file PHG4TpcDigitizer.h
References TpcEnc.
Referenced by Fun4All_G4_TPC(), and TPC_Cells().
|
inline |
Definition at line 44 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 44 of file PHG4TpcDigitizer.h
References TpcMinLayer.
Referenced by Fun4All_G4_TPC(), and TPC_Cells().
|
private |
Definition at line 63 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 63 of file PHG4TpcDigitizer.h
Referenced by CalculateCylinderCellADCScale(), and set_drift_velocity().
|
private |
Definition at line 79 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 79 of file PHG4TpcDigitizer.h
Referenced by CalculateCylinderCellADCScale(), InitRun(), and set_adc_scale().
|
private |
Definition at line 78 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 78 of file PHG4TpcDigitizer.h
Referenced by CalculateCylinderCellADCScale(), InitRun(), and set_adc_scale().
|
private |
Definition at line 74 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 74 of file PHG4TpcDigitizer.h
Referenced by DigitizeCylinderCells().
|
private |
Definition at line 73 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 73 of file PHG4TpcDigitizer.h
Referenced by DigitizeCylinderCells().
|
private |
Definition at line 66 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 66 of file PHG4TpcDigitizer.h
Referenced by add_noise_to_bin(), DigitizeCylinderCells(), and InitRun().
|
private |
Definition at line 65 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 65 of file PHG4TpcDigitizer.h
Referenced by add_noise_to_bin(), DigitizeCylinderCells(), and InitRun().
|
private |
Definition at line 58 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 58 of file PHG4TpcDigitizer.h
Referenced by DigitizeCylinderCells(), InitRun(), and SetADCThreshold().
|
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 62 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 62 of file PHG4TpcDigitizer.h
Referenced by InitRun().
|
private |
Definition at line 75 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 75 of file PHG4TpcDigitizer.h
Referenced by DigitizeCylinderCells().
|
private |
Definition at line 61 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 61 of file PHG4TpcDigitizer.h
Referenced by add_noise_to_bin(), and InitRun().
|
private |
Definition at line 70 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 70 of file PHG4TpcDigitizer.h
Referenced by DigitizeCylinderCells().
|
private |
random generator that conform with sPHENIX standard
Definition at line 82 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 82 of file PHG4TpcDigitizer.h
Referenced by added_noise(), PHG4TpcDigitizer(), and ~PHG4TpcDigitizer().
|
private |
Definition at line 68 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 68 of file PHG4TpcDigitizer.h
Referenced by DigitizeCylinderCells(), and set_skip_noise_flag().
|
private |
Definition at line 71 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 71 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 added_noise(), and SetENC().
|
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 SetTpcMinLayer().
|
private |
Definition at line 57 of file PHG4TpcDigitizer.h.
View newest version in sPHENIX GitHub at line 57 of file PHG4TpcDigitizer.h
Referenced by DigitizeCylinderCells().