44 "MuonPFIsolationWithConeVeto");
54 if( aspacked->charge() != 0 ) {
55 bool is_vertex_allowed =
false;
57 if( vtxtype == aspacked->fromPV() ) {
58 is_vertex_allowed =
true;
62 result *= ( is_vertex_allowed );
69 <<
"The supplied candidate to be used as isolation "
70 <<
"was neither a reco::PFCandidate nor a pat::PackedCandidate!";
IsolationConeDefinitionBase(const edm::ParameterSet &c)
MuonPFIsolationWithConeVeto & operator=(const MuonPFIsolationWithConeVeto &)=delete
virtual ~MuonPFIsolationWithConeVeto()
Destructor.
T const * get() const
Returns C++ pointer to the item.
void setConsumes(edm::ConsumesCollector)
const double _vetoConeSize2
edm::Ptr< pat::PackedCandidate > PackedCandidatePtr
const double _vetoThreshold
bool isInIsolationCone(const reco::CandidatePtr &physob, const reco::CandidatePtr &other) const overridefinal
MuonPFIsolationWithConeVeto(const edm::ParameterSet &c)
bool isNonnull() const
Checks for non-null.
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
std::string _additionalCode
#define DEFINE_EDM_PLUGIN(factory, type, name)
Power< A, B >::type pow(const A &a, const B &b)
const std::vector< unsigned > _miniAODVertexCodes
edm::EDGetTokenT< reco::VertexCollection > _vtxToken