13 produces<HBHERecHitCollection>(
"HBHERecHitCollection");
14 produces<HORecHitCollection>(
"HORecHitCollection");
15 produces<HFRecHitCollection>(
"HFRecHitCollection");
39 LogDebug(
"") <<
"AlCaEcalHcalReadoutProducer: Error! can't get hbhe product!" << std::endl;
45 LogDebug(
"") <<
"AlCaEcalHcalReadoutProducer: Error! can't get ho product!" << std::endl;
50 LogDebug(
"") <<
"AlCaEcalHcalReadoutProducer: Error! can't get hf product!" << std::endl;
54 auto miniHBHERecHitCollection = std::make_unique<HBHERecHitCollection>();
55 auto miniHORecHitCollection = std::make_unique<HORecHitCollection>();
56 auto miniHFRecHitCollection = std::make_unique<HFRecHitCollection>();
61 miniHBHERecHitCollection->
push_back(*hbheItr);
66 miniHORecHitCollection->
push_back(*hoItr);
72 miniHFRecHitCollection->
push_back(*hfItr);
78 iEvent.
put(
std::move(miniHBHERecHitCollection),
"HBHERecHitCollection");
79 iEvent.
put(
std::move(miniHORecHitCollection),
"HORecHitCollection");
80 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< HBHERecHit >::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_
return(e1-e2)*(e1-e2)+dp *dp
edm::EDGetTokenT< HORecHitCollection > tok_ho_
const_iterator begin() const