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);
57 for (
auto itdg = hefDigis->
begin(); itdg != hefDigis->
end(); ++itdg) {
58 worker_->runHGCHEsil(itdg, *hefUncalibRechits);
66 for (
auto itdg = hebDigis->
begin(); itdg != hebDigis->
end(); ++itdg) {
67 worker_->runHGCHEscint(itdg, *hebUncalibRechits);
73 if (pHGCHFNoseDigis.
isValid()) {
78 worker_->runHGCHFNose(itdg, *hfnoseUncalibRechits);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const edm::EDGetTokenT< HGCalDigiCollection > eeDigiCollection_
#define DEFINE_FWK_MODULE(type)
T const * product() const
edm::EDGetTokenT< HGCalDigiCollection > hebDigiCollection_
const std::string hefHitCollection_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const std::string eeHitCollection_
const_iterator begin() const
edm::EDGetTokenT< HGCalDigiCollection > hfnoseDigiCollection_
const_iterator end() const
~HGCalUncalibRecHitProducer() override
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)
const std::string hfnoseHitCollection_