PhotonPFIsolationWithMapBasedVeto::PhotonPFIsolationWithMapBasedVeto |
( |
const edm::ParameterSet & |
c | ) |
|
|
inline |
Definition at line 71 of file PhotonPFIsolationWithMapBasedVeto.cc.
T getParameter(std::string const &) const
const std::vector< unsigned > _miniAODVertexCodes
const std::string _isolateAgainst
const unsigned _vertexIndex
virtual PhotonPFIsolationWithMapBasedVeto::~PhotonPFIsolationWithMapBasedVeto |
( |
| ) |
|
|
inlinevirtual |
virtual void PhotonPFIsolationWithMapBasedVeto::getEventInfo |
( |
const edm::Event & |
iEvent | ) |
|
|
inlinevirtual |
Implements citk::IsolationConeDefinitionBase.
Definition at line 119 of file PhotonPFIsolationWithMapBasedVeto.cc.
References citk::IsolationConeDefinitionBase::_coneSize2, _miniAODVertexCodes, _vertexIndex, reco::deltaR2(), Exception, edm::Ptr< T >::get(), isInFootprint(), edm::Ptr< T >::isNonnull(), particleBasedIsolationMap, and mps_fire::result.
128 bool inFootprint =
false;
133 if ( aspacked.get() )
135 inFootprint =
isInFootprint(aspat_photonptr ->associatedPackedPFCandidates(),aspacked);
138 if( aspacked->charge() != 0 )
140 bool is_vertex_allowed =
false;
144 is_vertex_allowed =
true;
149 result &= (is_vertex_allowed);
152 result &= deltar2 <
_coneSize2 && (!inFootprint);
157 else if ( aspf.get() && aspf.isNonnull())
160 result &= deltar2 <
_coneSize2 && (!inFootprint);
167 <<
"The supplied candidate to be used as isolation "
168 <<
"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 std::string PhotonPFIsolationWithMapBasedVeto::_vertexCollection |
|
private |
const unsigned PhotonPFIsolationWithMapBasedVeto::_vertexIndex |
|
private |