LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Public Types | |
using | Parameters = art::EDProducer::Table< evg::AddGenieEventsToArtParams > |
using | ModuleType = EDProducer |
template<typename UserConfig , typename KeysToIgnore = void> | |
using | Table = Modifier::Table< UserConfig, KeysToIgnore > |
Public Member Functions | |
AddGenieEventsToArt (const Parameters &p) | |
~AddGenieEventsToArt () | |
AddGenieEventsToArt (AddGenieEventsToArt const &)=delete | |
AddGenieEventsToArt (AddGenieEventsToArt &&)=delete | |
AddGenieEventsToArt & | operator= (AddGenieEventsToArt const &)=delete |
AddGenieEventsToArt & | operator= (AddGenieEventsToArt &&)=delete |
void | produce (art::Event &e) override |
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) |
void | fillProductDescriptions () |
void | registerProducts (ProductDescriptions &productsToRegister) |
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) |
std::unique_ptr< Worker > | makeWorker (WorkerParams const &wp) |
template<typename T , BranchType BT> | |
ViewToken< T > | consumesView (InputTag const &tag) |
template<typename T , BranchType BT> | |
ViewToken< T > | mayConsumeView (InputTag const &tag) |
Protected Member Functions | |
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 () |
Private Types | |
enum | EDistrib { kUnknownDist, kFixed, kFlat, kPoisson, kPoissonMinus1, kGaussian, kRootino } |
typedef enum evg::AddGenieEventsToArt::EDistrib | RndDist_t |
Private Member Functions | |
void | ParseCountConfig () |
size_t | GetNumToAdd () const |
void | ParseTimeConfig () |
void | ParseVtxOffsetConfig () |
Private Attributes | |
Parameters | fParams |
std::vector< std::string > | fFileList |
double | fGlobalTimeOffset |
evgb::EvtTimeShiftI * | fTimeShifter |
double | fXlo |
double | fYlo |
double | fZlo |
double | fXhi |
double | fYhi |
double | fZhi |
bool | fAddMCFlux |
bool | fRandomEntries |
std::string | fMyModuleType |
std::string | fMyModuleLabel |
int | fOutputPrintLevel |
std::string | fOutputDumpFileName |
std::ostream * | fOutputStream |
std::string | fDistName |
RndDist_t | fRndDist |
double | fRndP1 |
double | fRndP2 |
TChain * | fGTreeChain |
genie::NtpMCEventRecord * | fMCRec |
size_t | fNumMCRec |
size_t | fLastUsedMCRec |
genie::flux::GNuMIFluxPassThroughInfo * | fGNuMIFluxPassThroughInfo |
genie::flux::GSimpleNtpEntry * | fGSimpleNtpEntry |
genie::flux::GSimpleNtpNuMI * | fGSimpleNtpNuMI |
genie::flux::GSimpleNtpAux * | fGSimpleNtpAux |
bsim::Dk2Nu * | fDk2Nu |
bsim::NuChoice * | fNuChoice |
unsigned int const | fSeed |
CLHEP::HepRandomEngine & | fEngine |
Definition at line 193 of file AddGenieEventsToArt_module.cc.
|
inherited |
Definition at line 17 of file EDProducer.h.
Definition at line 197 of file AddGenieEventsToArt_module.cc.
|
private |
|
inherited |
Definition at line 26 of file Producer.h.
|
private |
Enumerator | |
---|---|
kUnknownDist | |
kFixed | |
kFlat | |
kPoisson | |
kPoissonMinus1 | |
kGaussian | |
kRootino |
Definition at line 233 of file AddGenieEventsToArt_module.cc.
|
explicit |
gtree->GetBranch("flux")->GetClassName() (const char* 0x31f41c0)"genie::flux::GNuMIFluxPassThroughInfo"
gtree->GetBranch("simple")->GetClassName() (const char* 0x2a2a8e0)"genie::flux::GSimpleNtpEntry" gtree->GetBranch("numi")->GetClassName() (const char* 0x2a33d40)"genie::flux::GSimpleNtpNuMI gtree->GetBranch("aux")->GetClassName() (const char* 0x2a35320)"genie::flux::GSimpleNtpAux"
gtree->GetBranch("dk2nu")->GetClassName() (const char* 0x3457d59)"bsim::Dk2Nu" gtree->GetBranch("nuchoice")->GetClassName() (const char* 0x3479329)"bsim::NuChoice"
Definition at line 299 of file AddGenieEventsToArt_module.cc.
References art::detail::EngineCreator::createEngine(), fAddMCFlux, fDk2Nu, fEngine, fFileList, fGlobalTimeOffset, fGNuMIFluxPassThroughInfo, fGSimpleNtpAux, fGSimpleNtpEntry, fGSimpleNtpNuMI, fGTreeChain, fLastUsedMCRec, fMCRec, fMyModuleLabel, fMyModuleType, fNuChoice, fNumMCRec, fOutputDumpFileName, fOutputPrintLevel, fOutputStream, fParams, fRandomEntries, fSeed, art::ProducerTable< UserConfig, ImplicitConfig, UserKeysToIgnore >::get_PSet(), evgb::GetRandomNumberSeed(), ParseCountConfig(), ParseTimeConfig(), and ParseVtxOffsetConfig().
evg::AddGenieEventsToArt::~AddGenieEventsToArt | ( | ) |
Definition at line 497 of file AddGenieEventsToArt_module.cc.
References fGTreeChain, fOutputDumpFileName, and fOutputStream.
|
delete |
|
delete |
|
protectedinherited |
Definition at line 61 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::consumes().
|
protectedinherited |
|
protectedinherited |
Definition at line 75 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::consumesMany().
|
protectedinherited |
|
inherited |
Definition at line 68 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::consumesView().
|
inherited |
Definition at line 22 of file Producer.cc.
References art::detail::Producer::beginJobWithFrame(), and art::detail::Producer::setupQueues().
|
inherited |
Definition at line 65 of file Producer.cc.
References art::detail::Producer::beginRunWithFrame(), art::RangeSet::forRun(), art::RunPrincipal::makeRun(), r, art::RunPrincipal::runID(), and art::ModuleContext::scheduleID().
|
inherited |
Definition at line 85 of file Producer.cc.
References art::detail::Producer::beginSubRunWithFrame(), art::RangeSet::forSubRun(), art::SubRunPrincipal::makeSubRun(), art::ModuleContext::scheduleID(), and art::SubRunPrincipal::subRunID().
|
inherited |
Definition at line 30 of file Producer.cc.
References art::detail::Producer::endJobWithFrame().
|
inherited |
Definition at line 75 of file Producer.cc.
References art::detail::Producer::endRunWithFrame(), art::RunPrincipal::makeRun(), r, art::ModuleContext::scheduleID(), and art::Principal::seenRanges().
|
inherited |
Definition at line 95 of file Producer.cc.
References art::detail::Producer::endSubRunWithFrame(), art::SubRunPrincipal::makeSubRun(), art::ModuleContext::scheduleID(), and art::Principal::seenRanges().
|
inherited |
Definition at line 105 of file Producer.cc.
References art::detail::Producer::checkPutProducts_, e, art::EventPrincipal::makeEvent(), art::detail::Producer::produceWithFrame(), and art::ModuleContext::scheduleID().
|
inherited |
Definition at line 44 of file Producer.cc.
References art::detail::Producer::respondToCloseInputFileWithFrame().
|
inherited |
Definition at line 58 of file Producer.cc.
References art::detail::Producer::respondToCloseOutputFilesWithFrame().
|
inherited |
Definition at line 37 of file Producer.cc.
References art::detail::Producer::respondToOpenInputFileWithFrame().
|
inherited |
Definition at line 51 of file Producer.cc.
References art::detail::Producer::respondToOpenOutputFilesWithFrame().
|
inherited |
Definition at line 10 of file Modifier.cc.
References art::ProductRegistryHelper::fillDescriptions(), and art::ModuleBase::moduleDescription().
|
inherited |
Definition at line 43 of file ModuleBase.cc.
References art::ModuleBase::collector_, and art::ConsumesCollector::getConsumables().
|
private |
Definition at line 842 of file AddGenieEventsToArt_module.cc.
References fEngine, fParams, fRndDist, fRndP1, fRndP2, kFixed, kFlat, kGaussian, kPoisson, kPoissonMinus1, kRootino, and tmp.
Referenced by produce().
|
inherited |
Definition at line 37 of file ModuleBase.cc.
References art::ModuleBase::doMakeWorker(), and art::NumBranchTypes.
|
protectedinherited |
Definition at line 82 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsume().
|
protectedinherited |
Definition at line 96 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsumeMany().
|
protectedinherited |
|
inherited |
Definition at line 89 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsumeView().
|
inherited |
Definition at line 13 of file ModuleBase.cc.
References art::errors::LogicError.
Referenced by art::OutputModule::doRespondToOpenInputFile(), art::OutputModule::doWriteEvent(), art::Modifier::fillProductDescriptions(), art::OutputModule::makePlugins_(), art::OutputWorker::OutputWorker(), reco::shower::LArPandoraModularShowerCreation::produce(), art::Modifier::registerProducts(), and art::OutputModule::registerProducts().
|
delete |
|
delete |
|
private |
Definition at line 723 of file AddGenieEventsToArt_module.cc.
References fDistName, fEngine, fMyModuleLabel, fParams, fRandomEntries, fRndDist, fRndP1, fRndP2, kFixed, kFlat, kGaussian, kPoisson, kPoissonMinus1, and kRootino.
Referenced by AddGenieEventsToArt().
|
private |
Definition at line 928 of file AddGenieEventsToArt_module.cc.
References fMyModuleLabel, fParams, fTimeShifter, evgb::EvtTimeShiftFactory::GetEvtTimeShift(), evgb::EvtTimeShiftFactory::Instance(), evgb::EvtTimeShiftFactory::Print(), and evgb::EvtTimeShiftI::PrintConfig().
Referenced by AddGenieEventsToArt().
|
private |
Definition at line 966 of file AddGenieEventsToArt_module.cc.
References DEFINE_ART_MODULE, fMyModuleLabel, fParams, fXhi, fXlo, fYhi, fYlo, fZhi, and fZlo.
Referenced by AddGenieEventsToArt().
|
overridevirtual |
Implements art::EDProducer.
Definition at line 515 of file AddGenieEventsToArt_module.cc.
References evgb::util::CreateAssn(), fAddMCFlux, fDistName, fDk2Nu, fEngine, fGlobalTimeOffset, fGNuMIFluxPassThroughInfo, fGSimpleNtpAux, fGSimpleNtpEntry, fGSimpleNtpNuMI, fGTreeChain, evgb::FillGTruth(), evgb::FillMCFlux(), evgb::FillMCTruth(), fLastUsedMCRec, fMCRec, fNuChoice, fNumMCRec, fOutputPrintLevel, fOutputStream, fParams, fRandomEntries, fRndDist, fTimeShifter, fXhi, fXlo, fYhi, fYlo, fZhi, fZlo, GetNumToAdd(), kRootino, n, art::Event::put(), and evgb::EvtTimeShiftI::TimeOffset().
|
inherited |
Definition at line 16 of file Modifier.cc.
References art::ModuleBase::moduleDescription(), and art::ProductRegistryHelper::registerProducts().
|
inherited |
|
inherited |
Definition at line 49 of file ModuleBase.cc.
References art::ModuleBase::collector_, and art::ConsumesCollector::sortConsumables().
|
private |
Definition at line 260 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), and produce().
|
private |
Definition at line 272 of file AddGenieEventsToArt_module.cc.
Referenced by ParseCountConfig(), and produce().
|
private |
Definition at line 290 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), and produce().
|
private |
Definition at line 293 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), GetNumToAdd(), ParseCountConfig(), and produce().
|
private |
Definition at line 251 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt().
|
private |
Definition at line 252 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), and produce().
|
private |
Definition at line 284 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), and produce().
|
private |
Definition at line 288 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), and produce().
|
private |
Definition at line 286 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), and produce().
|
private |
Definition at line 287 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), and produce().
|
private |
Definition at line 277 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), produce(), and ~AddGenieEventsToArt().
|
private |
Definition at line 280 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), and produce().
|
private |
Definition at line 278 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), and produce().
|
private |
Definition at line 264 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), ParseCountConfig(), ParseTimeConfig(), and ParseVtxOffsetConfig().
|
private |
Definition at line 263 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt().
|
private |
Definition at line 291 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), and produce().
|
private |
Definition at line 279 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), and produce().
|
private |
Definition at line 266 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), and ~AddGenieEventsToArt().
|
private |
Definition at line 265 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), and produce().
|
private |
Definition at line 269 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), produce(), and ~AddGenieEventsToArt().
|
private |
Definition at line 247 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), GetNumToAdd(), ParseCountConfig(), ParseTimeConfig(), ParseVtxOffsetConfig(), and produce().
|
private |
Definition at line 261 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt(), ParseCountConfig(), and produce().
|
private |
Definition at line 273 of file AddGenieEventsToArt_module.cc.
Referenced by GetNumToAdd(), ParseCountConfig(), and produce().
|
private |
Definition at line 274 of file AddGenieEventsToArt_module.cc.
Referenced by GetNumToAdd(), and ParseCountConfig().
|
private |
Definition at line 275 of file AddGenieEventsToArt_module.cc.
Referenced by GetNumToAdd(), and ParseCountConfig().
|
private |
Definition at line 292 of file AddGenieEventsToArt_module.cc.
Referenced by AddGenieEventsToArt().
|
private |
Definition at line 253 of file AddGenieEventsToArt_module.cc.
Referenced by ParseTimeConfig(), and produce().
|
private |
Definition at line 257 of file AddGenieEventsToArt_module.cc.
Referenced by ParseVtxOffsetConfig(), and produce().
|
private |
Definition at line 254 of file AddGenieEventsToArt_module.cc.
Referenced by ParseVtxOffsetConfig(), and produce().
|
private |
Definition at line 258 of file AddGenieEventsToArt_module.cc.
Referenced by ParseVtxOffsetConfig(), and produce().
|
private |
Definition at line 255 of file AddGenieEventsToArt_module.cc.
Referenced by ParseVtxOffsetConfig(), and produce().
|
private |
Definition at line 259 of file AddGenieEventsToArt_module.cc.
Referenced by ParseVtxOffsetConfig(), and produce().
|
private |
Definition at line 256 of file AddGenieEventsToArt_module.cc.
Referenced by ParseVtxOffsetConfig(), and produce().