Go to the documentation of this file.
25 #include <unordered_map>
48 while (decimal != std::string::npos) {
84 if (aspacked->charge() != 0) {
85 bool is_vertex_allowed =
false;
88 is_vertex_allowed =
true;
92 result &= (is_vertex_allowed);
98 throw cms::Exception(
"InvalidIsolationInput") <<
"The supplied candidate to be used as isolation "
99 <<
"was neither a reco::PFCandidate nor a pat::PackedCandidate!";
edm::Ptr< pat::PackedCandidate > PackedCandidatePtr
const unsigned _vertexIndex
T const * get() const
Returns C++ pointer to the item.
const std::vector< unsigned > _miniAODVertexCodes
const std::string _isolateAgainst
void setConsumes(edm::ConsumesCollector) override
const float _vetoConeSize2EB
PhotonPFIsolationWithConeVeto & operator=(const PhotonPFIsolationWithConeVeto &)=delete
#define DEFINE_EDM_PLUGIN(factory, type, name)
const float _vetoConeSize2EE
edm::EDGetTokenT< reco::VertexCollection > _vtxToken
edm::Ptr< reco::Photon > recoPhotonPtr
~PhotonPFIsolationWithConeVeto() override
Destructor.
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
bool isInIsolationCone(const reco::CandidatePtr &photon, const reco::CandidatePtr &pfCandidate) const final
std::string _additionalCode
PhotonPFIsolationWithConeVeto(const edm::ParameterSet &c)
bool isNonnull() const
Checks for non-null.
Power< A, B >::type pow(const A &a, const B &b)
IsolationConeDefinitionBase(const edm::ParameterSet &c)