44 std::unique_ptr<HGCalRecHitWorkerBaseClass>
worker_;
51 eeRechitCollection_( ps.getParameter<std::
string>(
"HGCEErechitCollection") ),
52 hefRechitCollection_( ps.getParameter<std::
string>(
"HGCHEFrechitCollection") ),
53 hebRechitCollection_( ps.getParameter<std::
string>(
"HGCHEBrechitCollection") ) {
79 eeUncalibRecHits = pHGCeeUncalibRecHits.product();
82 hefUncalibRecHits = pHGChefUncalibRecHits.product();
85 hebUncalibRecHits = pHGChebUncalibRecHits.product();
88 auto eeRecHits = std::make_unique<HGCeeRecHitCollection>();
89 auto hefRecHits = std::make_unique<HGChefRecHitCollection>();
90 auto hebRecHits = std::make_unique<HGChebRecHitCollection>();
95 for(
auto it = eeUncalibRecHits->begin(); it != eeUncalibRecHits->end(); ++it) {
96 worker_->run(evt, *it, *eeRecHits);
100 for(
auto it = hefUncalibRecHits->begin(); it != hefUncalibRecHits->end(); ++it) {
101 worker_->run(evt, *it, *hefRecHits);
105 for(
auto it = hebUncalibRecHits->begin(); it != hebUncalibRecHits->end(); ++it) {
106 worker_->run(evt, *it, *hebRecHits);
115 LogInfo(
"HGCalRecHitInfo") <<
"total # HGCee calibrated rechits: " << eeRecHits->size();
116 LogInfo(
"HGCalRecHitInfo") <<
"total # HGChef calibrated rechits: " << hefRecHits->size();
117 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.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
const edm::EDGetTokenT< HGChefUncalibratedRecHitCollection > hefUncalibRecHitCollection_
const edm::EDGetTokenT< HGCeeUncalibratedRecHitCollection > eeUncalibRecHitCollection_
const std::string hefRechitCollection_
virtual void produce(edm::Event &evt, const edm::EventSetup &es)
const std::string eeRechitCollection_
HGCalRecHitProducer(const edm::ParameterSet &ps)
const std::string hebRechitCollection_
std::unique_ptr< HGCalRecHitWorkerBaseClass > worker_
const edm::EDGetTokenT< HGChebUncalibratedRecHitCollection > hebUncalibRecHitCollection_
T get(const Candidate &c)