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") )
43 auto eeUncalibRechits = std::make_unique<HGCeeUncalibratedRecHitCollection>();
44 auto hefUncalibRechits = std::make_unique<HGChefUncalibratedRecHitCollection>();
45 auto hebUncalibRechits = std::make_unique<HGChebUncalibratedRecHitCollection>();
51 pHGCEEDigis.product();
53 for(
auto itdg = eeDigis->
begin(); itdg != eeDigis->
end(); ++itdg) {
54 worker_->run1(evt, itdg, *eeUncalibRechits);
62 for(
auto itdg = hefDigis->
begin(); itdg != hefDigis->
end(); ++itdg) {
63 worker_->run2(evt, itdg, *hefUncalibRechits);
71 for(
auto itdg = hebDigis->
begin(); itdg != hebDigis->
end(); ++itdg) {
72 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_
def create(alignables, pedeDump, additionalData, outputFile, config)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< HGCalDigiCollection > hebDigiCollection_
const std::string hefHitCollection_
const std::string eeHitCollection_
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