ElectronPFIsolationWithMapBasedVeto::ElectronPFIsolationWithMapBasedVeto |
( |
const edm::ParameterSet & |
c | ) |
|
|
inline |
virtual ElectronPFIsolationWithMapBasedVeto::~ElectronPFIsolationWithMapBasedVeto |
( |
| ) |
|
|
inlinevirtual |
virtual void ElectronPFIsolationWithMapBasedVeto::getEventInfo |
( |
const edm::Event & |
iEvent | ) |
|
|
inlinevirtual |
Implements citk::IsolationConeDefinitionBase.
Definition at line 117 of file ElectronPFIsolationWithMapBasedVeto.cc.
References citk::IsolationConeDefinitionBase::_coneSize2, _miniAODVertexCodes, reco::deltaR2(), Exception, edm::Ptr< T >::get(), isInFootprint(), particleBasedIsolationMap, and mps_fire::result.
126 bool inFootprint =
false;
131 if ( aspacked.get() )
133 inFootprint =
isInFootprint(aspat_electronptr ->associatedPackedPFCandidates(),aspacked);
136 if( aspacked->charge() != 0 )
138 bool is_vertex_allowed =
false;
141 if( vtxtype == aspacked->fromPV() ) {
142 is_vertex_allowed =
true;
147 result &= (is_vertex_allowed);
150 result &= deltar2 <
_coneSize2 && (!inFootprint);
154 else if ( aspf.get())
158 result &= deltar2 <
_coneSize2 && (!inFootprint);
164 <<
"The supplied candidate to be used as isolation "
165 <<
"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 std::string ElectronPFIsolationWithMapBasedVeto::_vertexCollection |
|
private |