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 reco::deltaR2(), Exception, edm::Ptr< T >::get(), 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
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
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 |