ElectronPFIsolationWithMapBasedVeto::ElectronPFIsolationWithMapBasedVeto |
( |
const edm::ParameterSet & |
c | ) |
|
|
inline |
ElectronPFIsolationWithMapBasedVeto::~ElectronPFIsolationWithMapBasedVeto |
( |
| ) |
|
|
inlineoverride |
void ElectronPFIsolationWithMapBasedVeto::getEventInfo |
( |
const edm::Event & |
iEvent | ) |
|
|
inlineoverridevirtual |
Implements citk::IsolationConeDefinitionBase.
Definition at line 119 of file ElectronPFIsolationWithMapBasedVeto.cc.
References pat::PackedCandidate::charge(), reco::deltaR2(), Exception, pat::PackedCandidate::fromPV(), edm::Ptr< T >::get(), isInFootprint(), and mps_fire::result.
128 bool inFootprint =
false;
133 if ( aspacked.get() )
135 inFootprint =
isInFootprint(aspat_electronptr ->associatedPackedPFCandidates(),aspacked);
138 if( aspacked->charge() != 0 )
140 bool is_vertex_allowed =
false;
143 if( vtxtype == aspacked->fromPV() ) {
144 is_vertex_allowed =
true;
149 result &= (is_vertex_allowed);
152 result &= deltar2 <
_coneSize2 && (!inFootprint);
156 else if ( aspf.get())
160 result &= deltar2 <
_coneSize2 && (!inFootprint);
166 <<
"The supplied candidate to be used as isolation " 167 <<
"was neither a reco::Photon nor a pat::Photon!";
const std::vector< unsigned > _miniAODVertexCodes
edm::Handle< edm::ValueMap< std::vector< reco::PFCandidateRef > > > particleBasedIsolationMap
bool isInFootprint(const T &thefootprint, const U &theCandidate)
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
const std::string ElectronPFIsolationWithMapBasedVeto::_isolateAgainst |
|
private |
const std::vector<unsigned> ElectronPFIsolationWithMapBasedVeto::_miniAODVertexCodes |
|
private |
const edm::InputTag ElectronPFIsolationWithMapBasedVeto::_particleBasedIsolation |
|
private |
const std::string ElectronPFIsolationWithMapBasedVeto::_vertexCollection |
|
private |