◆ CorrectedECALPFClusterProducer()
CorrectedECALPFClusterProducer::CorrectedECALPFClusterProducer |
( |
const edm::ParameterSet & |
conf | ) |
|
|
inline |
◆ fillDescriptions()
Definition at line 125 of file CorrectedECALPFClusterProducer.cc.
127 desc.
add<
double>(
"minimumPSEnergy", 0.0);
131 psd0.
add<
bool>(
"applyCrackCorrections",
false);
132 psd0.
add<
bool>(
"applyMVACorrections",
false);
133 psd0.
add<
bool>(
"srfAwareCorrection",
false);
134 psd0.
add<
bool>(
"setEnergyUncertainty",
false);
135 psd0.
add<
bool>(
"autoDetectBunchSpacing",
true);
136 psd0.
add<
int>(
"bunchSpacing", 25);
137 psd0.
add<
double>(
"maxPtForMVAEvaluation", -99.);
145 descriptions.
add(
"particleFlowClusterECAL", desc);
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and HLT_2018_cff::InputTag.
◆ produce()
Definition at line 71 of file CorrectedECALPFClusterProducer.cc.
72 auto clusters_out = std::make_unique<reco::PFClusterCollection>();
73 auto association_out = std::make_unique<reco::PFCluster::EEtoPSAssociation>();
80 auto const& ecals = *handleECAL;
81 auto const&
pss = *handlePS;
83 clusters_out->reserve(ecals.size());
84 association_out->reserve(ecals.size());
85 clusters_out->insert(clusters_out->end(), ecals.begin(), ecals.end());
87 for (
unsigned i = 0;
i <
pss.size(); ++
i) {
88 switch (
pss[
i].layer()) {
99 for (
size_t ic = 0; ic < ecals.size(); ++ic) {
102 auto dist = testPreshowerDistance(ecals[ic],
pss[
i]);
105 if (dist < min_dist) {
112 association_out->push_back(std::make_pair(eematch, psclus));
115 std::sort(association_out->begin(), association_out->end(),
sortByKey);
117 _corrector->correctEnergies(
e, es, *association_out, *clusters_out);
119 association_out->shrink_to_fit();
References _corrector, _inputECAL, _inputPS, _minimumPSEnergy, MillePedeFileConverter_cfg::e, PFLayer::ECAL_ENDCAP, HCALHighEnergyHPDFilter_cfi::energy, mps_fire::i, SiStripPI::max, eostools::move(), PFLayer::PS1, PFLayer::PS2, and sortByKey().
◆ _corrector
◆ _inputECAL
◆ _inputPS
◆ _minimumPSEnergy
const double CorrectedECALPFClusterProducer::_minimumPSEnergy |
|
private |