PhotonPFIsolationWithMapBasedVeto::PhotonPFIsolationWithMapBasedVeto |
( |
const edm::ParameterSet & |
c | ) |
|
|
inline |
virtual PhotonPFIsolationWithMapBasedVeto::~PhotonPFIsolationWithMapBasedVeto |
( |
| ) |
|
|
inlinevirtual |
virtual 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(), isInFootprint(), 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
bool isInFootprint(const T &thefootprint, const U &theCandidate)
const unsigned _vertexIndex
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
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 |