25 #include <unordered_map>
47 while (decimal != std::string::npos) {
71 "ElectronPFIsolationWithConeVeto");
79 bool isEB = (seed->seed().subdetId() ==
EcalBarrel);
84 if (aspacked->charge() != 0) {
85 bool is_vertex_allowed =
false;
87 if (vtxtype == aspacked->fromPV()) {
88 is_vertex_allowed =
true;
92 result = result && (is_vertex_allowed);
94 result = result && (deltar2 > vetoConeSize2 && deltar2 <
_coneSize2);
96 result = result && (deltar2 > vetoConeSize2 && deltar2 <
_coneSize2);
98 throw cms::Exception(
"InvalidIsolationInput") <<
"The supplied candidate to be used as isolation "
99 <<
"was neither a reco::PFCandidate nor a pat::PackedCandidate!";
IsolationConeDefinitionBase(const edm::ParameterSet &c)
ElectronPFIsolationWithConeVeto & operator=(const ElectronPFIsolationWithConeVeto &)=delete
const std::string _isolateAgainst
const edm::EventSetup & c
~ElectronPFIsolationWithConeVeto() override
Destructor.
T const * get() const
Returns C++ pointer to the item.
bool isInIsolationCone(const reco::CandidatePtr &physob, const reco::CandidatePtr &other) const final
const float _vetoConeSize2EE
edm::EDGetTokenT< reco::VertexCollection > _vtxToken
edm::Ptr< reco::GsfElectron > GsfElectronPtr
edm::Ptr< pat::PackedCandidate > PackedCandidatePtr
ElectronPFIsolationWithConeVeto(const edm::ParameterSet &c)
bool isNonnull() const
Checks for non-null.
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
void setConsumes(edm::ConsumesCollector) override
const float _vetoConeSize2EB
const std::vector< unsigned > _miniAODVertexCodes
std::string _additionalCode
#define DEFINE_EDM_PLUGIN(factory, type, name)
Power< A, B >::type pow(const A &a, const B &b)