◆ CorrectedECALPFClusterProducer()
CorrectedECALPFClusterProducer::CorrectedECALPFClusterProducer |
( |
const edm::ParameterSet & |
conf | ) |
|
|
inline |
◆ fillDescriptions()
Definition at line 127 of file CorrectedECALPFClusterProducer.cc.
129 desc.add<
double>(
"minimumPSEnergy", 0.0);
133 psd0.
add<
bool>(
"applyCrackCorrections",
false);
134 psd0.
add<
bool>(
"applyMVACorrections",
false);
135 psd0.
add<
bool>(
"srfAwareCorrection",
false);
136 psd0.
add<
bool>(
"setEnergyUncertainty",
false);
137 psd0.
add<
bool>(
"autoDetectBunchSpacing",
true);
138 psd0.
add<
int>(
"bunchSpacing", 25);
139 psd0.
add<
double>(
"maxPtForMVAEvaluation", -99.);
147 descriptions.
add(
"particleFlowClusterECAL",
desc);
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), submitPVResolutionJobs::desc, and HLT_FULL_cff::InputTag.
◆ produce()
Definition at line 73 of file CorrectedECALPFClusterProducer.cc.
74 auto clusters_out = std::make_unique<reco::PFClusterCollection>();
75 auto association_out = std::make_unique<reco::PFCluster::EEtoPSAssociation>();
82 auto const& ecals = *handleECAL;
83 auto const&
pss = *handlePS;
85 clusters_out->reserve(ecals.size());
86 association_out->reserve(ecals.size());
87 clusters_out->insert(clusters_out->end(), ecals.begin(), ecals.end());
89 for (
unsigned i = 0;
i <
pss.size(); ++
i) {
90 switch (
pss[
i].layer()) {
101 for (
size_t ic = 0; ic < ecals.size(); ++ic) {
104 auto dist = testPreshowerDistance(ecals[ic],
pss[
i]);
107 if (dist < min_dist) {
114 association_out->push_back(std::make_pair(eematch, psclus));
117 std::sort(association_out->begin(), association_out->end(),
sortByKey);
119 _corrector->correctEnergies(
e, es, *association_out, *clusters_out);
121 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 |