◆ ElectronPFIsolationWithMapBasedVeto() [1/2]
ElectronPFIsolationWithMapBasedVeto::ElectronPFIsolationWithMapBasedVeto |
( |
const edm::ParameterSet & |
c | ) |
|
|
inline |
Definition at line 68 of file ElectronPFIsolationWithMapBasedVeto.cc.
72 "miniAODVertexCodes")),
const std::vector< unsigned > _miniAODVertexCodes
const std::string _isolateAgainst
const edm::InputTag _particleBasedIsolation
◆ ElectronPFIsolationWithMapBasedVeto() [2/2]
◆ ~ElectronPFIsolationWithMapBasedVeto()
ElectronPFIsolationWithMapBasedVeto::~ElectronPFIsolationWithMapBasedVeto |
( |
| ) |
|
|
inlineoverride |
◆ getEventInfo()
void ElectronPFIsolationWithMapBasedVeto::getEventInfo |
( |
const edm::Event & |
iEvent | ) |
|
|
inlineoverridevirtual |
◆ isInIsolationCone()
Implements citk::IsolationConeDefinitionBase.
Definition at line 110 of file ElectronPFIsolationWithMapBasedVeto.cc.
References citk::IsolationConeDefinitionBase::_coneSize2, _miniAODVertexCodes, pat::Electron::associatedPackedPFCandidates(), reco::deltaR2(), HPSPFTauProducerPuppi_cfi::electron, Exception, edm::Ptr< T >::get(), particleBasedIsolationMap, and mps_fire::result.
118 bool inFootprint =
false;
120 const float deltar2 =
124 if (aspacked.get()) {
125 inFootprint = isInFootprint(aspat_electronptr->associatedPackedPFCandidates(), aspacked);
128 if (aspacked->charge() != 0) {
129 bool is_vertex_allowed =
false;
131 if (vtxtype == aspacked->fromPV()) {
132 is_vertex_allowed =
true;
137 result &= (is_vertex_allowed);
144 else if (aspf.get()) {
152 throw cms::Exception(
"InvalidIsolationInput") <<
"The supplied candidate to be used as isolation " 153 <<
"was neither a reco::Photon nor a pat::Photon!";
const std::vector< unsigned > _miniAODVertexCodes
edm::Handle< edm::ValueMap< std::vector< reco::PFCandidateRef > > > particleBasedIsolationMap
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
◆ operator=()
◆ setConsumes()
◆ _isolateAgainst
const std::string ElectronPFIsolationWithMapBasedVeto::_isolateAgainst |
|
private |
◆ _miniAODVertexCodes
const std::vector<unsigned> ElectronPFIsolationWithMapBasedVeto::_miniAODVertexCodes |
|
private |
◆ _particleBasedIsolation
const edm::InputTag ElectronPFIsolationWithMapBasedVeto::_particleBasedIsolation |
|
private |
◆ _vertexCollection
const std::string ElectronPFIsolationWithMapBasedVeto::_vertexCollection |
|
private |
◆ particleBasedIsolationMap
◆ particleBasedIsolationToken_