#include <PhotonSelectorAlgo.h>
Public Member Functions | |
bool | passPhotonSelection (const reco::Photon &) const |
PhotonSelectorAlgo (float c_Et_, float c_iso_track_a, float c_iso_track_b, float c_iso_ecal_a, float c_iso_ecal_b, float c_iso_hcal_a, float c_hcal_b, float c_hoe_) | |
~PhotonSelectorAlgo () | |
Private Attributes | |
float | c_Et_ |
float | c_hoe_ |
float | c_iso_ecal_a_ |
float | c_iso_ecal_b_ |
float | c_iso_hcal_a_ |
float | c_iso_hcal_b_ |
float | c_iso_track_a_ |
float | c_iso_track_b_ |
Definition at line 9 of file PhotonSelectorAlgo.h.
PhotonSelectorAlgo::PhotonSelectorAlgo | ( | float | c_Et_, |
float | c_iso_track_a, | ||
float | c_iso_track_b, | ||
float | c_iso_ecal_a, | ||
float | c_iso_ecal_b, | ||
float | c_iso_hcal_a, | ||
float | c_hcal_b, | ||
float | c_hoe_ | ||
) |
Definition at line 6 of file PhotonSelectorAlgo.cc.
: c_Et_(c_Et), c_iso_track_a_(c_iso_track_a), c_iso_track_b_(c_iso_track_b), c_iso_ecal_a_(c_iso_ecal_a), c_iso_ecal_b_(c_iso_ecal_b), c_iso_hcal_a_(c_iso_hcal_a), c_iso_hcal_b_(c_iso_hcal_b), c_hoe_(c_hoe) { ; }
PhotonSelectorAlgo::~PhotonSelectorAlgo | ( | ) | [inline] |
Definition at line 21 of file PhotonSelectorAlgo.h.
{};
bool PhotonSelectorAlgo::passPhotonSelection | ( | const reco::Photon & | photon | ) | const |
Definition at line 22 of file PhotonSelectorAlgo.cc.
References c_Et_, c_hoe_, c_iso_ecal_a_, c_iso_ecal_b_, c_iso_hcal_a_, c_iso_hcal_b_, c_iso_track_a_, c_iso_track_b_, reco::Photon::ecalRecHitSumEtConeDR04(), reco::Photon::hadronicOverEm(), reco::Photon::hcalTowerSumEtConeDR04(), reco::LeafCandidate::pt(), and reco::Photon::trkSumPtHollowConeDR04().
Referenced by PFBlockAlgo::setInput().
{ // Photon ET float photonPt=photon.pt(); if( photonPt < c_Et_ ) return false; // HoE if (photon.hadronicOverEm() > c_hoe_ ) return false; // Track iso if( photon.trkSumPtHollowConeDR04() > c_iso_track_a_ + c_iso_track_b_*photonPt) return false; // ECAL iso if (photon.ecalRecHitSumEtConeDR04() > c_iso_ecal_a_ + c_iso_ecal_b_*photonPt) return false; // HCAL iso if (photon.hcalTowerSumEtConeDR04() > c_iso_hcal_a_ + c_iso_hcal_b_*photonPt) return false ; return true; }
float PhotonSelectorAlgo::c_Et_ [private] |
Definition at line 27 of file PhotonSelectorAlgo.h.
Referenced by passPhotonSelection().
float PhotonSelectorAlgo::c_hoe_ [private] |
Definition at line 34 of file PhotonSelectorAlgo.h.
Referenced by passPhotonSelection().
float PhotonSelectorAlgo::c_iso_ecal_a_ [private] |
Definition at line 31 of file PhotonSelectorAlgo.h.
Referenced by passPhotonSelection().
float PhotonSelectorAlgo::c_iso_ecal_b_ [private] |
Definition at line 31 of file PhotonSelectorAlgo.h.
Referenced by passPhotonSelection().
float PhotonSelectorAlgo::c_iso_hcal_a_ [private] |
Definition at line 33 of file PhotonSelectorAlgo.h.
Referenced by passPhotonSelection().
float PhotonSelectorAlgo::c_iso_hcal_b_ [private] |
Definition at line 33 of file PhotonSelectorAlgo.h.
Referenced by passPhotonSelection().
float PhotonSelectorAlgo::c_iso_track_a_ [private] |
Definition at line 29 of file PhotonSelectorAlgo.h.
Referenced by passPhotonSelection().
float PhotonSelectorAlgo::c_iso_track_b_ [private] |
Definition at line 29 of file PhotonSelectorAlgo.h.
Referenced by passPhotonSelection().