Definition at line 39 of file PFCandIsolatorFromDeposit.h.
◆ SingleDeposit()
Definition at line 40 of file PFCandIsolatorFromDeposit.cc.
51 else if (
mode ==
"sumRelative")
53 else if (
mode ==
"sum2")
55 else if (
mode ==
"sum2Relative")
57 else if (
mode ==
"max")
59 else if (
mode ==
"maxRelative")
61 else if (
mode ==
"nearestDR")
63 else if (
mode ==
"count")
67 <<
"Supported modes are 'sum', 'sumRelative', 'count'." <<
69 "New methods can be easily implemented if requested.";
70 typedef std::vector<std::string>
vstring;
73 static const std::regex ecalSwitch(
"^Ecal(Barrel|Endcaps):(.*)");
75 for (vstring::const_iterator it =
vetos.begin(), ed =
vetos.end(); it != ed; ++it) {
79 if (regex_match(it->c_str(),
match, ecalSwitch)) {
80 if (
match[1] ==
"Barrel") {
85 if (
match[1] ==
"Endcaps") {
References barrelVetos_, PFCandIsolatorFromDeposits::Count, endcapVetos_, evdepVetos_, Exception, edm::ParameterSet::getParameter(), isNumber(), IsoDepositVetoFactory::make(), match(), PFCandIsolatorFromDeposits::Max, PFCandIsolatorFromDeposits::MaxRelative, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, mode_, PFCandIsolatorFromDeposits::NearestDR, AlCaHLTBitMon_QueryRunRegistry::string, PFCandIsolatorFromDeposits::Sum, PFCandIsolatorFromDeposits::Sum2, PFCandIsolatorFromDeposits::Sum2Relative, PFCandIsolatorFromDeposits::SumRelative, toNumber(), usePivotForBarrelEndcaps_, usesFunction_, boostedElectronIsolation_cff::vetos, and weight_.
◆ cleanup()
void PFCandIsolatorFromDeposits::SingleDeposit::cleanup |
( |
| ) |
|
◆ compute()
Definition at line 131 of file PFCandIsolatorFromDeposit.cc.
152 for (AbsVetos::iterator it =
vetos->begin(), ed =
vetos->end(); it != ed; ++it) {
153 (*it)->centerOn(
eta,
phi);
174 throw cms::Exception(
"Logic error") <<
"Should not happen at " << __FILE__ <<
", line "
References Reference_intrackfit_cff::barrel, reco::IsoDeposit::candEnergy(), PFCandIsolatorFromDeposits::Count, reco::IsoDeposit::countWithin(), PVValHelper::eta, reco::IsoDeposit::eta(), Exception, PFCandIsolatorFromDeposits::Max, PFCandIsolatorFromDeposits::MaxRelative, reco::IsoDeposit::maxWithin(), PFCandIsolatorFromDeposits::NearestDR, reco::IsoDeposit::nearestDR(), phi, reco::IsoDeposit::phi(), reco::PFCandidate::positionAtECALEntrance(), PFCandIsolatorFromDeposits::Sum, PFCandIsolatorFromDeposits::Sum2, PFCandIsolatorFromDeposits::Sum2Relative, reco::IsoDeposit::sum2Within(), PFCandIsolatorFromDeposits::SumRelative, reco::IsoDeposit::sumWithin(), reco::RecoCandidate::superCluster(), and boostedElectronIsolation_cff::vetos.
◆ isNumber()
bool PFCandIsolatorFromDeposits::SingleDeposit::isNumber |
( |
const std::string & |
str | ) |
const |
|
private |
◆ map()
◆ open()
◆ toNumber()
double PFCandIsolatorFromDeposits::SingleDeposit::toNumber |
( |
const std::string & |
str | ) |
const |
|
private |
◆ barrelVetos_
◆ deltaR_
double PFCandIsolatorFromDeposits::SingleDeposit::deltaR_ |
|
private |
◆ endcapVetos_
◆ evdepVetos_
◆ hDeps_
◆ mode_
Mode PFCandIsolatorFromDeposits::SingleDeposit::mode_ |
|
private |
◆ skipDefaultVeto_
bool PFCandIsolatorFromDeposits::SingleDeposit::skipDefaultVeto_ |
|
private |
◆ srcToken_
◆ usePivotForBarrelEndcaps_
bool PFCandIsolatorFromDeposits::SingleDeposit::usePivotForBarrelEndcaps_ |
|
private |
◆ usesFunction_
bool PFCandIsolatorFromDeposits::SingleDeposit::usesFunction_ |
|
private |
◆ weight_
double PFCandIsolatorFromDeposits::SingleDeposit::weight_ |
|
private |
◆ weightExpr_
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.