82 eeUncalibRecHits = pHGCeeUncalibRecHits.
product();
85 hefUncalibRecHits = pHGChefUncalibRecHits.
product();
88 hebUncalibRecHits = pHGChebUncalibRecHits.
product();
91 if (pHGChfnoseUncalibRecHits.
isValid())
92 hfnoseUncalibRecHits = pHGChfnoseUncalibRecHits.
product();
95 auto eeRecHits = std::make_unique<HGCeeRecHitCollection>();
96 auto hefRecHits = std::make_unique<HGChefRecHitCollection>();
97 auto hebRecHits = std::make_unique<HGChebRecHitCollection>();
102 eeRecHits->reserve(eeUncalibRecHits->
size());
103 hefRecHits->reserve(hefUncalibRecHits->
size());
104 hebRecHits->reserve(hebUncalibRecHits->
size());
107 worker_->run(evt, *eeUncalibRecHits, *eeRecHits);
110 worker_->run(evt, *hefUncalibRecHits, *hefRecHits);
113 worker_->run(evt, *hebUncalibRecHits, *hebRecHits);
115 std::sort(eeRecHits->begin(), eeRecHits->end());
116 std::sort(hefRecHits->begin(), hefRecHits->end());
117 std::sort(hebRecHits->begin(), hebRecHits->end());
120 LogInfo(
"HGCalRecHitInfo") <<
"total # HGCee calibrated rechits: " << eeRecHits->size();
121 LogInfo(
"HGCalRecHitInfo") <<
"total # HGChef calibrated rechits: " << hefRecHits->size();
122 LogInfo(
"HGCalRecHitInfo") <<
"total # HGCheb calibrated rechits: " << hebRecHits->size();
129 if (pHGChfnoseUncalibRecHits.
isValid()) {
130 auto hfnoseRecHits = std::make_unique<HGChfnoseRecHitCollection>();
131 hfnoseRecHits->reserve(hfnoseUncalibRecHits->
size());
132 worker_->run(evt, *hfnoseUncalibRecHits, *hfnoseRecHits);
133 std::sort(hfnoseRecHits->begin(), hfnoseRecHits->end());
134 LogInfo(
"HGCalRecHitInfo") <<
"total # HGChfnose calibrated rechits: " << hfnoseRecHits->size();
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const std::string hfnoseRechitCollection_
T const * product() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const edm::EDGetTokenT< HGChefUncalibratedRecHitCollection > hefUncalibRecHitCollection_
const edm::EDGetTokenT< HGCeeUncalibratedRecHitCollection > eeUncalibRecHitCollection_
const std::string hefRechitCollection_
Log< level::Info, false > LogInfo
const std::string eeRechitCollection_
const std::string hebRechitCollection_
std::unique_ptr< HGCalRecHitWorkerBaseClass > worker_
const edm::EDGetTokenT< HGChebUncalibratedRecHitCollection > hebUncalibRecHitCollection_
const edm::EDGetTokenT< HGChfnoseUncalibratedRecHitCollection > hfnoseUncalibRecHitCollection_