13 eeDigiCollection_( consumes<
HGCalDigiCollection>( ps.getParameter<
edm::InputTag>(
"HGCEEdigiCollection") ) ),
14 hefDigiCollection_( consumes<
HGCalDigiCollection>( ps.getParameter<
edm::InputTag>(
"HGCHEFdigiCollection") ) ),
15 hebDigiCollection_( consumes<
HGCalDigiCollection>( ps.getParameter<
edm::InputTag>(
"HGCHEBdigiCollection") ) ),
16 eeHitCollection_( ps.getParameter<
std::
string>(
"HGCEEhitCollection") ),
17 hefHitCollection_( ps.getParameter<
std::
string>(
"HGCHEFhitCollection") ),
18 hebHitCollection_( ps.getParameter<
std::
string>(
"HGCHEBhitCollection") ),
41 auto eeUncalibRechits = std::make_unique<HGCeeUncalibratedRecHitCollection>();
42 auto hefUncalibRechits = std::make_unique<HGChefUncalibratedRecHitCollection>();
43 auto hebUncalibRechits = std::make_unique<HGChebUncalibratedRecHitCollection>();
49 pHGCEEDigis.product();
51 for(
auto itdg = eeDigis->
begin(); itdg != eeDigis->
end(); ++itdg) {
52 worker_->run1(evt, itdg, *eeUncalibRechits);
60 for(
auto itdg = hefDigis->
begin(); itdg != hefDigis->
end(); ++itdg) {
61 worker_->run2(evt, itdg, *hefUncalibRechits);
69 for(
auto itdg = hebDigis->
begin(); itdg != hebDigis->
end(); ++itdg) {
70 worker_->run3(evt, itdg, *hebUncalibRechits);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const edm::EDGetTokenT< HGCalDigiCollection > eeDigiCollection_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< HGCalDigiCollection > hebDigiCollection_
const std::string hefHitCollection_
const std::string eeHitCollection_
#define DEFINE_FWK_MODULE(type)
const_iterator end() const
~HGCalUncalibRecHitProducer() override
T const * product() const
const edm::EDGetTokenT< HGCalDigiCollection > hefDigiCollection_
std::unique_ptr< HGCalUncalibRecHitWorkerBaseClass > worker_
HGCalUncalibRecHitProducer(const edm::ParameterSet &ps)
const std::string hebHitCollection_
void produce(edm::Event &evt, const edm::EventSetup &es) override
void reserve(size_type n)
T get(const Candidate &c)
const_iterator begin() const