Public Types | Public Member Functions | List of all members
arttest::ImplicitRSAssigmentProducer Class Reference
Inheritance diagram for arttest::ImplicitRSAssigmentProducer:
art::EDProducer art::detail::Producer art::detail::LegacyModule art::Modifier art::ModuleBase art::ProductRegistryHelper

Public Types

using Parameters = art::EDProducer::Table< Config >
 
- 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 >
 

Public Member Functions

 ImplicitRSAssigmentProducer (Parameters const &ps)
 
void beginRun (art::Run &r) override
 
void beginSubRun (art::SubRun &sr) override
 
void produce (art::Event &) override
 
void endSubRun (art::SubRun &sr) override
 
void endRun (art::Run &r) override
 
- Public Member Functions inherited from art::EDProducer
 EDProducer ()=default
 
 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 ()
 
 Producer (fhicl::ParameterSet const &)
 
 Producer (Producer const &)=delete
 
 Producer (Producer &&)=delete
 
Produceroperator= (Producer const &)=delete
 
Produceroperator= (Producer &&)=delete
 
void doBeginJob ()
 
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
virtual ~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 &)
 
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 ()
 
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)
 

Additional Inherited Members

- Static Public Member Functions inherited from art::EDProducer
static void commitEvent (EventPrincipal &ep, Event &e)
 

Detailed Description

Definition at line 80 of file ImplicitRSAssignmentProducer_module.cc.

Member Typedef Documentation

Definition at line 82 of file ImplicitRSAssignmentProducer_module.cc.

Constructor & Destructor Documentation

arttest::ImplicitRSAssigmentProducer::ImplicitRSAssigmentProducer ( Parameters const &  ps)
inlineexplicit

Definition at line 83 of file ImplicitRSAssignmentProducer_module.cc.

83  : EDProducer{ps}
84  {
85  produces<unsigned, art::InRun>("bgnRunNum");
86  produces<unsigned, art::InRun>("bgnRunDenom");
87  produces<unsigned, art::InRun>("bgnRunGarbage1");
88  produces<unsigned, art::InRun>("bgnRunGarbage2");
89  produces<unsigned, art::InRun>("endRunNum");
90  produces<unsigned, art::InRun>("endRunDenom");
91 
92  produces<unsigned, art::InSubRun>("bgnSubRunNum");
93  produces<unsigned, art::InSubRun>("bgnSubRunDenom");
94  produces<unsigned, art::InSubRun>("bgnSubRunGarbage1");
95  produces<unsigned, art::InSubRun>("bgnSubRunGarbage2");
96  produces<unsigned, art::InSubRun>("endSubRunNum");
97  produces<unsigned, art::InSubRun>("endSubRunDenom");
98  }
static const double ps
Definition: Units.h:103
EDProducer()=default

Member Function Documentation

void arttest::ImplicitRSAssigmentProducer::beginRun ( art::Run r)
inlineoverridevirtual

Reimplemented from art::EDProducer.

Definition at line 101 of file ImplicitRSAssignmentProducer_module.cc.

102  {
103  r.put(make_unique<unsigned>(2), "bgnRunNum");
104  r.put(make_unique<unsigned>(2), "bgnRunDenom", art::fullRun());
105 
106  BOOST_CHECK_EXCEPTION(
107  r.put(make_unique<unsigned>(4), "bgnRunGarbage1", art::runFragment()),
109  [](art::Exception const& e) {
110  return insert_failure(e) && run_fragment_put(e.what());
111  });
112 
113  BOOST_CHECK_EXCEPTION(
114  r.put(make_unique<unsigned>(4),
115  "bgnRunGarbage2",
118  [](art::Exception const& e) {
119  return insert_failure(e) && run_fragment_full_run_put(e.what());
120  });
121  }
RunID id() const
Definition: Run.cc:24
constexpr auto fullRun()
constexpr auto runFragment()
const double e
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692
static RangeSet forRun(RunID)
Definition: RangeSet.cc:52
void arttest::ImplicitRSAssigmentProducer::beginSubRun ( art::SubRun sr)
inlineoverridevirtual

Reimplemented from art::EDProducer.

Definition at line 124 of file ImplicitRSAssignmentProducer_module.cc.

125  {
126  sr.put(make_unique<unsigned>(6), "bgnSubRunNum");
127  sr.put(make_unique<unsigned>(6), "bgnSubRunDenom", art::fullSubRun());
128 
129  BOOST_CHECK_EXCEPTION(
130  sr.put(
131  make_unique<unsigned>(8), "bgnSubRunGarbage1", art::subRunFragment()),
133  [](art::Exception const& e) {
134  return insert_failure(e) && subRun_fragment_put(e.what());
135  });
136 
137  BOOST_CHECK_EXCEPTION(
138  sr.put(make_unique<unsigned>(8),
139  "bgnSubRunGarbage2",
142  [](art::Exception const& e) {
143  return insert_failure(e) && subRun_fragment_full_subRun_put(e.what());
144  });
145  }
static RangeSet forSubRun(SubRunID)
Definition: RangeSet.cc:58
const double e
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
constexpr auto subRunFragment()
SubRunID id() const
Definition: SubRun.cc:21
constexpr auto fullSubRun()
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692
void arttest::ImplicitRSAssigmentProducer::endRun ( art::Run r)
inlineoverridevirtual

Reimplemented from art::EDProducer.

Definition at line 159 of file ImplicitRSAssignmentProducer_module.cc.

160  {
161  r.put(make_unique<unsigned>(3), "endRunNum");
162  r.put(make_unique<unsigned>(3), "endRunDenom", art::runFragment());
163  }
constexpr auto runFragment()
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692
void arttest::ImplicitRSAssigmentProducer::endSubRun ( art::SubRun sr)
inlineoverridevirtual

Reimplemented from art::EDProducer.

Definition at line 152 of file ImplicitRSAssignmentProducer_module.cc.

153  {
154  sr.put(make_unique<unsigned>(1), "endSubRunNum");
155  sr.put(make_unique<unsigned>(1), "endSubRunDenom", art::subRunFragment());
156  }
constexpr auto subRunFragment()
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692
void arttest::ImplicitRSAssigmentProducer::produce ( art::Event )
inlineoverridevirtual

Implements art::EDProducer.

Definition at line 148 of file ImplicitRSAssignmentProducer_module.cc.

149  {}

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