24 : barrelEtaSearchRoad_{static_cast<float>(ps.
getParameter<
double>(
"barrelEtaSearchRoad"))},
25 barrelPhiSearchRoad_{static_cast<float>(ps.getParameter<
double>(
"barrelPhiSearchRoad"))},
26 endcapEtaSearchRoad_{static_cast<float>(ps.getParameter<
double>(
"endcapEtaSearchRoad"))},
27 endcapPhiSearchRoad_{static_cast<float>(ps.getParameter<
double>(
"endcapPhiSearchRoad"))},
28 seedTransverseEnergyThreshold_{static_cast<float>(ps.getParameter<
double>(
"seedTransverseEnergyThreshold"))},
29 doBarrel_{ps.getParameter<
bool>(
"doBarrel")},
30 doEndcaps_{ps.getParameter<
bool>(
"doEndcaps")},
34 eeClustersToken_ = consumes<reco::BasicClusterCollection>(ps.getParameter<
edm::InputTag>(
"endcapClusterTag"));
37 ebClustersToken_ = consumes<reco::BasicClusterCollection>(ps.getParameter<
edm::InputTag>(
"barrelClusterTag"));
43 bremAlgo_p = std::make_unique<Multi5x5BremRecoveryClusterAlgo>(
bremRecoveryPset,
49 seedTransverseEnergyThreshold_);
53 produces<reco::SuperClusterCollection>(ps.getParameter<
std::string>(
"endcapSuperclusterCollection"));
57 produces<reco::SuperClusterCollection>(ps.getParameter<
std::string>(
"barrelSuperclusterCollection"));
62 double averEnergy = 0.;
63 std::ostringstream
str;
64 str <<
"Multi5x5SuperClusterProducer::endJob()\n"
66 <<
" total energy of all clusters: " <<
totalE <<
"\n";
69 str <<
" average SuperCluster energy = " << averEnergy <<
"\n";
93 for (
auto const& sc : superclusters_ap) {
109 clusterPtrVector_p.
reserve(clusterCollection_p->size());
110 for (
unsigned int i = 0;
i < clusterCollection_p->size();
i++) {
113 return clusterPtrVector_p;