17 eeHitCollection_(ps.getParameter<std::
string>(
"HGCEEhitCollection")),
18 hefHitCollection_(ps.getParameter<std::
string>(
"HGCHEFhitCollection")),
19 hebHitCollection_(ps.getParameter<std::
string>(
"HGCHEBhitCollection")),
20 hfnoseHitCollection_(ps.getParameter<std::
string>(
"HGCHFNosehitCollection")),
23 produces<HGCeeUncalibratedRecHitCollection>(eeHitCollection_);
24 produces<HGChefUncalibratedRecHitCollection>(hefHitCollection_);
25 produces<HGChebUncalibratedRecHitCollection>(hebHitCollection_);
26 produces<HGChfnoseUncalibratedRecHitCollection>(hfnoseHitCollection_);
38 auto eeUncalibRechits = std::make_unique<HGCeeUncalibratedRecHitCollection>();
39 auto hefUncalibRechits = std::make_unique<HGChefUncalibratedRecHitCollection>();
40 auto hebUncalibRechits = std::make_unique<HGChebUncalibratedRecHitCollection>();
41 auto hfnoseUncalibRechits = std::make_unique<HGChfnoseUncalibratedRecHitCollection>();
47 eeUncalibRechits->reserve(
eeDigis->size());
48 for (
auto itdg =
eeDigis->begin(); itdg !=
eeDigis->end(); ++itdg) {
49 worker_->runHGCEE(itdg, *eeUncalibRechits);
56 hefUncalibRechits->
reserve(hefDigis->size());
57 for (
auto itdg = hefDigis->begin(); itdg != hefDigis->end(); ++itdg) {
58 worker_->runHGCHEsil(itdg, *hefUncalibRechits);
65 hebUncalibRechits->
reserve(hebDigis->size());
66 for (
auto itdg = hebDigis->begin(); itdg != hebDigis->end(); ++itdg) {
67 worker_->runHGCHEscint(itdg, *hebUncalibRechits);
73 if (pHGCHFNoseDigis.isValid()) {
75 if (!(hfnoseDigis->
empty())) {
76 hfnoseUncalibRechits->reserve(hfnoseDigis->
size());
77 for (
auto itdg = hfnoseDigis->
begin(); itdg != hfnoseDigis->
end(); ++itdg)
78 worker_->runHGCHFNose(itdg, *hfnoseUncalibRechits);
86 if (pHGCHFNoseDigis.isValid())
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
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< HGCalDigiCollection > hebDigiCollection_
const std::string hefHitCollection_
const std::string eeHitCollection_
edm::EDGetTokenT< HGCalDigiCollection > hfnoseDigiCollection_
const_iterator end() const
~HGCalUncalibRecHitProducer() override
const edm::EDGetTokenT< HGCalDigiCollection > hefDigiCollection_
std::unique_ptr< HGCalUncalibRecHitWorkerBaseClass > worker_
T getParameter(std::string const &) const
HGCalUncalibRecHitProducer(const edm::ParameterSet &ps)
const std::string hebHitCollection_
void produce(edm::Event &evt, const edm::EventSetup &es) override
void reserve(size_type n)
const std::string hfnoseHitCollection_
const_iterator begin() const