10 produces<HBHERecHitCollection>(
"HBHERecHitCollection");
11 produces<HORecHitCollection>(
"HORecHitCollection");
12 produces<HFRecHitCollection>(
"HFRecHitCollection");
28 LogDebug(
"") <<
"AlCaEcalHcalReadoutProducer: Error! can't get hbhe product!" << std::endl;
34 LogDebug(
"") <<
"AlCaEcalHcalReadoutProducer: Error! can't get ho product!" << std::endl;
39 LogDebug(
"") <<
"AlCaEcalHcalReadoutProducer: Error! can't get hf product!" << std::endl;
43 auto miniHBHERecHitCollection = std::make_unique<HBHERecHitCollection>();
44 auto miniHORecHitCollection = std::make_unique<HORecHitCollection>();
45 auto miniHFRecHitCollection = std::make_unique<HFRecHitCollection>();
49 miniHBHERecHitCollection->
push_back(*hbheItr);
53 miniHORecHitCollection->
push_back(*hoItr);
58 miniHFRecHitCollection->
push_back(*hfItr);
62 iEvent.
put(
std::move(miniHBHERecHitCollection),
"HBHERecHitCollection");
63 iEvent.
put(
std::move(miniHORecHitCollection),
"HORecHitCollection");
64 iEvent.
put(
std::move(miniHFRecHitCollection),
"HFRecHitCollection");
void produce(edm::Event &, const edm::EventSetup &) override
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< T >::const_iterator const_iterator
void push_back(T const &t)
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
~AlCaEcalHcalReadoutsProducer() override
AlCaEcalHcalReadoutsProducer(const edm::ParameterSet &)
const_iterator end() const
T const * product() const
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
edm::EDGetTokenT< HORecHitCollection > tok_ho_
const_iterator begin() const