LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
art::EngineCreator Class Reference

#include "EngineCreator.h"

Inheritance diagram for art::EngineCreator:
art::EDAnalyzer art::EDFilter art::EDProducer caldata::CalWireAna caldata::DumpWires calo::PrintCalorimetry cheat::CheckBackTracking cheat::RecoCheckAna cluster::ClusterAna cluster::ClusterPCA cluster::DBclusterAna cluster::HoughLineFinderAna ClusteringValidation::ClusteringValidation detsim::DumpOpDetWaveforms detsim::DumpRawDigits detsim::SimWireAna detsim::WienerFilterAna DUNE::MuonTrackingEff DUNE::NeutrinoShowerEff DUNE::NeutrinoTrackingEff ems::MultiEMShowers evd::EVD evd::Landed geo::DumpChannelMap geo::DumpGeometry hit::DumpHits hit::GausHitFinderAna hit::HitAnaModule hit::HitFinderAna hit::MagDriftAna hit::MCHitAnaExample lar::ComputePi lar::example::AnalysisExample lar::example::Exploder lar_pandora::ConsolidatedPFParticleAnalysisTemplate lar_pandora::LArPandoraEventDump lar_pandora::PFParticleAnalysis lar_pandora::PFParticleCosmicAna lar_pandora::PFParticleHitDumper lar_pandora::PFParticleMonitoring lar_pandora::PFParticleTrackAna lar_pandora::PFParticleValidation larg4::ISCalculationAna larg4::LArG4Ana larg::LArSimChannelAna MCBTDemo microboone::CosmicRemovalAna opdet::FIFOHistogramAna opdet::FlashHypothesisAna opdet::FlashPurityCheckAna opdet::LEDCalibrationAna opdet::OpDigiAna opdet::OpFlashAna opdet::OpFlashMCTruthAna opdet::OpFlashSimpleAna opdet::OpHitAna opdet::SimPhotonCounter opdet::TrackTimeAssocAna opreco::OpticalRecoAna pfpf::PFPAna phot::CreateHybridLibrary phot::PhotonLibraryAnalyzer pid::PIDAAnalyzer pmtana::PMTAna reco3d::PlotSpacePoints recob::DumpChargedSpacePoints recob::DumpClusters recob::DumpPCAxes recob::DumpPFParticles recob::DumpSeeds recob::DumpSpacePoints recob::DumpTracks recob::DumpVertices RecoProxyUsageExample rwgt::ReweightAna ShowerQuality sim::DumpGTruth sim::DumpMCParticles sim::DumpMCShowers sim::DumpMCTracks sim::DumpMCTruth sim::DumpOpDetBacktrackerRecords sim::DumpSimChannels sim::DumpSimPhotons sim::DumpSimPhotonsLite trk::TrackContainmentAnalyzer trkf::SeedAna trkf::SpacePointAna trkf::TrackAna vertex::AggregateVertexAna vertex::FeatureVertexFinderAna wc::CellTree art::BlockingPrescaler art::EventIDFilter art::MixFilter< T > art::Prescaler cluster::SmallClusterFilter filt::EmptyFilter filt::FinalStateParticleFilter filt::FinalStateSelectFilter filt::LArG4ParticleFilter filter::ADCFilter filter::EventFilter filter::MuonFilter simfilter::FilterCryostatNus simfilter::FilterGenInTime simfilter::FilterNoDirtNeutrinos simfilter::FilterNoMCParticles simfilter::FilterPrimaryPDG simfilter::FilterSimPhotonTime simfilter::FilterStoppingMuon apa::APAHitFinder art::RandomNumberSaver art::TriggerResultInserter bogoblip::BlipMaker butcher::EventButcher caldata::CalWire caldata::CalWireT962 calo::BezierCalorimetry calo::Calorimetry calo::GeneralCalorimetry calo::TrackCalorimetry cheat::BackTrackerLoader cheat::PhotonBackTrackerLoader cluster::BlurredClustering cluster::ClusterCheater cluster::ClusterCrawler cluster::DBcluster cluster::EndPointModule cluster::fuzzyCluster cluster::FuzzyClusterMerger cluster::HoughLineFinder cluster::LineCluster cluster::LineMerger cluster::SimpleClusterMerger cluster::SmallClusterFinder cluster::TrajCluster cosmic::BeamFlashTrackMatchTagger cosmic::CosmicClusterTagger cosmic::CosmicPCAxisTagger cosmic::CosmicPFParticleTagger cosmic::CosmicTrackTagger cosmic::TrackPFParticleMatch CRHitRemoval CRHitRemovalByPCA detsim::SimDriftElectrons detsim::SimWire detsim::SimWireT962 ems::EMShower3D ems::MergeEMShower3D evd::GraphCluster event::AggregateEvent event::EventCheater event::EventMaker evgen::CORSIKAGen evgen::CosmicsGen evgen::FileMuons evgen::GaisserParam evgen::GENIEGen evgen::LightSource evgen::MarleyGen evgen::MarleyTimeGen evgen::MUSUN evgen::NDKGen evgen::NeutronOsc evgen::NUANCEGen evgen::NucleonDecay evgen::RadioGen evgen::SingleGen evgen::SNNueAr40CCGen evgen::TextFileGen evwgh::EventWeight hit::DisambigCheater hit::DPRawHitFinder hit::FFTHitFinder hit::GausHitFinder hit::HitCheater hit::HitFinder hit::MCHitFinder hit::RawHitFinder hit::RFFHitFinder hit::TTHitFinder lar::example::Disturbance lar::example::RemoveIsolatedSpacePoints lar::example::TotallyCheatTracker lar_cluster3d::Cluster3D lar_pandora::CollectionMerging lar_pandora::CollectionSplitting lar_pandora::ILArPandora lar_pandora::LArPandoraShowerCreation lar_pandora::LArPandoraTrackCreation larg4::LArG4 lbne::PhotonCounterT0Matching MCReco mvapid::MVAPID noisefilteralg::WireCellNoiseFilter opdet::BeamFlashCompatabilityCheck opdet::BoDataFrameInput opdet::FlashClusterMatch opdet::OpFlashFinder opdet::OpHitFinder opdet::OpMCDigi opdet::OptDetDigitizer opdet::OpticalRawDigitReformatter opdet::TrackTimeAssoc phot::PhotonLibraryPropagation pid::Chi2ParticleID raw::RecompressRawDigits reco3d::SpacePointSolver shower::EMShower ShowerReco3D shwf::ShowerCheater shwf::ShowerFinder shwf::ShowerReco sim::MergeSimSources spacecharge::ShiftEdepSCE sppt::TTSpacePointFinder t0::MCParticleHitMatching t0::MCParticleShowerMatching t0::MCParticleTrackMatching t0::MCTruthT0Matching ToyOneShowerGen TrackProducerFromPFParticle TrackProducerFromTrack TrackProducerFromTrackTrajectory trk::TrackContainmentTagger trkf::BezierTrackerModule trkf::CCTrackMaker trkf::CosmicTracker trkf::FeatureTracker trkf::KalmanFilterFinalTrackFitter trkf::KalmanFilterTrajectoryFitter trkf::MCSFitProducer trkf::PMAlgTrackMaker trkf::PMAlgTrajFitter trkf::SeedFinderModule trkf::SpacePointCheater trkf::SpacePointFinder trkf::SpacePts trkf::TCTrack trkf::Track3DKalman trkf::Track3DKalmanHit trkf::Track3DKalmanSPS trkf::Track3Dreco trkf::TrackCheater trkf::TrackKalmanCheater trkf::TrackStitcher trkf::VertexFitter tss::TrackShowerHits vertex::AggregateVertex vertex::CornerFinder vertex::FeatureVertexFinder vertex::HarrisVertexFinder vertex::PrimaryVertexFinder vertex::VertexCheater vertex::VertexFinder2D vertex::VertexMatch wc::MergeWireCell wcls::WireCellToolkit

Public Member Functions

base_engine_tcreateEngine (seed_t seed)
 
base_engine_tcreateEngine (seed_t seed, std::string const &kind_of_engine_to_make)
 
base_engine_tcreateEngine (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)
 

Private Types

using RNGservice = RandomNumberGenerator
 
using label_t = RNGservice::label_t
 
using seed_t = RNGservice::seed_t
 
using base_engine_t = RNGservice::base_engine_t
 

Static Private Member Functions

static art::ServiceHandle< art::RandomNumberGenerator > & rng ()
 

Detailed Description

Definition at line 35 of file EngineCreator.h.

Member Typedef Documentation

Definition at line 37 of file EngineCreator.h.

Definition at line 36 of file EngineCreator.h.

Definition at line 38 of file EngineCreator.h.

Member Function Documentation

EngineCreator::base_engine_t & EngineCreator::createEngine ( seed_t  seed,
std::string const &  kind_of_engine_to_make 
)

Definition at line 32 of file EngineCreator.cc.

References rng().

34 {
35  return rng()->createEngine(
36  placeholder_schedule_id(), seed, kind_of_engine_to_make);
37 }
long seed
Definition: chem4.cc:68
static art::ServiceHandle< art::RandomNumberGenerator > & rng()
EngineCreator::base_engine_t & EngineCreator::createEngine ( seed_t  seed,
std::string const &  kind_of_engine_to_make,
label_t const &  engine_label 
)

Definition at line 40 of file EngineCreator.cc.

References rng().

43 {
44  return rng()->createEngine(
45  placeholder_schedule_id(), seed, kind_of_engine_to_make, engine_label);
46 }
long seed
Definition: chem4.cc:68
static art::ServiceHandle< art::RandomNumberGenerator > & rng()
EngineCreator::seed_t EngineCreator::get_seed_value ( fhicl::ParameterSet const &  pset,
char const  key[] = "seed",
seed_t const  implicit_seed = -1 
)

Definition at line 49 of file EngineCreator.cc.

References fhicl::ParameterSet::get().

Referenced by art::MixFilter< T >::initEngine_().

52 {
53  auto const& explicit_seeds = pset.get<std::vector<int>>(key, {});
54  return explicit_seeds.empty() ? implicit_seed : explicit_seeds.front();
55 }

The documentation for this class was generated from the following files: