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")),
37 auto eeUncalibRechits = std::make_unique<HGCeeUncalibratedRecHitCollection>();
38 auto hefUncalibRechits = std::make_unique<HGChefUncalibratedRecHitCollection>();
39 auto hebUncalibRechits = std::make_unique<HGChebUncalibratedRecHitCollection>();
40 auto hfnoseUncalibRechits = std::make_unique<HGChfnoseUncalibratedRecHitCollection>();
46 eeUncalibRechits->reserve(eeDigis->
size());
47 for (
auto itdg = eeDigis->
begin(); itdg != eeDigis->
end(); ++itdg) {
48 worker_->runHGCEE(itdg, *eeUncalibRechits);
56 for (
auto itdg = hefDigis->
begin(); itdg != hefDigis->
end(); ++itdg) {
57 worker_->runHGCHEsil(itdg, *hefUncalibRechits);
65 for (
auto itdg = hebDigis->
begin(); itdg != hebDigis->
end(); ++itdg) {
66 worker_->runHGCHEscint(itdg, *hebUncalibRechits);
72 if (pHGCHFNoseDigis.
isValid()) {
74 if (!(hfnoseDigis->
empty())) {
76 for (
auto itdg = hfnoseDigis->
begin(); itdg != hfnoseDigis->
end(); ++itdg)
77 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_
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)
edm::EDGetTokenT< HGCalDigiCollection > hfnoseDigiCollection_
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)
const std::string hfnoseHitCollection_
const_iterator begin() const