◆ PhotonPFIsolationWithMapBasedVeto() [1/2]
PhotonPFIsolationWithMapBasedVeto::PhotonPFIsolationWithMapBasedVeto |
( |
const edm::ParameterSet & |
c | ) |
|
|
inline |
Definition at line 68 of file PhotonPFIsolationWithMapBasedVeto.cc.
72 "miniAODVertexCodes")),
const std::vector< unsigned > _miniAODVertexCodes
const std::string _isolateAgainst
const unsigned _vertexIndex
const edm::InputTag _particleBasedIsolation
◆ PhotonPFIsolationWithMapBasedVeto() [2/2]
◆ ~PhotonPFIsolationWithMapBasedVeto()
PhotonPFIsolationWithMapBasedVeto::~PhotonPFIsolationWithMapBasedVeto |
( |
| ) |
|
|
inlineoverride |
◆ getEventInfo()
void PhotonPFIsolationWithMapBasedVeto::getEventInfo |
( |
const edm::Event & |
iEvent | ) |
|
|
inlineoverridevirtual |
◆ isInIsolationCone()
Implements citk::IsolationConeDefinitionBase.
Definition at line 111 of file PhotonPFIsolationWithMapBasedVeto.cc.
References citk::IsolationConeDefinitionBase::_coneSize2, _miniAODVertexCodes, _vertexIndex, reco::deltaR2(), Exception, edm::Ptr< T >::get(), edm::Ptr< T >::isNonnull(), particleBasedIsolationMap, displacedMuons_cfi::photon, and mps_fire::result.
119 bool inFootprint =
false;
121 const float deltar2 =
125 if (aspacked.get()) {
126 inFootprint = isInFootprint(aspat_photonptr->associatedPackedPFCandidates(), aspacked);
129 if (aspacked->charge() != 0) {
130 bool is_vertex_allowed =
false;
133 is_vertex_allowed =
true;
138 result &= (is_vertex_allowed);
146 else if (aspf.get() && aspf.isNonnull()) {
154 throw cms::Exception(
"InvalidIsolationInput") <<
"The supplied candidate to be used as isolation " 155 <<
"was neither a reco::Photon nor a pat::Photon!";
edm::Handle< edm::ValueMap< std::vector< reco::PFCandidateRef > > > particleBasedIsolationMap
const std::vector< unsigned > _miniAODVertexCodes
const unsigned _vertexIndex
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
◆ operator=()
◆ setConsumes()
◆ _isolateAgainst
const std::string PhotonPFIsolationWithMapBasedVeto::_isolateAgainst |
|
private |
◆ _miniAODVertexCodes
const std::vector<unsigned> PhotonPFIsolationWithMapBasedVeto::_miniAODVertexCodes |
|
private |
◆ _particleBasedIsolation
const edm::InputTag PhotonPFIsolationWithMapBasedVeto::_particleBasedIsolation |
|
private |
◆ _vertexCollection
const std::string PhotonPFIsolationWithMapBasedVeto::_vertexCollection |
|
private |
◆ _vertexIndex
const unsigned PhotonPFIsolationWithMapBasedVeto::_vertexIndex |
|
private |
◆ particleBasedIsolationMap
◆ particleBasedIsolationToken_