Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
art::detail::Producer Class Referenceabstract

#include <Producer.h>

Inheritance diagram for art::detail::Producer:
art::Modifier art::ModuleBase art::ProductRegistryHelper art::EDProducer art::ReplicatedProducer art::SharedProducer apa::APAHitFinder art::test::CollidingDummyProducer art::test::DummyProducer arttest::IntVectorProducer arttest::PMTestProducer bogoblip::BlipMaker butcher::EventButcher caldata::CalWire caldata::CalWireDUNE10kt caldata::CalWireDUNE35t caldata::CalWireDUNEDPhase caldata::CalWireT962 calgaushf::CalGausHFDUNE10kt calgaushf::CalGausHFDUNE35t calo::Calorimetry calo::GnocchiCalorimetry calo::ShowerCalorimetry calo::TrackCalorimetry cheat::BackTrackerLoader cheat::PhotonBackTrackerLoader cluster::BlurredClustering cluster::ClusterCheater cluster::ClusterCrawler cluster::DBcluster cluster::DBCluster3D cluster::EndPointModule cluster::HoughLineFinder cluster::LineCluster cluster::LineMerger cluster::SmallClusterFinder cluster::TrajCluster cnn::RegCNNEvaluator cnn::RegCNNMapper cnn::RegCNNPyTorch cosmic::BeamFlashTrackMatchTagger cosmic::CosmicClusterTagger cosmic::CosmicPCAxisTagger cosmic::CosmicPFParticleTagger cosmic::CosmicTrackTagger cosmic::TrackPFParticleMatch CRHitRemoval CRHitRemovalByPCA CRT::CRTRawDecoder CRT::CRTSim CRT::CRTSimRefac CRT::SingleCRTMatchingProducer CRT::TwoCRTMatchingProducer ctp::CTPEvaluator cvn::CVNEvaluator cvn::CVNMapper cvn::CVNMapperProtoDUNE cvn::CVNMapperSim cvn::CVNMapperWire cvn::CVNSparseMapper cvn::CVNSparseMapper3D cvn::GCNGraphMaker cvn::GCNGraphMaker2D cvn::GCNGraphMakerProtoDUNE cvn::GCNHitGraphMaker DataPrepByApaModule DataPrepModule deconvgaushf::DeconvGausHFDUNE10kt deconvgaushf::DeconvGausHFDUNE35t detsim::DriftElectronstoPlane detsim::SimDriftElectrons detsim::SimWire detsim::SimWireDUNE10kt detsim::SimWireDUNE35t dune::CalibrationdEdXPDSP dune::DisambigFromSpacePoints dune::EmLikeHits dune::EnergyReco dune::FelixRawDecoder dune::HitFinder35t dune::HitFinderProtoDUNESP dune::HitRepeater dune::RceRawDecoder dune::SSPRawDecoder dune::T0Counter dune::TimingRawDecoder dune::VDColdboxPDSDecoder dunefd::IniSegReco dunefd::ShSeg dunemva::MVASelect ems::EMShower3D evd::GraphCluster event::EventCheater EventGen::ImportSingle311Event evgen::CORSIKAGen evgen::CosmicsGen evgen::CRTGen evgen::FileMuons evgen::GaisserParam evgen::GENIEGen evgen::LightSource evgen::MarleyGen evgen::MarleyTimeGen evgen::MUSUN evgen::NDKGen evgen::NeutronOsc evgen::NucleonDecay evgen::NuEScatterGen evgen::NuEScatterGen evgen::NuWroGen evgen::ProtoDUNEBeam evgen::ProtoDUNETriggeredBeam evgen::RadioGen evgen::SingleGen evgen::SNNueAr40CCGen evgen::TextFileGen evgendp::CORSIKAGendp evgendp::DataGen311 evgendp::Gen311 evgendp::NEUTImport evwgh::EventWeight gar::evgen::CosmicsGen gar::evgen::GENIEGen gar::evgen::RadioGen gar::evgen::SingleGen gar::evgen::TextFileGen gar::gar_pandora::PandoraInterface gar::garg4::GArG4 gar::rec::CaloClusterCheater gar::rec::CaloClustering gar::rec::CaloStripSplitter gar::rec::CompressedHitFinder gar::rec::dayoneconverter gar::rec::dayonetrackfit gar::rec::dayonetrackfit gar::rec::EventInit gar::rec::SiPMHitFinder gar::rec::tpccathodestitch gar::rec::TPCECALAssociation gar::rec::TPCHitCluster gar::rec::tpcpatrec2 gar::rec::tpcpatrec2 gar::rec::tpcpatreccheat gar::rec::tpctrackfit2 gar::rec::tpcvechitfinder2 gar::rec::tracker1 gar::rec::veefinder1 gar::rec::vertexfinder1 gar::rosim::IonizationReadout gar::rosim::SiPMReadout geo::LegacyGeometryInfoWriter hit::DisambigCheater hit::DPRawHitFinder hit::FFTHitFinder hit::HitCheater hit::HitFinder hit::MCHitFinder hit::RawHitFinder hit::RFFHitFinder hit::TTHitFinder HitHandScan IcebergFELIXBufferDecoderMarch2021 IcebergTPCRawDecoder Infill::InfillChannels lar::example::Disturbance lar::example::RemoveIsolatedSpacePoints lar::example::tests::ParticleMaker lar::example::tests::SpacePointMaker lar::example::TotallyCheatTracker lar::test::AssnsChainClusterMaker lar::test::AssnsChainHitMaker lar::test::AssnsChainPFParticleMaker lar::test::AssnsChainShowerMaker lar::test::ChargedSpacePointProxyInputMaker lar::test::TrackProxyHitMaker lar::test::TrackProxyTrackMaker lar_cluster3d::Cluster3D lar_pandora::CollectionSplitting lar_pandora::ILArPandora lar_pandora::LArPandoraExternalEventBuilding lar_pandora::LArPandoraShowerCreation lar_pandora::LArPandoraTrackCreation larg4::IonAndScint larg4::LArG4 larg4::larg4Main lartest::AssnProducer1 lartest::AssnProducer2 lartest::PtrMakerProducer lbne::PhotonCounterT0Matching MCReco mvapid::MVAPID nnet::EmTrackClusterId nnet::EmTrackClusterId2out nnet::EmTrackClusterId2outTl nnet::EmTrackClusterId3outTl nnet::EmTrackMichelId nnet::EmTrackMichelIdTl nnet::ParticleDecayId nnet::WaveformRoiFinder NoiseAdder noisefilteralg::WireCellNoiseFilter opdet::OpDetDigitizerDUNE opdet::OpDetDigitizerDUNEDP opdet::OpDetDigitizerProtoDUNE opdet::OpFlashFinder opdet::OpFlashFinderDualPhase opdet::OpHitFinder opdet::OpMCDigi opdet::OpSlicer opdet::OptDetDigitizer opdet::OpticalRawDigitReformatter opdet::PDSNoiseFilter opdet::SIPMOpSensorSim opdet::WaveformDigitizerSim pdsp::HadronHitsRemoval pdsp::ProtonHitsRemoval pdsp::TrueEdep PDSPCTBRawDecoder PDSPDataDrivenBeam PDSPTPCRawDecoder phot::PDFastSimPAR phot::PDFastSimPVS phot::PhotonLibraryPropagation phot::PhotonLibraryPropagationS2 pid::Chi2ParticleID proto::BeamEvent PtrMakerProducer2 quad::QuadVtx reco3d::SpacePointSolver reco::shower::LArPandoraModularShowerCreation recob::test::HitCollectionCreatorTest RunningSumTPFinder sce::SCECorrection shower::EMShower shower::TCShower ShowerReco3D shs::ShowerHitSeparator shwf::ShowerCheater shwf::ShowerFinder shwf::ShowerReco sim::GenericCRT sim::MergeSimSources SimWireDUNE spacecharge::ShiftEdepSCE sppt::TTSpacePointFinder t0::MCParticleHitMatching t0::MCParticleShowerMatching t0::MCParticleTrackMatching t0::MCTruthT0Matching T0RecoAnodePiercers TrackProducerFromPFParticle TrackProducerFromTrack TrackProducerFromTrackTrajectory TriggerPrimitiveFinder triggersim::ActivityTriggerProd triggersim::TemplateTriggerProd trk::TrackContainmentTagger 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 unstick::UnstickADCCodes util::ConvertEdep2Art vertex::FeatureVertexFinder vertex::PrimaryVertexFinder vertex::VertexCheater vertex::VertexFinder2D VLN::VLNEnergyProducer art::TriggerResultInserter art::RandomNumberSaver hit::GausHitFinder wcls::WireCellToolkit

Public Types

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 >
 

Public Member Functions

virtual ~Producer () noexcept
 
 Producer (fhicl::ParameterSet const &)
 
 Producer (Producer const &)=delete
 
 Producer (Producer &&)=delete
 
Produceroperator= (Producer const &)=delete
 
Produceroperator= (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
 
Modifieroperator= (Modifier const &)=delete
 
Modifieroperator= (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 &current_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

virtual void setupQueues (SharedResources const &)=0
 
virtual void beginJobWithFrame (ProcessingFrame const &)=0
 
virtual void endJobWithFrame (ProcessingFrame const &)=0
 
virtual void respondToOpenInputFileWithFrame (FileBlock const &, ProcessingFrame const &)=0
 
virtual void respondToCloseInputFileWithFrame (FileBlock const &, ProcessingFrame const &)=0
 
virtual void respondToOpenOutputFilesWithFrame (FileBlock const &, ProcessingFrame const &)=0
 
virtual void respondToCloseOutputFilesWithFrame (FileBlock const &, ProcessingFrame const &)=0
 
virtual void beginRunWithFrame (Run &, ProcessingFrame const &)=0
 
virtual void endRunWithFrame (Run &, ProcessingFrame const &)=0
 
virtual void beginSubRunWithFrame (SubRun &, ProcessingFrame const &)=0
 
virtual void endSubRunWithFrame (SubRun &, ProcessingFrame const &)=0
 
virtual void produceWithFrame (Event &, ProcessingFrame const &)=0
 

Private Attributes

bool const checkPutProducts_
 

Additional Inherited Members

- Protected Member Functions inherited from art::ModuleBase
ConsumesCollectorconsumesCollector ()
 
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 ()
 

Detailed Description

Definition at line 22 of file Producer.h.

Member Typedef Documentation

template<typename UserConfig , typename KeysToIgnore = void>
using art::detail::Producer::Table = Modifier::Table<UserConfig, KeysToIgnore>

Definition at line 25 of file Producer.h.

Constructor & Destructor Documentation

art::detail::Producer::~Producer ( )
virtualdefaultnoexcept
art::detail::Producer::Producer ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 17 of file Producer.cc.

18  : checkPutProducts_{pset.get<bool>("errorOnFailureToPut", true)}
19  {}
bool const checkPutProducts_
Definition: Producer.h:69
art::detail::Producer::Producer ( Producer const &  )
delete
art::detail::Producer::Producer ( Producer &&  )
delete

Member Function Documentation

virtual void art::detail::Producer::beginJobWithFrame ( ProcessingFrame const &  )
privatepure virtual
virtual void art::detail::Producer::beginRunWithFrame ( Run ,
ProcessingFrame const &   
)
privatepure virtual
virtual void art::detail::Producer::beginSubRunWithFrame ( SubRun ,
ProcessingFrame const &   
)
privatepure virtual
void art::detail::Producer::doBeginJob ( SharedResources const &  resources)

Definition at line 22 of file Producer.cc.

23  {
24  setupQueues(resources);
25  ProcessingFrame const frame{ScheduleID{}};
26  beginJobWithFrame(frame);
27  }
virtual void setupQueues(SharedResources const &)=0
virtual void beginJobWithFrame(ProcessingFrame const &)=0
bool art::detail::Producer::doBeginRun ( RunPrincipal rp,
ModuleContext const &  mc 
)

Definition at line 65 of file Producer.cc.

66  {
67  Run r{rp, mc, RangeSet::forRun(rp.runID())};
68  ProcessingFrame const frame{mc.scheduleID()};
69  beginRunWithFrame(r, frame);
70  r.movePutProductsToPrincipal(rp);
71  return true;
72  }
virtual void beginRunWithFrame(Run &, ProcessingFrame const &)=0
static RangeSet forRun(RunID)
Definition: RangeSet.cc:51
bool art::detail::Producer::doBeginSubRun ( SubRunPrincipal srp,
ModuleContext const &  mc 
)

Definition at line 85 of file Producer.cc.

86  {
87  SubRun sr{srp, mc, RangeSet::forSubRun(srp.subRunID())};
88  ProcessingFrame const frame{mc.scheduleID()};
89  beginSubRunWithFrame(sr, frame);
90  sr.movePutProductsToPrincipal(srp);
91  return true;
92  }
virtual void beginSubRunWithFrame(SubRun &, ProcessingFrame const &)=0
static RangeSet forSubRun(SubRunID)
Definition: RangeSet.cc:57
static constexpr double sr
Definition: Units.h:166
void art::detail::Producer::doEndJob ( )

Definition at line 30 of file Producer.cc.

31  {
32  ProcessingFrame const frame{ScheduleID{}};
33  endJobWithFrame(frame);
34  }
virtual void endJobWithFrame(ProcessingFrame const &)=0
bool art::detail::Producer::doEndRun ( RunPrincipal rp,
ModuleContext const &  mc 
)

Definition at line 75 of file Producer.cc.

76  {
77  Run r{rp, mc, rp.seenRanges()};
78  ProcessingFrame const frame{mc.scheduleID()};
79  endRunWithFrame(r, frame);
80  r.movePutProductsToPrincipal(rp);
81  return true;
82  }
virtual void endRunWithFrame(Run &, ProcessingFrame const &)=0
bool art::detail::Producer::doEndSubRun ( SubRunPrincipal srp,
ModuleContext const &  mc 
)

Definition at line 95 of file Producer.cc.

96  {
97  SubRun sr{srp, mc, srp.seenRanges()};
98  ProcessingFrame const frame{mc.scheduleID()};
99  endSubRunWithFrame(sr, frame);
100  sr.movePutProductsToPrincipal(srp);
101  return true;
102  }
virtual void endSubRunWithFrame(SubRun &, ProcessingFrame const &)=0
static constexpr double sr
Definition: Units.h:166
bool art::detail::Producer::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 
)

Definition at line 105 of file Producer.cc.

110  {
111  Event e{ep, mc};
112  ++counts_run;
113  ProcessingFrame const frame{mc.scheduleID()};
114  produceWithFrame(e, frame);
115  e.movePutProductsToPrincipal(
116  ep, checkPutProducts_, &expectedProducts<InEvent>());
117  ++counts_passed;
118  return true;
119  }
bool const checkPutProducts_
Definition: Producer.h:69
const double e
Definition: types.h:32
virtual void produceWithFrame(Event &, ProcessingFrame const &)=0
void art::detail::Producer::doRespondToCloseInputFile ( FileBlock const &  fb)

Definition at line 44 of file Producer.cc.

45  {
46  ProcessingFrame const frame{ScheduleID{}};
48  }
virtual void respondToCloseInputFileWithFrame(FileBlock const &, ProcessingFrame const &)=0
void art::detail::Producer::doRespondToCloseOutputFiles ( FileBlock const &  fb)

Definition at line 58 of file Producer.cc.

59  {
60  ProcessingFrame const frame{ScheduleID{}};
62  }
virtual void respondToCloseOutputFilesWithFrame(FileBlock const &, ProcessingFrame const &)=0
void art::detail::Producer::doRespondToOpenInputFile ( FileBlock const &  fb)

Definition at line 37 of file Producer.cc.

38  {
39  ProcessingFrame const frame{ScheduleID{}};
41  }
virtual void respondToOpenInputFileWithFrame(FileBlock const &, ProcessingFrame const &)=0
void art::detail::Producer::doRespondToOpenOutputFiles ( FileBlock const &  fb)

Definition at line 51 of file Producer.cc.

52  {
53  ProcessingFrame const frame{ScheduleID{}};
55  }
virtual void respondToOpenOutputFilesWithFrame(FileBlock const &, ProcessingFrame const &)=0
virtual void art::detail::Producer::endJobWithFrame ( ProcessingFrame const &  )
privatepure virtual
virtual void art::detail::Producer::endRunWithFrame ( Run ,
ProcessingFrame const &   
)
privatepure virtual
virtual void art::detail::Producer::endSubRunWithFrame ( SubRun ,
ProcessingFrame const &   
)
privatepure virtual
Producer& art::detail::Producer::operator= ( Producer const &  )
delete
Producer& art::detail::Producer::operator= ( Producer &&  )
delete
virtual void art::detail::Producer::produceWithFrame ( Event ,
ProcessingFrame const &   
)
privatepure virtual
virtual void art::detail::Producer::respondToCloseInputFileWithFrame ( FileBlock const &  ,
ProcessingFrame const &   
)
privatepure virtual
virtual void art::detail::Producer::respondToCloseOutputFilesWithFrame ( FileBlock const &  ,
ProcessingFrame const &   
)
privatepure virtual
virtual void art::detail::Producer::respondToOpenInputFileWithFrame ( FileBlock const &  ,
ProcessingFrame const &   
)
privatepure virtual
virtual void art::detail::Producer::respondToOpenOutputFilesWithFrame ( FileBlock const &  ,
ProcessingFrame const &   
)
privatepure virtual
virtual void art::detail::Producer::setupQueues ( SharedResources const &  )
privatepure virtual

Member Data Documentation

bool const art::detail::Producer::checkPutProducts_
private

Definition at line 69 of file Producer.h.


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