#include <IsolatedPFCandidateSelectorDefinition.h>
◆ IsoMap
◆ IsolatedPFCandidateSelectorDefinition()
Definition at line 20 of file IsolatedPFCandidateSelectorDefinition.h.
References makeGlobalPositionRcd_cfg::tag.
edm::ValueMap< double > IsoMap
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
edm::EDGetTokenT< IsoMap > deltaBetaIsolationValueMapToken_
std::vector< edm::EDGetTokenT< IsoMap > > isolationValueMapChargedTokens_
std::vector< edm::EDGetTokenT< IsoMap > > isolationValueMapNeutralTokens_
bool doDeltaBetaCorrection_
◆ select()
Definition at line 34 of file IsolatedPFCandidateSelectorDefinition.h.
References deltaBetaFactor_, deltaBetaIsolationValueMapToken_, doDeltaBetaCorrection_, MillePedeFileConverter_cfg::e, isolationCut_, isolationValueMapChargedTokens_, isolationValueMapNeutralTokens_, objects.IsoTrackAnalyzer::isoSum, isRelative_, crabWrapper::key, TriggerAnalyzer::passed, pf2pat::PFCandidateSelectorDefinition::selected_, and heppy_batch::val.
55 for (collection::const_iterator pfc = hc->begin(); pfc != hc->end(); ++pfc, ++
key) {
59 double isoSumCharged = 0.0;
60 double isoSumNeutral = 0.0;
62 for (
unsigned iMap = 0; iMap < isoMapsCharged.size(); ++iMap) {
63 const IsoMap& isoMap = *(isoMapsCharged[iMap]);
64 double val = isoMap[candidate];
68 for (
unsigned iMap = 0; iMap < isoMapsNeutral.size(); ++iMap) {
69 const IsoMap& isoMap = *(isoMapsNeutral[iMap]);
70 double val = isoMap[candidate];
75 const IsoMap& isoMap = *dBetaH;
76 double dBetaVal = isoMap[candidate];
78 isoSumNeutral = dBetaCorIsoSumNeutral > 0 ? dBetaCorIsoSumNeutral : 0;
81 double isoSum = isoSumCharged + isoSumNeutral;
95 selected_.back().setSourceCandidatePtr(ptrToMother);
edm::ValueMap< double > IsoMap
edm::EDGetTokenT< IsoMap > deltaBetaIsolationValueMapToken_
std::vector< edm::EDGetTokenT< IsoMap > > isolationValueMapChargedTokens_
std::vector< edm::EDGetTokenT< IsoMap > > isolationValueMapNeutralTokens_
bool doDeltaBetaCorrection_
Particle reconstructed by the particle flow algorithm.
isoSum
===> compute the isolation and find the most isolated track
◆ deltaBetaFactor_
double pf2pat::IsolatedPFCandidateSelectorDefinition::deltaBetaFactor_ |
|
private |
◆ deltaBetaIsolationValueMapToken_
◆ doDeltaBetaCorrection_
bool pf2pat::IsolatedPFCandidateSelectorDefinition::doDeltaBetaCorrection_ |
|
private |
◆ isolationCut_
double pf2pat::IsolatedPFCandidateSelectorDefinition::isolationCut_ |
|
private |
◆ isolationValueMapChargedTokens_
std::vector<edm::EDGetTokenT<IsoMap> > pf2pat::IsolatedPFCandidateSelectorDefinition::isolationValueMapChargedTokens_ |
|
private |
◆ isolationValueMapNeutralTokens_
std::vector<edm::EDGetTokenT<IsoMap> > pf2pat::IsolatedPFCandidateSelectorDefinition::isolationValueMapNeutralTokens_ |
|
private |
◆ isRelative_
bool pf2pat::IsolatedPFCandidateSelectorDefinition::isRelative_ |
|
private |