Go to the documentation of this file.
50 if (aspacked->charge() != 0) {
51 bool is_vertex_allowed =
false;
53 if (vtxtype == aspacked->fromPV()) {
54 is_vertex_allowed =
true;
64 throw cms::Exception(
"InvalidIsolationInput") <<
"The supplied candidate to be used as isolation "
65 <<
"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)