![]() |
Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/simulation/g4simulation/g4intt/PHG4InttDigitizer.h>
Inheritance diagram for PHG4InttDigitizer:
Collaboration diagram for PHG4InttDigitizer:Public Member Functions | |
| PHG4InttDigitizer (const std::string &name="PHG4InttDigitizer") | |
| ~PHG4InttDigitizer () override | |
| int | InitRun (PHCompositeNode *topNode) override |
| run initialization | |
| int | process_event (PHCompositeNode *topNode) override |
| event processing | |
| int | End (PHCompositeNode *topNode) override |
| end of process | |
| void | SetDefaultParameters () override |
| void | Detector (const std::string &d) |
| void | set_adc_scale (const int &layer, std::vector< double > userrange_copy) |
Public Member Functions inherited from SubsysReco | |
| ~SubsysReco () override | |
| virtual int | EndRun (const int) |
| Called at the end of each run. | |
| virtual int | Init (PHCompositeNode *) |
| 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. | |
Public Member Functions inherited from PHParameterInterface | |
| PHParameterInterface (const std::string &name) | |
| PHParameterInterface (const PHParameterInterface &)=delete | |
| PHParameterInterface & | operator= (PHParameterInterface const &)=delete |
| virtual | ~PHParameterInterface () |
| void | set_paramname (const std::string &name) |
| void | set_double_param (const std::string &name, const double dval) |
| double | get_double_param (const std::string &name) const |
| void | set_int_param (const std::string &name, const int ival) |
| int | get_int_param (const std::string &name) const |
| void | set_string_param (const std::string &name, const std::string &sval) |
| std::string | get_string_param (const std::string &name) const |
| void | UpdateParametersWithMacro () |
| void | SaveToNodeTree (PHCompositeNode *runNode, const std::string &nodename) |
| void | PutOnParNode (PHCompositeNode *parNode, const std::string &nodename) |
| void | Print () const |
Private Member Functions | |
| void | CalculateLadderCellADCScale (PHCompositeNode *topNode) |
| void | DigitizeLadderCells (PHCompositeNode *topNode) |
| float | added_noise () |
Private Attributes | |
| std::string | detector = "INTT" |
| float | mNoiseMean = 457.2 |
| float | mNoiseSigma = 166.6 |
| float | mEnergyPerPair = 3.62e-9 |
| std::map< int, unsigned int > | _max_adc |
| std::map< int, float > | _energy_scale |
| const unsigned int | nadcbins = 8 |
| std::map< int, std::vector < double > > | _max_fphx_adc |
| unsigned int | m_nCells = 0 |
| unsigned int | m_nDeadCells = 0 |
| gsl_rng * | RandomGenerator = nullptr |
| 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") | |
Protected Member Functions inherited from PHParameterInterface | |
| void | set_default_double_param (const std::string &name, const double dval) |
| void | set_default_int_param (const std::string &name, const int ival) |
| void | set_default_string_param (const std::string &name, const std::string &sval) |
| void | InitializeParameters () |
Definition at line 17 of file PHG4InttDigitizer.h.
View newest version in sPHENIX GitHub at line 17 of file PHG4InttDigitizer.h
| PHG4InttDigitizer::PHG4InttDigitizer | ( | const std::string & | name = "PHG4InttDigitizer" | ) |
Definition at line 44 of file PHG4InttDigitizer.cc.
View newest version in sPHENIX GitHub at line 44 of file PHG4InttDigitizer.cc
References gsl_rng_set(), PHParameterInterface::InitializeParameters(), Fun4AllBase::Name(), RandomGenerator, and seed.
Here is the call graph for this function:
|
override |
Definition at line 55 of file PHG4InttDigitizer.cc.
View newest version in sPHENIX GitHub at line 55 of file PHG4InttDigitizer.cc
References RandomGenerator.
|
private |
Definition at line 321 of file PHG4InttDigitizer.cc.
View newest version in sPHENIX GitHub at line 321 of file PHG4InttDigitizer.cc
References mNoiseMean, and RandomGenerator.
|
private |
Definition at line 142 of file PHG4InttDigitizer.cc.
View newest version in sPHENIX GitHub at line 142 of file PHG4InttDigitizer.cc
References _energy_scale, _max_fphx_adc, PHG4CylinderGeomContainer::get_begin_end(), layer, and thickness.
Referenced by InitRun().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 34 of file PHG4InttDigitizer.h.
View newest version in sPHENIX GitHub at line 34 of file PHG4InttDigitizer.h
|
private |
Definition at line 171 of file PHG4InttDigitizer.cc.
View newest version in sPHENIX GitHub at line 171 of file PHG4InttDigitizer.cc
References _energy_scale, _max_fphx_adc, assert, double(), TrkrHit::getAdc(), InttDefs::getCol(), TrkrHit::getEnergy(), TrkrHitSet::getHits(), TrkrHitSetContainer::getHitSets(), InttDefs::getLadderPhiId(), InttDefs::getLadderZId(), TrkrDefs::getLayer(), InttDefs::getRow(), InttDeadMap::identify(), TrkrHit::identify(), TrkrDefs::inttId, InttDeadMap::isDeadChannelIntt(), layer, m_nCells, m_nDeadCells, TrkrHitSet::removeHit(), TrkrHit::setAdc(), Fun4AllBase::Verbosity(), and Fun4AllBase::VERBOSITY_MORE.
Referenced by process_event().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
end of process
Reimplemented from SubsysReco.
Definition at line 300 of file PHG4InttDigitizer.cc.
View newest version in sPHENIX GitHub at line 300 of file PHG4InttDigitizer.cc
References Fun4AllReturnCodes::EVENT_OK, m_nCells, m_nDeadCells, Fun4AllBase::Verbosity(), and Fun4AllBase::VERBOSITY_SOME.
Here is the call graph for this function:
|
overridevirtual |
run initialization
Reimplemented from SubsysReco.
Definition at line 60 of file PHG4InttDigitizer.cc.
View newest version in sPHENIX GitHub at line 60 of file PHG4InttDigitizer.cc
References _energy_scale, _max_adc, Fun4AllReturnCodes::ABORTRUN, PHCompositeNode::addNode(), CalculateLadderCellADCScale(), detector, Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), PHParameterInterface::get_double_param(), mEnergyPerPair, mNoiseMean, mNoiseSigma, PHWHERE, PHParameterInterface::PutOnParNode(), PHParameterInterface::SaveToNodeTree(), PHParameterInterface::UpdateParametersWithMacro(), and Fun4AllBase::Verbosity().
Here is the call graph for this function:
|
overridevirtual |
event processing
Reimplemented from SubsysReco.
Definition at line 135 of file PHG4InttDigitizer.cc.
View newest version in sPHENIX GitHub at line 135 of file PHG4InttDigitizer.cc
References DigitizeLadderCells(), and Fun4AllReturnCodes::EVENT_OK.
Here is the call graph for this function:| void PHG4InttDigitizer::set_adc_scale | ( | const int & | layer, |
| std::vector< double > | userrange_copy | ||
| ) |
Definition at line 334 of file PHG4InttDigitizer.cc.
View newest version in sPHENIX GitHub at line 334 of file PHG4InttDigitizer.cc
References _max_fphx_adc, nadcbins, and Acts::Experimental::detail::BlueprintHelper::sort().
Referenced by Intt_Cells().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements PHParameterInterface.
Definition at line 313 of file PHG4InttDigitizer.cc.
View newest version in sPHENIX GitHub at line 313 of file PHG4InttDigitizer.cc
References Acts::UnitConstants::e, and PHParameterInterface::set_default_double_param().
Here is the call graph for this function:
|
private |
Definition at line 54 of file PHG4InttDigitizer.h.
View newest version in sPHENIX GitHub at line 54 of file PHG4InttDigitizer.h
Referenced by CalculateLadderCellADCScale(), DigitizeLadderCells(), and InitRun().
|
private |
Definition at line 53 of file PHG4InttDigitizer.h.
View newest version in sPHENIX GitHub at line 53 of file PHG4InttDigitizer.h
Referenced by InitRun().
|
private |
Definition at line 60 of file PHG4InttDigitizer.h.
View newest version in sPHENIX GitHub at line 60 of file PHG4InttDigitizer.h
Referenced by CalculateLadderCellADCScale(), DigitizeLadderCells(), and set_adc_scale().
|
private |
Definition at line 46 of file PHG4InttDigitizer.h.
View newest version in sPHENIX GitHub at line 46 of file PHG4InttDigitizer.h
Referenced by InitRun().
|
private |
Definition at line 62 of file PHG4InttDigitizer.h.
View newest version in sPHENIX GitHub at line 62 of file PHG4InttDigitizer.h
Referenced by DigitizeLadderCells(), and End().
|
private |
Definition at line 63 of file PHG4InttDigitizer.h.
View newest version in sPHENIX GitHub at line 63 of file PHG4InttDigitizer.h
Referenced by DigitizeLadderCells(), and End().
|
private |
Definition at line 50 of file PHG4InttDigitizer.h.
View newest version in sPHENIX GitHub at line 50 of file PHG4InttDigitizer.h
Referenced by InitRun().
|
private |
Definition at line 48 of file PHG4InttDigitizer.h.
View newest version in sPHENIX GitHub at line 48 of file PHG4InttDigitizer.h
Referenced by added_noise(), and InitRun().
|
private |
Definition at line 49 of file PHG4InttDigitizer.h.
View newest version in sPHENIX GitHub at line 49 of file PHG4InttDigitizer.h
Referenced by InitRun().
|
private |
Definition at line 59 of file PHG4InttDigitizer.h.
View newest version in sPHENIX GitHub at line 59 of file PHG4InttDigitizer.h
Referenced by set_adc_scale().
|
private |
random generator that conform with sPHENIX standard
Definition at line 66 of file PHG4InttDigitizer.h.
View newest version in sPHENIX GitHub at line 66 of file PHG4InttDigitizer.h
Referenced by added_noise(), PHG4InttDigitizer(), and ~PHG4InttDigitizer().