PhotonPFIsolationWithMapBasedVeto::PhotonPFIsolationWithMapBasedVeto |
( |
const edm::ParameterSet & |
c | ) |
|
|
inline |
PhotonPFIsolationWithMapBasedVeto::~PhotonPFIsolationWithMapBasedVeto |
( |
| ) |
|
|
inlineoverride |
void PhotonPFIsolationWithMapBasedVeto::getEventInfo |
( |
const edm::Event & |
iEvent | ) |
|
|
inlineoverridevirtual |
Implements citk::IsolationConeDefinitionBase.
Definition at line 121 of file PhotonPFIsolationWithMapBasedVeto.cc.
References reco::deltaR2(), Exception, edm::Ptr< T >::get(), edm::Ptr< T >::isNonnull(), and mps_fire::result.
130 bool inFootprint =
false;
135 if ( aspacked.get() )
137 inFootprint = isInFootprint(aspat_photonptr ->associatedPackedPFCandidates(),aspacked);
140 if( aspacked->charge() != 0 )
142 bool is_vertex_allowed =
false;
146 is_vertex_allowed =
true;
151 result &= (is_vertex_allowed);
154 result &= deltar2 <
_coneSize2 && (!inFootprint);
159 else if ( aspf.get() && aspf.isNonnull())
162 result &= deltar2 <
_coneSize2 && (!inFootprint);
169 <<
"The supplied candidate to be used as isolation " 170 <<
"was neither a reco::Photon nor a pat::Photon!";
const std::vector< unsigned > _miniAODVertexCodes
edm::Handle< edm::ValueMap< std::vector< reco::PFCandidateRef > > > particleBasedIsolationMap
const unsigned _vertexIndex
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
const std::string PhotonPFIsolationWithMapBasedVeto::_isolateAgainst |
|
private |
const std::vector<unsigned> PhotonPFIsolationWithMapBasedVeto::_miniAODVertexCodes |
|
private |
const edm::InputTag PhotonPFIsolationWithMapBasedVeto::_particleBasedIsolation |
|
private |
const std::string PhotonPFIsolationWithMapBasedVeto::_vertexCollection |
|
private |
const unsigned PhotonPFIsolationWithMapBasedVeto::_vertexIndex |
|
private |