23 class ESSecondaryProducer;
40 ,
index_(
p.get<
size_t>(
"index"))
42 produces<arttest::ESPtrSimple>();
43 produces<arttest::IntProduct>();
52 <<
"Specified index " <<
index_ <<
"is invalid for loaded product.";
54 e.
put(std::make_unique<arttest::ESPtrSimple>(
56 e.
put(std::make_unique<arttest::IntProduct>(static_cast<int>(
h->size())));
ESSecondaryProducer(fhicl::ParameterSet const &p)
void produce(art::Event &e) override
std::vector< Simple > VSimpleProduct
#define DEFINE_ART_MODULE(klass)
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
h
training ###############################