PhotonPFIsolationWithMapBasedVeto::PhotonPFIsolationWithMapBasedVeto |
( |
const edm::ParameterSet & |
c | ) |
|
|
inline |
Definition at line 68 of file PhotonPFIsolationWithMapBasedVeto.cc.
72 "miniAODVertexCodes")),
const std::vector< unsigned > _miniAODVertexCodes
const std::string _isolateAgainst
const unsigned _vertexIndex
const edm::InputTag _particleBasedIsolation
T getParameter(std::string const &) const
PhotonPFIsolationWithMapBasedVeto::~PhotonPFIsolationWithMapBasedVeto |
( |
| ) |
|
|
inlineoverride |
void PhotonPFIsolationWithMapBasedVeto::getEventInfo |
( |
const edm::Event & |
iEvent | ) |
|
|
inlineoverridevirtual |
Implements citk::IsolationConeDefinitionBase.
Definition at line 111 of file PhotonPFIsolationWithMapBasedVeto.cc.
References citk::IsolationConeDefinitionBase::_coneSize2, _miniAODVertexCodes, _vertexIndex, reco::deltaR2(), Exception, edm::Ptr< T >::get(), edm::Ptr< T >::isNonnull(), particleBasedIsolationMap, and mps_fire::result.
119 bool inFootprint =
false;
121 const float deltar2 =
125 if (aspacked.get()) {
126 inFootprint = isInFootprint(aspat_photonptr->associatedPackedPFCandidates(), aspacked);
129 if (aspacked->charge() != 0) {
130 bool is_vertex_allowed =
false;
133 is_vertex_allowed =
true;
138 result &= (is_vertex_allowed);
141 result &= deltar2 <
_coneSize2 && (!inFootprint);
146 else if (aspf.get() && aspf.isNonnull()) {
148 result &= deltar2 <
_coneSize2 && (!inFootprint);
154 throw cms::Exception(
"InvalidIsolationInput") <<
"The supplied candidate to be used as isolation "
155 <<
"was neither a reco::Photon nor a pat::Photon!";
edm::Handle< edm::ValueMap< std::vector< reco::PFCandidateRef > > > particleBasedIsolationMap
const std::vector< unsigned > _miniAODVertexCodes
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 |