CMS 3D CMS Logo

Classes | Public Member Functions | Private Attributes

egHLT::OffPho Class Reference

#include <EgHLTOffPho.h>

List of all members.

Classes

struct  ClusShapeData
struct  HLTData
struct  IsolData

Public Member Functions

int cutCode () const
float DeltaE () 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 hltEnergy () const
float hltEta () const
float hltIsolEm () const
float hltIsolHad () const
float hltIsolTrks () const
float hltPhi () 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 HLTData &hltData)
const math::XYZTLorentzVectorp4 () const
float phi () const
float phiSC () const
float pt () const
float r9 () const
const reco::PhotonrecoPho () 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_
HLTData hltData_
IsolData isolData_
int looseCutCode_
const reco::Photonpho_
TrigCodes::TrigBitSet trigBits_
std::vector< std::pair
< TrigCodes::TrigBitSet, int > > 
trigCutsCutCodes_

Detailed Description

Definition at line 27 of file EgHLTOffPho.h.


Constructor & Destructor Documentation

egHLT::OffPho::OffPho ( const reco::Photon pho,
const ClusShapeData shapeData,
const IsolData isolData,
const HLTData hltData 
) [inline]

Definition at line 85 of file EgHLTOffPho.h.

egHLT::OffPho::~OffPho ( ) [inline]

Definition at line 88 of file EgHLTOffPho.h.

{}

Member Function Documentation

int egHLT::OffPho::cutCode ( ) const [inline]
float egHLT::OffPho::DeltaE ( ) const [inline]

Definition at line 144 of file EgHLTOffPho.h.

References energy(), and hltEnergy().

Referenced by egHLT::MonElemFuncs::initStdPhoHists().

{return (hltEnergy() - energy());}
float egHLT::OffPho::detEta ( ) const [inline]
float egHLT::OffPho::e1x5Over5x5 ( ) const [inline]
float egHLT::OffPho::e2x5MaxOver5x5 ( ) const [inline]
float egHLT::OffPho::energy ( ) const [inline]
float egHLT::OffPho::et ( ) const [inline]
float egHLT::OffPho::eta ( ) const [inline]
float egHLT::OffPho::etaSC ( ) const [inline]

Definition at line 107 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]
float egHLT::OffPho::hltEnergy ( ) const [inline]

Definition at line 142 of file EgHLTOffPho.h.

References hltData_, and egHLT::OffPho::HLTData::HLTenergy.

Referenced by DeltaE(), and egHLT::MonElemFuncs::initStdPhoHists().

{return hltData_.HLTenergy;}
float egHLT::OffPho::hltEta ( ) const [inline]

Definition at line 141 of file EgHLTOffPho.h.

References hltData_, and egHLT::OffPho::HLTData::HLTeta.

Referenced by egHLT::MonElemFuncs::initStdPhoHists().

{return hltData_.HLTeta;}
float egHLT::OffPho::hltIsolEm ( ) const [inline]

Definition at line 136 of file EgHLTOffPho.h.

References egHLT::OffPho::IsolData::hltEm, and isolData_.

Referenced by egHLT::OffEgSel::getCutCode().

{return isolData_.hltEm;}
float egHLT::OffPho::hltIsolHad ( ) const [inline]

Definition at line 134 of file EgHLTOffPho.h.

References egHLT::OffPho::IsolData::hltHad, and isolData_.

Referenced by egHLT::OffEgSel::getCutCode().

{return isolData_.hltHad;}
float egHLT::OffPho::hltIsolTrks ( ) const [inline]

Definition at line 135 of file EgHLTOffPho.h.

References egHLT::OffPho::IsolData::hltTrks, and isolData_.

Referenced by egHLT::OffEgSel::getCutCode().

{return isolData_.hltTrks;}
float egHLT::OffPho::hltPhi ( ) const [inline]

Definition at line 140 of file EgHLTOffPho.h.

References hltData_, and egHLT::OffPho::HLTData::HLTphi.

Referenced by egHLT::MonElemFuncs::initStdPhoHists().

{return hltData_.HLTphi;}
float egHLT::OffPho::hOverE ( ) const [inline]
bool egHLT::OffPho::isGap ( ) const [inline]
float egHLT::OffPho::isolEm ( ) const [inline]
float egHLT::OffPho::isolHad ( ) const [inline]
int egHLT::OffPho::isolNrTrks ( ) const [inline]
float egHLT::OffPho::isolPtTrks ( ) const [inline]
int egHLT::OffPho::looseCutCode ( ) const [inline]

Definition at line 148 of file EgHLTOffPho.h.

References looseCutCode_.

{return looseCutCode_;}
const math::XYZTLorentzVector& egHLT::OffPho::p4 ( ) const [inline]

Definition at line 111 of file EgHLTOffPho.h.

References reco::Photon::p4(), and pho_.

Referenced by egHLT::EgTrigTagProbeCut_NewPho::pass().

{return pho_->p4();}
float egHLT::OffPho::phi ( void  ) const [inline]
float egHLT::OffPho::phiSC ( ) const [inline]

Definition at line 109 of file EgHLTOffPho.h.

References pho_, and reco::Photon::superCluster().

{return pho_->superCluster()->phi();}
float egHLT::OffPho::pt ( ) const [inline]

Definition at line 102 of file EgHLTOffPho.h.

References pho_, and reco::LeafCandidate::pt().

{return pho_->pt();}
float egHLT::OffPho::r9 ( ) const [inline]
const reco::Photon* egHLT::OffPho::recoPho ( ) const [inline]

Definition at line 98 of file EgHLTOffPho.h.

References pho_.

{return pho_;}
void egHLT::OffPho::setCutCode ( int  code) [inline]

Definition at line 91 of file EgHLTOffPho.h.

References cutCode_.

Referenced by egHLT::OffHelper::fillOffPhoVec().

{cutCode_=code;}
void egHLT::OffPho::setLooseCutCode ( int  code) [inline]

Definition at line 92 of file EgHLTOffPho.h.

References looseCutCode_.

Referenced by egHLT::OffHelper::fillOffPhoVec().

{looseCutCode_=code;} 
void egHLT::OffPho::setTrigBits ( TrigCodes::TrigBitSet  bits) [inline]

Definition at line 96 of file EgHLTOffPho.h.

References bits, and trigBits_.

void egHLT::OffPho::setTrigCutsCutCodes ( const std::vector< std::pair< TrigCodes::TrigBitSet, int > >  trigCutsCutCodes) [inline]

Definition at line 95 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]
float egHLT::OffPho::sigmaIEtaIEta ( ) const [inline]
float egHLT::OffPho::sigmaIPhiIPhi ( ) const [inline]
float egHLT::OffPho::sigmaPhiPhi ( ) const [inline]
TrigCodes::TrigBitSet egHLT::OffPho::trigBits ( ) const [inline]

Definition at line 155 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 110 of file EgHLTOffPho.h.

References pho_, and reco::LeafCandidate::vz().

{return pho_->vz();}

Member Data Documentation

int egHLT::OffPho::cutCode_ [private]

Definition at line 71 of file EgHLTOffPho.h.

Referenced by cutCode(), and setCutCode().

Definition at line 68 of file EgHLTOffPho.h.

Referenced by hltEnergy(), hltEta(), and hltPhi().

Definition at line 67 of file EgHLTOffPho.h.

Referenced by hltIsolEm(), hltIsolHad(), hltIsolTrks(), isolEm(), isolHad(), isolNrTrks(), and isolPtTrks().

Definition at line 72 of file EgHLTOffPho.h.

Referenced by looseCutCode(), and setLooseCutCode().

Definition at line 64 of file EgHLTOffPho.h.

Referenced by energy(), et(), eta(), etaSC(), etSC(), hOverE(), isGap(), p4(), phi(), phiSC(), pt(), recoPho(), and zVtx().

Definition at line 81 of file EgHLTOffPho.h.

Referenced by setTrigBits(), and trigBits().

std::vector<std::pair<TrigCodes::TrigBitSet,int> > egHLT::OffPho::trigCutsCutCodes_ [private]

Definition at line 76 of file EgHLTOffPho.h.

Referenced by setTrigCutsCutCodes(), and trigCutsCutCode().