Returns a new PMTsimulationAlg
with an updated configuration.
More...
#include <PMTsimulationAlg.h>
Classes | |
struct | Config |
Main algorithm FHiCL configuration. More... | |
struct | PMTspecConfig |
Public Types | |
using | microseconds = util::quantities::microsecond |
using | nanoseconds = util::quantities::nanosecond |
using | hertz = util::quantities::hertz |
using | picocoulomb = util::quantities::picocoulomb |
Public Member Functions | |
PMTsimulationAlgMaker (Config const &config) | |
Constructor. More... | |
std::unique_ptr< PMTsimulationAlg > | operator() (detinfo::LArProperties const &larProp, detinfo::DetectorClocksData const &detClocks, SinglePhotonResponseFunc_t const &SPRfunction, CLHEP::HepRandomEngine &mainRandomEngine, CLHEP::HepRandomEngine &darkNoiseRandomEngine, CLHEP::HepRandomEngine &elecNoiseRandomEngine, bool trackSelectedPhotons=false) const |
Creates and returns a new algorithm instance. More... | |
PMTsimulationAlg::ConfigurationParameters_t | makeParams (detinfo::LArProperties const &larProp, detinfo::DetectorClocksData const &clockData, SinglePhotonResponseFunc_t const &SPRfunction, CLHEP::HepRandomEngine &mainRandomEngine, CLHEP::HepRandomEngine &darkNoiseRandomEngine, CLHEP::HepRandomEngine &elecNoiseRandomEngine, bool trackSelectedPhotons=false) const |
Returns a data structure to construct the algorithm. More... | |
Private Attributes | |
PMTsimulationAlg::ConfigurationParameters_t | fBaseConfig |
Part of the configuration learned from configuration files. More... | |
Returns a new PMTsimulationAlg
with an updated configuration.
Definition at line 791 of file PMTsimulationAlg.h.
Definition at line 796 of file PMTsimulationAlg.h.
Definition at line 794 of file PMTsimulationAlg.h.
Definition at line 795 of file PMTsimulationAlg.h.
Definition at line 797 of file PMTsimulationAlg.h.
icarus::opdet::PMTsimulationAlgMaker::PMTsimulationAlgMaker | ( | Config const & | config | ) |
Constructor.
Definition at line 747 of file PMTsimulationAlg.cxx.
auto icarus::opdet::PMTsimulationAlgMaker::makeParams | ( | detinfo::LArProperties const & | larProp, |
detinfo::DetectorClocksData const & | clockData, | ||
SinglePhotonResponseFunc_t const & | SPRfunction, | ||
CLHEP::HepRandomEngine & | mainRandomEngine, | ||
CLHEP::HepRandomEngine & | darkNoiseRandomEngine, | ||
CLHEP::HepRandomEngine & | elecNoiseRandomEngine, | ||
bool | trackSelectedPhotons = false |
||
) | const |
Returns a data structure to construct the algorithm.
larProp | instance of detinfo::LArProperties to be used |
detClocks | instance of detinfo::DetectorClocks to be used |
SPRfunction | function to use for the single photon response |
mainRandomEngine | main random engine (quantum efficiency, etc.) |
darkNoiseRandomEngine | random engine for dark noise simulation |
elecNoiseRandomEngine | random engine for electronics noise simulation |
Returns a data structure ready to be used to construct a PMTsimulationAlg
algorithm object, based on the configuration passed at construction time and the arguments specified in this function call.
All random engines are required in this interface, even if the configuration disabled noise simulation.
Definition at line 854 of file PMTsimulationAlg.cxx.
std::unique_ptr< icarus::opdet::PMTsimulationAlg > icarus::opdet::PMTsimulationAlgMaker::operator() | ( | detinfo::LArProperties const & | larProp, |
detinfo::DetectorClocksData const & | detClocks, | ||
SinglePhotonResponseFunc_t const & | SPRfunction, | ||
CLHEP::HepRandomEngine & | mainRandomEngine, | ||
CLHEP::HepRandomEngine & | darkNoiseRandomEngine, | ||
CLHEP::HepRandomEngine & | elecNoiseRandomEngine, | ||
bool | trackSelectedPhotons = false |
||
) | const |
Creates and returns a new algorithm instance.
larProp | instance of detinfo::LArProperties to be used |
detClocks | instance of detinfo::DetectorClocks to be used |
SPRfunction | function to use for the single photon response |
mainRandomEngine | main random engine (quantum efficiency, etc.) |
darkNoiseRandomEngine | random engine for dark noise simulation |
elecNoiseRandomEngine | random engine for electronics noise simulation |
trackSelectedPhotons | (default: false ) keep track and return a copy of the scintillation photons used |
All random engines are required in this interface, even if the configuration disabled noise simulation.
Definition at line 833 of file PMTsimulationAlg.cxx.
|
private |
Part of the configuration learned from configuration files.
Definition at line 1007 of file PMTsimulationAlg.h.