Go to the documentation of this file.
47 if (deltar2 <= _vetoConeSize2 || deltar2 >=
_coneSize2)
56 if (aspacked->charge() != 0) {
57 bool is_vertex_allowed =
false;
59 if (vtxtype == aspacked->fromPV()) {
60 is_vertex_allowed =
true;
68 throw cms::Exception(
"InvalidIsolationInput") <<
"The supplied candidate to be used as isolation "
69 <<
"was neither a reco::PFCandidate nor a pat::PackedCandidate!";
edm::Ptr< pat::PackedCandidate > PackedCandidatePtr
bool isInIsolationCone(const reco::CandidatePtr &physob, const reco::CandidatePtr &other) const final
void setConsumes(edm::ConsumesCollector) override
T const * get() const
Returns C++ pointer to the item.
~MuonPFIsolationWithConeVeto() override
Destructor.
const double _vetoConeSize2
#define DEFINE_EDM_PLUGIN(factory, type, name)
const std::vector< unsigned > _miniAODVertexCodes
edm::EDGetTokenT< reco::VertexCollection > _vtxToken
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
std::string _additionalCode
MuonPFIsolationWithConeVeto & operator=(const MuonPFIsolationWithConeVeto &)=delete
MuonPFIsolationWithConeVeto(const edm::ParameterSet &c)
bool isNonnull() const
Checks for non-null.
Power< A, B >::type pow(const A &a, const B &b)
const double _vetoThreshold
IsolationConeDefinitionBase(const edm::ParameterSet &c)