#include <EgHLTOffPho.h>
Classes | |
struct | ClusShapeData |
struct | IsolData |
Public Member Functions | |
int | cutCode () const |
float | detEta () const |
float | e1x5Over5x5 () const |
float | e2x5MaxOver5x5 () const |
float | energy () const |
float | et () const |
float | eta () const |
float | etaSC () const |
float | etSC () const |
float | hltIsolEm () const |
float | hltIsolHad () const |
float | hltIsolTrks () const |
float | hOverE () const |
bool | isGap () const |
float | isolEm () const |
float | isolHad () const |
int | isolNrTrks () const |
float | isolPtTrks () const |
int | looseCutCode () const |
OffPho (const reco::Photon &pho, const ClusShapeData &shapeData, const IsolData &isolData) | |
const math::XYZTLorentzVector & | p4 () const |
float | phi () const |
float | phiSC () const |
float | pt () const |
float | r9 () const |
const reco::Photon * | recoPho () const |
void | setCutCode (int code) |
void | setLooseCutCode (int code) |
void | setTrigBits (TrigCodes::TrigBitSet bits) |
void | setTrigCutsCutCodes (const std::vector< std::pair< TrigCodes::TrigBitSet, int > > trigCutsCutCodes) |
float | sigmaEtaEta () const |
float | sigmaEtaEtaUnCorr () const |
float | sigmaIEtaIEta () const |
float | sigmaIPhiIPhi () const |
float | sigmaPhiPhi () const |
TrigCodes::TrigBitSet | trigBits () const |
int | trigCutsCutCode (const TrigCodes::TrigBitSet &trigger) const |
float | zVtx () const |
~OffPho () | |
Private Attributes | |
ClusShapeData | clusShapeData_ |
int | cutCode_ |
IsolData | isolData_ |
int | looseCutCode_ |
const reco::Photon * | pho_ |
TrigCodes::TrigBitSet | trigBits_ |
std::vector< std::pair < TrigCodes::TrigBitSet, int > > | trigCutsCutCodes_ |
Definition at line 27 of file EgHLTOffPho.h.
egHLT::OffPho::OffPho | ( | const reco::Photon & | pho, |
const ClusShapeData & | shapeData, | ||
const IsolData & | isolData | ||
) | [inline] |
Definition at line 75 of file EgHLTOffPho.h.
: pho_(&pho),clusShapeData_(shapeData),isolData_(isolData), cutCode_(int(EgCutCodes::INVALID)),looseCutCode_(int(EgCutCodes::INVALID)){}
egHLT::OffPho::~OffPho | ( | ) | [inline] |
Definition at line 78 of file EgHLTOffPho.h.
{}
int egHLT::OffPho::cutCode | ( | ) | const [inline] |
Definition at line 129 of file EgHLTOffPho.h.
References cutCode_.
Referenced by egHLT::MonElemFuncs::initStdEffHists(), egHLT::MonElemFuncs::initTrigTagProbeHist(), and egHLT::MonElemFuncs::initTrigTagProbeHists().
{return cutCode_;}
float egHLT::OffPho::detEta | ( | ) | const [inline] |
Definition at line 98 of file EgHLTOffPho.h.
References etaSC().
Referenced by egHLT::OffEgSel::getCutCode(), egHLT::MonElemFuncs::initStdPhoCutHists(), and egHLT::MonElemFuncs::initStdPhoHists().
{return etaSC();}
float egHLT::OffPho::e1x5Over5x5 | ( | ) | const [inline] |
Definition at line 116 of file EgHLTOffPho.h.
References clusShapeData_, and egHLT::OffPho::ClusShapeData::e1x5Over5x5.
Referenced by egHLT::MonElemFuncs::initStdPhoHists().
{return clusShapeData_.e1x5Over5x5;}
float egHLT::OffPho::e2x5MaxOver5x5 | ( | ) | const [inline] |
Definition at line 115 of file EgHLTOffPho.h.
References clusShapeData_, and egHLT::OffPho::ClusShapeData::e2x5MaxOver5x5.
Referenced by egHLT::MonElemFuncs::initStdPhoHists().
{return clusShapeData_.e2x5MaxOver5x5;}
float egHLT::OffPho::energy | ( | ) | const [inline] |
Definition at line 93 of file EgHLTOffPho.h.
References reco::LeafCandidate::energy(), and pho_.
Referenced by etSC(), and egHLT::OffEgSel::getCutCode().
float egHLT::OffPho::et | ( | ) | const [inline] |
Definition at line 91 of file EgHLTOffPho.h.
References reco::LeafCandidate::et(), and pho_.
Referenced by egHLT::OffEgSel::getCutCode(), egHLT::MonElemFuncs::initStdPhoCutHists(), egHLT::MonElemFuncs::initStdPhoHists(), and egHLT::PhoHLTFilterMon::PhoHLTFilterMon().
float egHLT::OffPho::eta | ( | ) | const [inline] |
Definition at line 94 of file EgHLTOffPho.h.
References reco::LeafCandidate::eta(), and pho_.
Referenced by egHLT::EgTrigTagProbeCut_NewPho::pass(), and egHLT::PhoHLTFilterMon::PhoHLTFilterMon().
float egHLT::OffPho::etaSC | ( | ) | const [inline] |
Definition at line 97 of file EgHLTOffPho.h.
References pho_, and reco::Photon::superCluster().
Referenced by detEta(), egHLT::OffEgSel::getCutCode(), and sigmaEtaEta().
{return pho_->superCluster()->eta();}
float egHLT::OffPho::etSC | ( | ) | const [inline] |
Definition at line 96 of file EgHLTOffPho.h.
References energy(), pho_, and reco::Photon::superCluster().
Referenced by egHLT::MonElemFuncs::initStdPhoHists(), egHLT::MonElemFuncs::initTrigTagProbeHist(), and egHLT::MonElemFuncs::initTrigTagProbeHists().
{return pho_->superCluster()->position().rho()/pho_->superCluster()->position().r()*energy();}
float egHLT::OffPho::hltIsolEm | ( | ) | const [inline] |
Definition at line 126 of file EgHLTOffPho.h.
References egHLT::OffPho::IsolData::hltEm, and isolData_.
Referenced by egHLT::OffEgSel::getCutCode().
float egHLT::OffPho::hltIsolHad | ( | ) | const [inline] |
Definition at line 124 of file EgHLTOffPho.h.
References egHLT::OffPho::IsolData::hltHad, and isolData_.
Referenced by egHLT::OffEgSel::getCutCode().
float egHLT::OffPho::hltIsolTrks | ( | ) | const [inline] |
Definition at line 125 of file EgHLTOffPho.h.
References egHLT::OffPho::IsolData::hltTrks, and isolData_.
Referenced by egHLT::OffEgSel::getCutCode().
float egHLT::OffPho::hOverE | ( | ) | const [inline] |
Definition at line 106 of file EgHLTOffPho.h.
References reco::Photon::hadronicOverEm(), and pho_.
Referenced by egHLT::OffEgSel::getCutCode(), and egHLT::MonElemFuncs::initStdPhoHists().
{return pho_->hadronicOverEm();}
bool egHLT::OffPho::isGap | ( | ) | const [inline] |
Definition at line 103 of file EgHLTOffPho.h.
References reco::Photon::isEBEEGap(), reco::Photon::isEBGap(), reco::Photon::isEEGap(), and pho_.
Referenced by egHLT::OffEgSel::getCutCode().
float egHLT::OffPho::isolEm | ( | ) | const [inline] |
Definition at line 120 of file EgHLTOffPho.h.
References egHLT::OffPho::IsolData::em, and isolData_.
Referenced by egHLT::OffEgSel::getCutCode(), and egHLT::MonElemFuncs::initStdPhoHists().
float egHLT::OffPho::isolHad | ( | ) | const [inline] |
Definition at line 121 of file EgHLTOffPho.h.
References egHLT::OffPho::IsolData::had, and isolData_.
Referenced by egHLT::OffEgSel::getCutCode(), and egHLT::MonElemFuncs::initStdPhoHists().
int egHLT::OffPho::isolNrTrks | ( | ) | const [inline] |
Definition at line 122 of file EgHLTOffPho.h.
References isolData_, and egHLT::OffPho::IsolData::nrTrks.
Referenced by egHLT::OffEgSel::getCutCode(), and egHLT::MonElemFuncs::initStdPhoHists().
float egHLT::OffPho::isolPtTrks | ( | ) | const [inline] |
Definition at line 123 of file EgHLTOffPho.h.
References isolData_, and egHLT::OffPho::IsolData::ptTrks.
Referenced by egHLT::OffEgSel::getCutCode(), and egHLT::MonElemFuncs::initStdPhoHists().
int egHLT::OffPho::looseCutCode | ( | ) | const [inline] |
const math::XYZTLorentzVector& egHLT::OffPho::p4 | ( | ) | const [inline] |
Definition at line 101 of file EgHLTOffPho.h.
References reco::Photon::p4(), and pho_.
Referenced by egHLT::EgTrigTagProbeCut_NewPho::pass().
float egHLT::OffPho::phi | ( | void | ) | const [inline] |
Definition at line 95 of file EgHLTOffPho.h.
References reco::LeafCandidate::phi(), and pho_.
Referenced by egHLT::MonElemFuncs::initStdPhoCutHists(), egHLT::MonElemFuncs::initStdPhoHists(), and egHLT::EgTrigTagProbeCut_NewPho::pass().
float egHLT::OffPho::phiSC | ( | ) | const [inline] |
Definition at line 99 of file EgHLTOffPho.h.
References pho_, and reco::Photon::superCluster().
{return pho_->superCluster()->phi();}
float egHLT::OffPho::pt | ( | ) | const [inline] |
Definition at line 92 of file EgHLTOffPho.h.
References pho_, and reco::LeafCandidate::pt().
float egHLT::OffPho::r9 | ( | ) | const [inline] |
Definition at line 117 of file EgHLTOffPho.h.
References clusShapeData_, and egHLT::OffPho::ClusShapeData::r9.
Referenced by egHLT::OffEgSel::getCutCode(), and egHLT::MonElemFuncs::initStdPhoHists().
{return clusShapeData_.r9;}
const reco::Photon* egHLT::OffPho::recoPho | ( | ) | const [inline] |
void egHLT::OffPho::setCutCode | ( | int | code | ) | [inline] |
Definition at line 81 of file EgHLTOffPho.h.
References cutCode_.
Referenced by egHLT::OffHelper::fillOffPhoVec().
{cutCode_=code;}
void egHLT::OffPho::setLooseCutCode | ( | int | code | ) | [inline] |
Definition at line 82 of file EgHLTOffPho.h.
References looseCutCode_.
Referenced by egHLT::OffHelper::fillOffPhoVec().
{looseCutCode_=code;}
void egHLT::OffPho::setTrigBits | ( | TrigCodes::TrigBitSet | bits | ) | [inline] |
void egHLT::OffPho::setTrigCutsCutCodes | ( | const std::vector< std::pair< TrigCodes::TrigBitSet, int > > | trigCutsCutCodes | ) | [inline] |
Definition at line 85 of file EgHLTOffPho.h.
References trigCutsCutCodes_.
Referenced by egHLT::OffHelper::fillOffPhoVec().
{trigCutsCutCodes_=trigCutsCutCodes;}
float OffPho::sigmaEtaEta | ( | ) | const |
Definition at line 5 of file EgHLTOffPho.cc.
References clusShapeData_, etaSC(), and egHLT::OffPho::ClusShapeData::sigmaEtaEta.
Referenced by egHLT::OffEgSel::getCutCode().
{ if(fabs(etaSC())<1.479) return clusShapeData_.sigmaEtaEta; //barrel case, no correction else{ //endcap, need to apply eta correction return clusShapeData_.sigmaEtaEta - 0.02*( fabs(etaSC()) - 2.3); } }
float egHLT::OffPho::sigmaEtaEtaUnCorr | ( | ) | const [inline] |
Definition at line 111 of file EgHLTOffPho.h.
References clusShapeData_, and egHLT::OffPho::ClusShapeData::sigmaEtaEta.
{return clusShapeData_.sigmaEtaEta;}
float egHLT::OffPho::sigmaIEtaIEta | ( | ) | const [inline] |
Definition at line 112 of file EgHLTOffPho.h.
References clusShapeData_, and egHLT::OffPho::ClusShapeData::sigmaIEtaIEta.
Referenced by egHLT::OffEgSel::getCutCode(), and egHLT::MonElemFuncs::initStdPhoHists().
{return clusShapeData_.sigmaIEtaIEta;}
float egHLT::OffPho::sigmaIPhiIPhi | ( | ) | const [inline] |
Definition at line 114 of file EgHLTOffPho.h.
References clusShapeData_, and egHLT::OffPho::ClusShapeData::sigmaIPhiIPhi.
{return clusShapeData_.sigmaIPhiIPhi;}
float egHLT::OffPho::sigmaPhiPhi | ( | ) | const [inline] |
Definition at line 113 of file EgHLTOffPho.h.
References clusShapeData_, and egHLT::OffPho::ClusShapeData::sigmaPhiPhi.
{return clusShapeData_.sigmaPhiPhi;}
TrigCodes::TrigBitSet egHLT::OffPho::trigBits | ( | ) | const [inline] |
Definition at line 137 of file EgHLTOffPho.h.
References trigBits_.
Referenced by egHLT::PhoHLTFilterMon::fill(), and egHLT::EgTrigTagProbeCut_NewPho::pass().
{return trigBits_;}
int OffPho::trigCutsCutCode | ( | const TrigCodes::TrigBitSet & | trigger | ) | const |
Definition at line 14 of file EgHLTOffPho.cc.
References first, i, and trigCutsCutCodes_.
Referenced by egHLT::MonElemFuncs::initTightLooseDiObjTrigHistsTrigCuts(), and egHLT::MonElemFuncs::initTightLooseTrigHistsTrigCuts().
{ //yes maybe a sorted vector might be better but 1) its small and 2) bitset doesnt support < operator //okay laugh, for some reason I cant overload the == operator (brain just not working), hence the non stl'y way //std::vector<std::pair<TrigCodes::TrigBitSet,int> >::const_iterator it; //it = std::find(trigCutsCodes_.begin(),trigCutsCodes_.end(),trigger); //if(it!=trigCutsCodes_.end()) return it->second; //else return 0; //defaults to passing for(size_t i=0;i<trigCutsCutCodes_.size();i++) if(trigger==trigCutsCutCodes_[i].first) return trigCutsCutCodes_[i].second; return 0; //defaults to passing }
float egHLT::OffPho::zVtx | ( | ) | const [inline] |
Definition at line 100 of file EgHLTOffPho.h.
References pho_, and reco::LeafCandidate::vz().
ClusShapeData egHLT::OffPho::clusShapeData_ [private] |
Definition at line 57 of file EgHLTOffPho.h.
Referenced by e1x5Over5x5(), e2x5MaxOver5x5(), r9(), sigmaEtaEta(), sigmaEtaEtaUnCorr(), sigmaIEtaIEta(), sigmaIPhiIPhi(), and sigmaPhiPhi().
int egHLT::OffPho::cutCode_ [private] |
Definition at line 61 of file EgHLTOffPho.h.
Referenced by cutCode(), and setCutCode().
IsolData egHLT::OffPho::isolData_ [private] |
Definition at line 58 of file EgHLTOffPho.h.
Referenced by hltIsolEm(), hltIsolHad(), hltIsolTrks(), isolEm(), isolHad(), isolNrTrks(), and isolPtTrks().
int egHLT::OffPho::looseCutCode_ [private] |
Definition at line 62 of file EgHLTOffPho.h.
Referenced by looseCutCode(), and setLooseCutCode().
const reco::Photon* egHLT::OffPho::pho_ [private] |
Definition at line 71 of file EgHLTOffPho.h.
Referenced by setTrigBits(), and trigBits().
std::vector<std::pair<TrigCodes::TrigBitSet,int> > egHLT::OffPho::trigCutsCutCodes_ [private] |
Definition at line 66 of file EgHLTOffPho.h.
Referenced by setTrigCutsCutCodes(), and trigCutsCutCode().