LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
Public Types | |
using | ModuleType = EDProducer |
using | WorkerType = WorkerT< EDProducer > |
template<typename UserConfig , typename KeysToIgnore = void> | |
using | Table = ProducerBase::Table< UserConfig, KeysToIgnore > |
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) |
template<typename PROD , BranchType B = InEvent> | |
ProductID | getProductID (std::string const &instanceName={}) const |
template<typename PROD , BranchType B> | |
ProductID | getProductID (ModuleDescription const &moduleDescription, std::string const &instanceName) const |
bool | modifiesEvent () const |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | consumes (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ProductToken< T > | consumes (InputTag const &it) |
template<typename T , BranchType = InEvent> | |
void | consumesMany () |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | consumesView (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ViewToken< T > | consumesView (InputTag const &it) |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | mayConsume (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ProductToken< T > | mayConsume (InputTag const &it) |
template<typename T , BranchType = InEvent> | |
void | mayConsumeMany () |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | mayConsumeView (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ViewToken< T > | mayConsumeView (InputTag const &it) |
base_engine_t & | createEngine (seed_t seed) |
base_engine_t & | createEngine (seed_t seed, std::string const &kind_of_engine_to_make) |
base_engine_t & | createEngine (seed_t seed, std::string const &kind_of_engine_to_make, label_t const &engine_label) |
seed_t | get_seed_value (fhicl::ParameterSet const &pset, char const key[]="seed", seed_t const implicit_seed=-1) |
Static Public Member Functions | |
static cet::exempt_ptr< Consumer > | non_module_context () |
Protected Member Functions | |
CurrentProcessingContext const * | currentContext () const |
void | validateConsumedProduct (BranchType const bt, ProductInfo const &pi) |
void | prepareForJob (fhicl::ParameterSet const &pset) |
void | showMissingConsumes () const |
Private Types | |
typedef int | ti_PDGID |
typedef double | td_Mass |
Private Member Functions | |
void | SampleOne (unsigned int i, simb::MCTruth &mct) |
TLorentzVector | dirCalc (double p, double m) |
void | readfile (std::string nuclide, std::string filename) |
void | samplespectrum (std::string nuclide, int &itype, double &t, double &m, double &p) |
void | Ar42Gamma2 (std::vector< std::tuple< ti_PDGID, td_Mass, TLorentzVector >> &v_prods) |
void | Ar42Gamma3 (std::vector< std::tuple< ti_PDGID, td_Mass, TLorentzVector >> &v_prods) |
void | Ar42Gamma4 (std::vector< std::tuple< ti_PDGID, td_Mass, TLorentzVector >> &v_prods) |
void | Ar42Gamma5 (std::vector< std::tuple< ti_PDGID, td_Mass, TLorentzVector >> &v_prods) |
double | samplefromth1d (TH1D *hist) |
Private Attributes | |
std::vector< std::string > | fNuclide |
List of nuclides to simulate. Example: "39Ar". More... | |
std::vector< std::string > | fMaterial |
List of regexes of materials in which to generate the decays. Example: "LAr". 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... | |
bool | fIsFirstSignalSpecial |
int | trackidcounter |
Serial number for the MC track ID. More... | |
const double | m_e = 0.000510998928 |
const double | m_alpha = 3.727379240 |
const double | m_neutron = 0.9395654133 |
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 |
std::vector< TH1D * > | neutronspectrum |
std::vector< double > | neutronintegral |
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 97 of file RadioGen_module.cc.
|
inherited |
Definition at line 34 of file EDProducer.h.
|
inherited |
Definition at line 43 of file EDProducer.h.
|
private |
Definition at line 111 of file RadioGen_module.cc.
|
private |
Definition at line 110 of file RadioGen_module.cc.
|
inherited |
Definition at line 35 of file EDProducer.h.
|
explicit |
Definition at line 178 of file RadioGen_module.cc.
|
virtual |
Definition at line 194 of file RadioGen_module.cc.
|
private |
Definition at line 696 of file RadioGen_module.cc.
|
private |
Definition at line 704 of file RadioGen_module.cc.
|
private |
Definition at line 713 of file RadioGen_module.cc.
References art::RandomNumberGenerator::getEngine().
|
private |
Definition at line 734 of file RadioGen_module.cc.
References DEFINE_ART_MODULE, and art::RandomNumberGenerator::getEngine().
|
virtual |
Reimplemented from art::EDProducer.
Definition at line 259 of file RadioGen_module.cc.
References geo::GeometryCore::DetectorName(), and art::Run::put().
|
inherited |
|
inherited |
Definition at line 147 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inherited |
Definition at line 162 of file Consumer.h.
|
inherited |
|
inherited |
Definition at line 172 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inherited |
Definition at line 26 of file EngineCreator.cc.
References art::EngineCreator::rng().
Referenced by evgen::CosmicsGen::CosmicsGen(), rndm::NuRandomService::createEngine(), cluster::fuzzyCluster::fuzzyCluster(), cluster::HoughLineFinder::HoughLineFinder(), art::MixFilter< T >::initEngine_(), larg4::LArG4::LArG4(), evgen::LightSource::LightSource(), evgen::NeutronOsc::NeutronOsc(), evgen::NucleonDecay::NucleonDecay(), opdet::OpMCDigi::OpMCDigi(), opdet::OptDetDigitizer::OptDetDigitizer(), phot::PhotonLibraryPropagation::PhotonLibraryPropagation(), detsim::SimDriftElectrons::SimDriftElectrons(), evgen::SingleGen::SingleGen(), evgen::SNNueAr40CCGen::SNNueAr40CCGen(), ToyOneShowerGen::ToyOneShowerGen(), and trkf::Track3DKalman::Track3DKalman().
|
inherited |
Definition at line 32 of file EngineCreator.cc.
References art::EngineCreator::rng().
|
inherited |
Definition at line 40 of file EngineCreator.cc.
References art::EngineCreator::rng().
|
protectedinherited |
|
private |
Definition at line 419 of file RadioGen_module.cc.
References art::RandomNumberGenerator::getEngine().
|
inherited |
Definition at line 49 of file EngineCreator.cc.
References fhicl::ParameterSet::get().
Referenced by art::MixFilter< T >::initEngine_().
|
inlineinherited |
|
inherited |
Definition at line 56 of file ProducerBase.h.
References B, and art::ModuleDescription::moduleLabel().
Referenced by art::ProducerBase::modifiesEvent().
|
inherited |
|
inherited |
Definition at line 190 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inherited |
Definition at line 205 of file Consumer.h.
|
inherited |
|
inherited |
Definition at line 215 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inlineinherited |
Definition at line 40 of file ProducerBase.h.
References art::ProducerBase::getProductID().
|
staticinherited |
Definition at line 76 of file Consumer.cc.
Referenced by art::RootOutput::beginSubRun(), art::OutputModule::doBeginRun(), art::OutputModule::doBeginSubRun(), art::OutputModule::doEndRun(), art::OutputModule::doEndSubRun(), art::ProducingService::doPostReadEvent(), art::ProducingService::doPostReadRun(), art::ProducingService::doPostReadSubRun(), art::OutputModule::doWriteEvent(), art::ProcessPackage< L >::postScheduleSignal(), art::BeginEndPackage< Level::Run >::Begin::postScheduleSignal(), art::BeginEndPackage< Level::Run >::End::postScheduleSignal(), art::BeginEndPackage< Level::SubRun >::Begin::postScheduleSignal(), art::BeginEndPackage< Level::SubRun >::End::postScheduleSignal(), art::ProcessPackage< L >::preScheduleSignal(), art::BeginEndPackage< Level::Run >::Begin::preScheduleSignal(), art::BeginEndPackage< Level::SubRun >::Begin::preScheduleSignal(), art::EventProcessor::readEvent(), art::EventProcessor::readRun(), art::EmptyEvent::readRun_(), art::EventProcessor::readSubRun(), and art::EmptyEvent::readSubRun_().
|
protectedinherited |
Definition at line 89 of file Consumer.cc.
References fhicl::ParameterSet::get_if_present().
Referenced by art::EDProducer::doBeginJob(), art::EDFilter::doBeginJob(), and art::EDAnalyzer::doBeginJob().
|
virtual |
unique_ptr allows ownership to be transferred to the art::Event after the put statement
Implements art::EDProducer.
Definition at line 272 of file RadioGen_module.cc.
References simb::kSingleParticle, LOG_DEBUG, art::Event::put(), and simb::MCTruth::SetOrigin().
|
private |
Definition at line 439 of file RadioGen_module.cc.
void evgen::RadioGen::reconfigure | ( | fhicl::ParameterSet const & | p | ) |
Definition at line 199 of file RadioGen_module.cc.
References fhicl::ParameterSet::get().
|
private |
Definition at line 658 of file RadioGen_module.cc.
References art::RandomNumberGenerator::getEngine(), and x.
|
private |
Definition at line 295 of file RadioGen_module.cc.
References simb::MCTruth::Add(), simb::MCParticle::AddTrajectoryPoint(), energy, art::RandomNumberGenerator::getEngine(), part, and geo::GeometryCore::ROOTGeoManager().
|
private |
Definition at line 587 of file RadioGen_module.cc.
References e, and art::RandomNumberGenerator::getEngine().
|
protectedinherited |
Definition at line 125 of file Consumer.cc.
Referenced by art::EDProducer::doEndJob(), art::EDFilter::doEndJob(), art::EDAnalyzer::doEndJob(), and art::RootOutput::endJob().
|
protectedinherited |
Definition at line 101 of file Consumer.cc.
References art::errors::ProductRegistrationFailure.
|
private |
Definition at line 164 of file RadioGen_module.cc.
|
private |
Definition at line 163 of file RadioGen_module.cc.
|
private |
Definition at line 166 of file RadioGen_module.cc.
|
private |
Definition at line 165 of file RadioGen_module.cc.
|
private |
Radioactivity in Becquerels (decay per sec) per cubic cm.
Definition at line 141 of file RadioGen_module.cc.
|
private |
Definition at line 150 of file RadioGen_module.cc.
|
private |
List of regexes of materials in which to generate the decays. Example: "LAr".
Definition at line 140 of file RadioGen_module.cc.
|
private |
List of nuclides to simulate. Example: "39Ar".
Definition at line 139 of file RadioGen_module.cc.
|
private |
Beginning of time window to simulate in ns.
Definition at line 142 of file RadioGen_module.cc.
|
private |
End of time window to simulate in ns.
Definition at line 143 of file RadioGen_module.cc.
|
private |
Bottom corner x position (cm) in world coordinates.
Definition at line 144 of file RadioGen_module.cc.
|
private |
Top corner x position (cm) in world coordinates.
Definition at line 147 of file RadioGen_module.cc.
|
private |
Bottom corner y position (cm) in world coordinates.
Definition at line 145 of file RadioGen_module.cc.
|
private |
Top corner y position (cm) in world coordinates.
Definition at line 148 of file RadioGen_module.cc.
|
private |
Bottom corner z position (cm) in world coordinates.
Definition at line 146 of file RadioGen_module.cc.
|
private |
Top corner z position (cm) in world coordinates.
Definition at line 149 of file RadioGen_module.cc.
|
private |
Definition at line 168 of file RadioGen_module.cc.
|
private |
Definition at line 167 of file RadioGen_module.cc.
|
private |
Definition at line 159 of file RadioGen_module.cc.
|
private |
Definition at line 158 of file RadioGen_module.cc.
|
private |
Definition at line 160 of file RadioGen_module.cc.
|
private |
Definition at line 170 of file RadioGen_module.cc.
|
private |
Definition at line 169 of file RadioGen_module.cc.
|
private |
Definition at line 162 of file RadioGen_module.cc.
|
private |
Serial number for the MC track ID.
Definition at line 151 of file RadioGen_module.cc.