Go to the documentation of this file.
25 #include <unordered_map>
47 while (decimal != std::string::npos) {
71 "ElectronPFIsolationWithConeVeto");
84 if (aspacked->charge() != 0) {
85 bool is_vertex_allowed =
false;
87 if (vtxtype == aspacked->fromPV()) {
88 is_vertex_allowed =
true;
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
~ElectronPFIsolationWithConeVeto() override
Destructor.
T const * get() const
Returns C++ pointer to the item.
ElectronPFIsolationWithConeVeto(const edm::ParameterSet &c)
ElectronPFIsolationWithConeVeto & operator=(const ElectronPFIsolationWithConeVeto &)=delete
const float _vetoConeSize2EB
#define DEFINE_EDM_PLUGIN(factory, type, name)
const float _vetoConeSize2EE
edm::Ptr< reco::GsfElectron > GsfElectronPtr
void setConsumes(edm::ConsumesCollector) override
edm::EDGetTokenT< reco::VertexCollection > _vtxToken
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
const std::vector< unsigned > _miniAODVertexCodes
bool isInIsolationCone(const reco::CandidatePtr &physob, const reco::CandidatePtr &other) const final
const std::string _isolateAgainst
std::string _additionalCode
bool isNonnull() const
Checks for non-null.
SuperClusterRef superCluster() const override
reference to a SuperCluster
Power< A, B >::type pow(const A &a, const B &b)
IsolationConeDefinitionBase(const edm::ParameterSet &c)