35 explicit LastDoubleProducingService(Parameters
const&);
38 void postReadRun(
art::Run&)
override;
48 LastDoubleProducingService::LastDoubleProducingService(Parameters
const&
p)
49 : sourceTag_{
p().source_input_label()}
50 , serviceTag_{
p().service_input_label()}
54 switch (branchType_) {
59 produces<arttest::DoubleProduct, art::InSubRun>(
"",
67 <<
"Unknown branch type " << branchType_ <<
".\n";
72 LastDoubleProducingService::postReadRun(
art::Run&
r)
84 r.
put(std::make_unique<arttest::DoubleProduct>(value_ + vh->value),
101 sr.
put(std::make_unique<arttest::DoubleProduct>(value_ + vh->value),
106 LastDoubleProducingService::postReadEvent(
art::Event&
e)
118 e.
put(std::make_unique<arttest::DoubleProduct>(value_ + vh->value));
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
#define DEFINE_ART_PRODUCING_SERVICE(klass)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
constexpr auto fullSubRun()
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
h
training ###############################