42 std::unique_ptr<HGCalRecHitWorkerBaseClass>
worker_;
77 eeUncalibRecHits = pHGCeeUncalibRecHits.
product();
80 hefUncalibRecHits = pHGChefUncalibRecHits.
product();
83 hebUncalibRecHits = pHGChebUncalibRecHits.
product();
86 auto eeRecHits = std::make_unique<HGCeeRecHitCollection>();
87 auto hefRecHits = std::make_unique<HGChefRecHitCollection>();
88 auto hebRecHits = std::make_unique<HGChebRecHitCollection>();
93 for(
auto it = eeUncalibRecHits->
begin(); it != eeUncalibRecHits->
end(); ++it) {
94 worker_->run(evt, *it, *eeRecHits);
98 for(
auto it = hefUncalibRecHits->
begin(); it != hefUncalibRecHits->
end(); ++it) {
99 worker_->run(evt, *it, *hefRecHits);
103 for(
auto it = hebUncalibRecHits->
begin(); it != hebUncalibRecHits->
end(); ++it) {
104 worker_->run(evt, *it, *hebRecHits);
113 LogInfo(
"HGCalRecHitInfo") <<
"total # HGCee calibrated rechits: " << eeRecHits->size();
114 LogInfo(
"HGCalRecHitInfo") <<
"total # HGChef calibrated rechits: " << hefRecHits->size();
115 LogInfo(
"HGCalRecHitInfo") <<
"total # HGCheb calibrated rechits: " << hebRecHits->size();
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void produce(edm::Event &evt, const edm::EventSetup &es) override
def create(alignables, pedeDump, additionalData, outputFile, config)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
const edm::EDGetTokenT< HGChefUncalibratedRecHitCollection > hefUncalibRecHitCollection_
const edm::EDGetTokenT< HGCeeUncalibratedRecHitCollection > eeUncalibRecHitCollection_
~HGCalRecHitProducer() override
const std::string hefRechitCollection_
const_iterator end() const
const std::string eeRechitCollection_
T const * product() const
HGCalRecHitProducer(const edm::ParameterSet &ps)
const std::string hebRechitCollection_
std::unique_ptr< HGCalRecHitWorkerBaseClass > worker_
const edm::EDGetTokenT< HGChebUncalibratedRecHitCollection > hebUncalibRecHitCollection_
T get(const Candidate &c)
const_iterator begin() const