PhotonPFIsolationWithConeVeto::PhotonPFIsolationWithConeVeto |
( |
const edm::ParameterSet & |
c | ) |
|
|
inline |
virtual PhotonPFIsolationWithConeVeto::~PhotonPFIsolationWithConeVeto |
( |
| ) |
|
|
inlinevirtual |
Implements citk::IsolationConeDefinitionBase.
Definition at line 80 of file PhotonPFIsolationWithConeVeto.cc.
References citk::IsolationConeDefinitionBase::_coneSize2, _miniAODVertexCodes, _vertexIndex, _vetoConeSize2EB, _vetoConeSize2EE, reco::deltaR2(), EcalBarrel, Exception, edm::Ptr< T >::get(), edm::Ptr< T >::isNonnull(), mps_fire::result, and fileCollector::seed.
86 bool isEB = ( seed->seed().subdetId() ==
EcalBarrel );
90 if( aspacked.isNonnull() && aspacked.get() ) {
91 if( aspacked->charge() != 0 ) {
92 bool is_vertex_allowed =
false;
95 is_vertex_allowed =
true;
99 result &= ( is_vertex_allowed );
101 result &= deltar2 > vetoConeSize2 && deltar2 <
_coneSize2 ;
102 }
else if ( aspf.isNonnull() && aspf.get() ) {
103 result &= deltar2 > vetoConeSize2 && deltar2 <
_coneSize2;
106 <<
"The supplied candidate to be used as isolation "
107 <<
"was neither a reco::PFCandidate nor a pat::PackedCandidate!";
const unsigned _vertexIndex
const std::vector< unsigned > _miniAODVertexCodes
const float _vetoConeSize2EB
const float _vetoConeSize2EE
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
const std::string PhotonPFIsolationWithConeVeto::_isolateAgainst |
|
private |
const std::vector<unsigned> PhotonPFIsolationWithConeVeto::_miniAODVertexCodes |
|
private |
const unsigned PhotonPFIsolationWithConeVeto::_vertexIndex |
|
private |
const float PhotonPFIsolationWithConeVeto::_vetoConeSize2EB |
|
private |
const float PhotonPFIsolationWithConeVeto::_vetoConeSize2EE |
|
private |