Public Member Functions | |
RadioGen (fhicl::ParameterSet const &pset) | |
virtual | ~RadioGen () |
void | produce (::art::Event &evt) |
void | beginRun (::art::Run &run) |
void | reconfigure (fhicl::ParameterSet const &p) |
Public Member Functions inherited from art::EDProducer | |
EDProducer (fhicl::ParameterSet const &pset) | |
template<typename Config > | |
EDProducer (Table< Config > const &config) | |
std::string | workerType () const |
Public Member Functions inherited from art::detail::Producer | |
virtual | ~Producer () noexcept |
Producer (fhicl::ParameterSet const &) | |
Producer (Producer const &)=delete | |
Producer (Producer &&)=delete | |
Producer & | operator= (Producer const &)=delete |
Producer & | operator= (Producer &&)=delete |
void | doBeginJob (SharedResources const &resources) |
void | doEndJob () |
void | doRespondToOpenInputFile (FileBlock const &fb) |
void | doRespondToCloseInputFile (FileBlock const &fb) |
void | doRespondToOpenOutputFiles (FileBlock const &fb) |
void | doRespondToCloseOutputFiles (FileBlock const &fb) |
bool | doBeginRun (RunPrincipal &rp, ModuleContext const &mc) |
bool | doEndRun (RunPrincipal &rp, ModuleContext const &mc) |
bool | doBeginSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
bool | doEndSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
bool | doEvent (EventPrincipal &ep, ModuleContext const &mc, std::atomic< std::size_t > &counts_run, std::atomic< std::size_t > &counts_passed, std::atomic< std::size_t > &counts_failed) |
Public Member Functions inherited from art::Modifier | |
~Modifier () noexcept | |
Modifier () | |
Modifier (Modifier const &)=delete | |
Modifier (Modifier &&)=delete | |
Modifier & | operator= (Modifier const &)=delete |
Modifier & | operator= (Modifier &&)=delete |
Public Member Functions inherited from art::ModuleBase | |
virtual | ~ModuleBase () noexcept |
ModuleBase () | |
ModuleDescription const & | moduleDescription () const |
void | setModuleDescription (ModuleDescription const &) |
std::array< std::vector< ProductInfo >, NumBranchTypes > const & | getConsumables () const |
void | sortConsumables (std::string const ¤t_process_name) |
template<typename T , BranchType BT> | |
ViewToken< T > | consumesView (InputTag const &tag) |
template<typename T , BranchType BT> | |
ViewToken< T > | mayConsumeView (InputTag const &tag) |
Private Member Functions | |
void | SampleOne (unsigned int i, simb::MCTruth &mct) |
void | readfile (std::string nuclide, std::string filename) |
void | samplespectrum (std::string nuclide, int &itype, double &t, double &m, double &p) |
double | samplefromth1d (TH1D *hist) |
Private Attributes | |
std::vector< std::string > | fNuclide |
List of nuclides to simulate. Example: "39Ar". More... | |
std::vector< double > | fBq |
Radioactivity in Becquerels (decay per sec) per cubic cm. More... | |
std::vector< double > | fT0 |
Beginning of time window to simulate in ns. More... | |
std::vector< double > | fT1 |
End of time window to simulate in ns. More... | |
std::vector< double > | fX0 |
Bottom corner x position (cm) in world coordinates. More... | |
std::vector< double > | fY0 |
Bottom corner y position (cm) in world coordinates. More... | |
std::vector< double > | fZ0 |
Bottom corner z position (cm) in world coordinates. More... | |
std::vector< double > | fX1 |
Top corner x position (cm) in world coordinates. More... | |
std::vector< double > | fY1 |
Top corner y position (cm) in world coordinates. More... | |
std::vector< double > | fZ1 |
Top corner z position (cm) in world coordinates. More... | |
int | trackidcounter |
Serial number for the MC track ID. More... | |
const double | m_e = 0.000510998928 |
const double | m_alpha = 3.727379240 |
std::vector< std::string > | spectrumname |
std::vector< TH1D * > | alphaspectrum |
std::vector< double > | alphaintegral |
std::vector< TH1D * > | betaspectrum |
std::vector< double > | betaintegral |
std::vector< TH1D * > | gammaspectrum |
std::vector< double > | gammaintegral |
CLHEP::HepRandomEngine & | fEngine |
Additional Inherited Members | |
Public Types inherited from art::EDProducer | |
using | ModuleType = EDProducer |
using | WorkerType = WorkerT< EDProducer > |
Public Types inherited from art::detail::Producer | |
template<typename UserConfig , typename KeysToIgnore = void> | |
using | Table = Modifier::Table< UserConfig, KeysToIgnore > |
Public Types inherited from art::Modifier | |
template<typename UserConfig , typename UserKeysToIgnore = void> | |
using | Table = ProducerTable< UserConfig, detail::ModuleConfig, UserKeysToIgnore > |
Static Public Member Functions inherited from art::EDProducer | |
static void | commitEvent (EventPrincipal &ep, Event &e) |
Protected Member Functions inherited from art::ModuleBase | |
ConsumesCollector & | consumesCollector () |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | consumes (InputTag const &) |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | consumesView (InputTag const &) |
template<typename T , BranchType = InEvent> | |
void | consumesMany () |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | mayConsume (InputTag const &) |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | mayConsumeView (InputTag const &) |
template<typename T , BranchType = InEvent> | |
void | mayConsumeMany () |
Module to generate particles created by radiological decay, patterend off of SingleGen Currently it generates only in rectangular prisms oriented along the x,y,z axes
Definition at line 74 of file RadioGen_module.cc.
|
explicit |
Definition at line 138 of file RadioGen_module.cc.
|
virtual |
Definition at line 150 of file RadioGen_module.cc.
void gar::evgen::RadioGen::beginRun | ( | ::art::Run & | run | ) |
Definition at line 194 of file RadioGen_module.cc.
void gar::evgen::RadioGen::produce | ( | ::art::Event & | evt | ) |
unique_ptr allows ownership to be transferred to the art::Event after the put statement
Definition at line 207 of file RadioGen_module.cc.
|
private |
Definition at line 309 of file RadioGen_module.cc.
void gar::evgen::RadioGen::reconfigure | ( | fhicl::ParameterSet const & | p | ) |
Definition at line 155 of file RadioGen_module.cc.
|
private |
Definition at line 493 of file RadioGen_module.cc.
|
private |
Definition at line 229 of file RadioGen_module.cc.
|
private |
Definition at line 430 of file RadioGen_module.cc.
|
private |
Definition at line 124 of file RadioGen_module.cc.
|
private |
Definition at line 123 of file RadioGen_module.cc.
|
private |
Definition at line 126 of file RadioGen_module.cc.
|
private |
Definition at line 125 of file RadioGen_module.cc.
|
private |
Radioactivity in Becquerels (decay per sec) per cubic cm.
Definition at line 104 of file RadioGen_module.cc.
|
private |
Definition at line 130 of file RadioGen_module.cc.
|
private |
List of nuclides to simulate. Example: "39Ar".
Definition at line 103 of file RadioGen_module.cc.
|
private |
Beginning of time window to simulate in ns.
Definition at line 105 of file RadioGen_module.cc.
|
private |
End of time window to simulate in ns.
Definition at line 106 of file RadioGen_module.cc.
|
private |
Bottom corner x position (cm) in world coordinates.
Definition at line 107 of file RadioGen_module.cc.
|
private |
Top corner x position (cm) in world coordinates.
Definition at line 110 of file RadioGen_module.cc.
|
private |
Bottom corner y position (cm) in world coordinates.
Definition at line 108 of file RadioGen_module.cc.
|
private |
Top corner y position (cm) in world coordinates.
Definition at line 111 of file RadioGen_module.cc.
|
private |
Bottom corner z position (cm) in world coordinates.
Definition at line 109 of file RadioGen_module.cc.
|
private |
Top corner z position (cm) in world coordinates.
Definition at line 112 of file RadioGen_module.cc.
|
private |
Definition at line 128 of file RadioGen_module.cc.
|
private |
Definition at line 127 of file RadioGen_module.cc.
|
private |
Definition at line 120 of file RadioGen_module.cc.
|
private |
Definition at line 119 of file RadioGen_module.cc.
|
private |
Definition at line 122 of file RadioGen_module.cc.
|
private |
Serial number for the MC track ID.
Definition at line 113 of file RadioGen_module.cc.