#include <ggPFPhotons.h>
Static Public Member Functions | |
static void | recoPhotonClusterLink (reco::SuperCluster sc, std::vector< reco::PFCandidatePtr > &insideMust, std::vector< reco::PFCandidatePtr > &outsideMust, edm::Handle< PFCandidateCollection > &pfCandidates, double etabound, double phibound) |
static std::pair< double, double > | SuperClusterSize (reco::SuperCluster sc, Handle< EcalRecHitCollection > &EBReducedRecHits, Handle< EcalRecHitCollection > &EEReducedRecHits, const CaloSubdetectorGeometry *geomBar, const CaloSubdetectorGeometry *geomEnd) |
Private Attributes | |
Handle< BeamSpot > | beamSpotHandle_ |
double | dEtaLowestC_ |
double | dPhiLowestC_ |
Handle< EcalRecHitCollection > | EBReducedRecHits_ |
Handle< EcalRecHitCollection > | EEReducedRecHits_ |
float | EinMustache_ |
bool | EleVeto_ |
Handle< EcalRecHitCollection > | ESRecHits_ |
const CaloSubdetectorGeometry * | geomBar_ |
const CaloSubdetectorGeometry * | geomEnd_ |
bool | hasSLConv_ |
bool | isConv_ |
bool | isPFEle_ |
reco::Photon | matchedPhot_ |
bool | matchPFReco_ |
float | MustacheEOut_ |
float | MustacheEtOut_ |
double | PFClPhiRMS_ |
double | PFClPhiRMSMust_ |
std::vector< reco::CaloCluster > | PFClusters_ |
reco::GsfElectron | PFElectron_ |
Handle < reco::GsfElectronCollection > | pfElectrons_ |
float | PFLowClusE_ |
double | PFPhoLocallyCorrE_ |
reco::Photon | PFPhoton_ |
Handle< reco::PhotonCollection > | pfPhotons_ |
float | PFPreShower1_ |
float | PFPreShower2_ |
std::vector< reco::CaloCluster > | PFSCFootprintClusters_ |
Definition at line 17 of file ggPFPhotons.h.
|
explicit |
Definition at line 8 of file ggPFPhotons.cc.
References abs, deltaR(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, isPFEle_, matchedPhot_, matchPFReco_, PFElectron_, PFPhoton_, pfPhotons_, and reco::Photon::superCluster().
|
virtual |
Definition at line 75 of file ggPFPhotons.cc.
std::pair< double, double > ggPFPhotons::CalcRMS | ( | vector< reco::CaloCluster > | PFClust, |
reco::Photon | PFPhoton | ||
) |
Definition at line 198 of file ggPFPhotons.cc.
References trackerHits::c, funct::cos(), relval_parameters_module::energy, reco::LeafCandidate::eta(), eta(), phi, reco::LeafCandidate::phi(), and mathSSE::sqrt().
Referenced by fillPFClusters(), and recoPhotonClusterLink().
|
inline |
Definition at line 39 of file ggPFPhotons.h.
void ggPFPhotons::fillPFClusters | ( | ) |
Definition at line 100 of file ggPFPhotons.cc.
References CalcRMS(), SiPixelRawToDigiRegional_cfi::deltaPhi, dEtaLowestC_, dPhiLowestC_, EBReducedRecHits_, EEReducedRecHits_, EinMustache_, relval_parameters_module::energy, ESRecHits_, reco::LeafCandidate::eta(), geomBar_, geomEnd_, ggPFClusters::getPFClusters(), ggPFESClusters::getPFESClusters(), ggPFClusters::getPFSuperclusterOverlap(), i, getHLTprescales::index, isPFEle_, matchedPhot_, reco::Mustache::MustacheClust(), MustacheEOut_, MustacheEtOut_, PFClPhiRMS_, PFClPhiRMSMust_, PFClusters_, PFElectron_, PFLowClusE_, reco::GsfElectron::pflowSuperCluster(), PFPhoton_, PFPreShower1_, PFPreShower2_, PFPS1(), PFPS2(), PFSCFootprintClusters_, reco::Photon::pfSuperCluster(), phi, reco::LeafCandidate::phi(), position, funct::sin(), reco::Photon::superCluster(), and theta().
Referenced by ggPFPhotonAnalyzer::analyze().
double ggPFPhotons::getPFPhoECorr | ( | std::vector< reco::CaloCluster > | PFClusters, |
const GBRForest * | ReaderLCEB, | ||
const GBRForest * | ReaderLCEE | ||
) |
Definition at line 226 of file ggPFPhotons.cc.
References beamSpotHandle_, EBReducedRecHits_, EEReducedRecHits_, geomBar_, geomEnd_, ggPFClusters::getPFClusters(), i, getHLTprescales::index, isPFEle_, ggPFClusters::LocalEnergyCorrection(), reco::Mustache::MustacheClust(), PFClusters_, PFElectron_, reco::GsfElectron::pflowSuperCluster(), PFPhoLocallyCorrE_, PFPhoton_, and reco::Photon::pfSuperCluster().
Referenced by ggPFPhotonAnalyzer::analyze().
|
inline |
|
inline |
|
inline |
Definition at line 38 of file ggPFPhotons.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 44 of file ggPFPhotons.h.
|
inline |
|
inline |
|
inline |
Definition at line 50 of file ggPFPhotons.h.
Referenced by ggPFPhotonAnalyzer::analyze(), and recoPhotonClusterLink().
|
inline |
Definition at line 51 of file ggPFPhotons.h.
|
inline |
|
inline |
bool ggPFPhotons::PFElectronVeto | ( | edm::Handle< reco::ConversionCollection > & | convH, |
edm::Handle< reco::GsfElectronCollection > & | gsfElectronsHandle | ||
) |
Definition at line 77 of file ggPFPhotons.cc.
References beamSpotHandle_, ConversionTools::hasMatchedPromptElectron(), isPFEle_, PFElectron_, and reco::GsfElectron::superCluster().
|
inline |
|
inline |
Definition at line 40 of file ggPFPhotons.h.
Referenced by ggPFPhotonAnalyzer::analyze(), and fillPFClusters().
|
inline |
Definition at line 41 of file ggPFPhotons.h.
Referenced by ggPFPhotonAnalyzer::analyze(), and fillPFClusters().
void ggPFPhotons::PhotonPFCandMatch | ( | reco::SuperCluster | sc, |
std::vector< reco::PFCandidatePtr > & | insideBox, | ||
edm::Handle< PFCandidateCollection > & | pfCandidates, | ||
vector< reco::CaloCluster > & | PFClust, | ||
std::vector< DetId > & | MatchedRH | ||
) |
Definition at line 530 of file ggPFPhotons.cc.
References abs, ggPFClusters::BasicClusterPFCandLink(), trackerHits::c, reco::SuperCluster::clustersBegin(), reco::SuperCluster::clustersEnd(), filterCSVwithJSON::copy, funct::cos(), deltaR(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, EBReducedRecHits_, EEReducedRecHits_, reco::tau::disc::Eta(), reco::CaloCluster::eta(), cropTnPTrees::frac, geomBar_, geomEnd_, i, getHLTprescales::index, reco::Photon::isEB(), reco::Photon::isEE(), matchedPhot_, benchmark_cfg::pdgId, colinearityKinematic::Phi, reco::CaloCluster::phi(), reco::CaloCluster::setEnergy(), reco::CaloCluster::setPosition(), mathSSE::sqrt(), SuperClusterSize(), x, reco::CaloCluster::x(), detailsBasic3DVector::y, reco::CaloCluster::y(), detailsBasic3DVector::z, and reco::CaloCluster::z().
Referenced by ggPFPhotonAnalyzer::analyze().
std::vector< reco::CaloCluster > ggPFPhotons::recoPhotonClusterLink | ( | reco::Photon | phot, |
edm::Handle< PFCandidateCollection > & | pfCandidates | ||
) |
Definition at line 250 of file ggPFPhotons.cc.
References CalcRMS(), funct::cos(), SiPixelRawToDigiRegional_cfi::deltaPhi, dEtaLowestC_, dPhiLowestC_, EinMustache_, relval_parameters_module::energy, reco::LeafCandidate::eta(), i, getHLTprescales::index, matchedPhot_, reco::Mustache::MustacheClust(), MustacheEOut_, MustacheEtOut_, PFClPhiRMS_, PFClPhiRMSMust_, PFClusters_, PFLowClusE_, PFPhoton_, PFPreShower1_, PFPreShower2_, phi, reco::LeafCandidate::phi(), position, funct::sin(), reco::Photon::superCluster(), SuperClusterSize(), and theta().
|
static |
Definition at line 416 of file ggPFPhotons.cc.
References funct::cos(), i, getHLTprescales::index, reco::Mustache::MustacheClust(), PFClusters(), position, and reco::SuperCluster::seed().
std::pair< float, float > ggPFPhotons::SLPoint | ( | ) |
Definition at line 85 of file ggPFPhotons.cc.
References beamSpotHandle_, ggPFTracks::gsfElectronProj(), hasSLConv_, ggPFTracks::isConv(), isConv_, isPFEle_, PFElectron_, PFPhoton_, and ggPFTracks::SLCombZVtx().
Referenced by ggPFPhotonAnalyzer::analyze().
std::pair< double, double > ggPFPhotons::SuperClusterSize | ( | reco::Photon | phot | ) |
Definition at line 358 of file ggPFPhotons.cc.
References funct::cos(), deltaR(), dPhi(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, EBReducedRecHits_, EEReducedRecHits_, PV3DBase< T, PVType, FrameType >::eta(), eta(), geomBar_, geomEnd_, CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), i, reco::Photon::isEB(), step1_ZMM_7Tev::MaxEta, ecalTB2006H4_GenSimDigiReco_cfg::MaxPhi, phi, PV3DBase< T, PVType, FrameType >::phi(), and reco::Photon::superCluster().
Referenced by PhotonPFCandMatch(), and recoPhotonClusterLink().
|
static |
Definition at line 461 of file ggPFPhotons.cc.
References reco::SuperCluster::clustersBegin(), reco::SuperCluster::clustersEnd(), funct::cos(), dPhi(), PV3DBase< T, PVType, FrameType >::eta(), reco::CaloCluster::eta(), eta(), CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), i, step1_ZMM_7Tev::MaxEta, ecalTB2006H4_GenSimDigiReco_cfg::MaxPhi, phi, PV3DBase< T, PVType, FrameType >::phi(), reco::CaloCluster::phi(), and DetId::subdetId().
Definition at line 98 of file ggPFPhotons.h.
Referenced by getPFPhoECorr(), PFElectronVeto(), and SLPoint().
|
private |
Definition at line 114 of file ggPFPhotons.h.
Referenced by fillPFClusters(), and recoPhotonClusterLink().
|
private |
Definition at line 115 of file ggPFPhotons.h.
Referenced by fillPFClusters(), and recoPhotonClusterLink().
|
private |
Definition at line 93 of file ggPFPhotons.h.
Referenced by fillPFClusters(), getPFPhoECorr(), PhotonPFCandMatch(), and SuperClusterSize().
|
private |
Definition at line 94 of file ggPFPhotons.h.
Referenced by fillPFClusters(), getPFPhoECorr(), PhotonPFCandMatch(), and SuperClusterSize().
|
private |
Definition at line 108 of file ggPFPhotons.h.
Referenced by fillPFClusters(), and recoPhotonClusterLink().
|
private |
Definition at line 103 of file ggPFPhotons.h.
|
private |
Definition at line 95 of file ggPFPhotons.h.
Referenced by fillPFClusters().
|
private |
Definition at line 96 of file ggPFPhotons.h.
Referenced by fillPFClusters(), getPFPhoECorr(), PhotonPFCandMatch(), and SuperClusterSize().
|
private |
Definition at line 97 of file ggPFPhotons.h.
Referenced by fillPFClusters(), getPFPhoECorr(), PhotonPFCandMatch(), and SuperClusterSize().
|
private |
Definition at line 105 of file ggPFPhotons.h.
Referenced by SLPoint().
|
private |
Definition at line 104 of file ggPFPhotons.h.
Referenced by SLPoint().
|
private |
Definition at line 102 of file ggPFPhotons.h.
Referenced by fillPFClusters(), getPFPhoECorr(), ggPFPhotons(), PFElectronVeto(), and SLPoint().
|
private |
Definition at line 90 of file ggPFPhotons.h.
Referenced by fillPFClusters(), ggPFPhotons(), PhotonPFCandMatch(), and recoPhotonClusterLink().
|
private |
Definition at line 101 of file ggPFPhotons.h.
Referenced by ggPFPhotons().
|
private |
Definition at line 109 of file ggPFPhotons.h.
Referenced by fillPFClusters(), and recoPhotonClusterLink().
|
private |
Definition at line 110 of file ggPFPhotons.h.
Referenced by fillPFClusters(), and recoPhotonClusterLink().
|
private |
Definition at line 116 of file ggPFPhotons.h.
Referenced by fillPFClusters(), and recoPhotonClusterLink().
|
private |
Definition at line 117 of file ggPFPhotons.h.
Referenced by fillPFClusters(), and recoPhotonClusterLink().
|
private |
Definition at line 106 of file ggPFPhotons.h.
Referenced by fillPFClusters(), getPFPhoECorr(), and recoPhotonClusterLink().
|
private |
Definition at line 100 of file ggPFPhotons.h.
Referenced by fillPFClusters(), getPFPhoECorr(), ggPFPhotons(), PFElectronVeto(), and SLPoint().
|
private |
Definition at line 92 of file ggPFPhotons.h.
|
private |
Definition at line 113 of file ggPFPhotons.h.
Referenced by fillPFClusters(), and recoPhotonClusterLink().
|
private |
Definition at line 118 of file ggPFPhotons.h.
Referenced by getPFPhoECorr().
|
private |
Definition at line 99 of file ggPFPhotons.h.
Referenced by fillPFClusters(), getPFPhoECorr(), ggPFPhotons(), recoPhotonClusterLink(), and SLPoint().
|
private |
Definition at line 91 of file ggPFPhotons.h.
Referenced by ggPFPhotons().
|
private |
Definition at line 111 of file ggPFPhotons.h.
Referenced by fillPFClusters(), and recoPhotonClusterLink().
|
private |
Definition at line 112 of file ggPFPhotons.h.
Referenced by fillPFClusters(), and recoPhotonClusterLink().
|
private |
Definition at line 107 of file ggPFPhotons.h.
Referenced by fillPFClusters().