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  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::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_
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 
) [inline]

Definition at line 75 of file EgHLTOffPho.h.

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

Definition at line 78 of file EgHLTOffPho.h.

{}

Member Function Documentation

int egHLT::OffPho::cutCode ( ) const [inline]
float egHLT::OffPho::detEta ( ) const [inline]
float egHLT::OffPho::e1x5Over5x5 ( ) const [inline]
float egHLT::OffPho::e2x5MaxOver5x5 ( ) const [inline]
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().

{return pho_->energy();}
float egHLT::OffPho::et ( ) const [inline]
float egHLT::OffPho::eta ( ) const [inline]
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]
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().

{return isolData_.hltEm;}
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().

{return isolData_.hltHad;}
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().

{return isolData_.hltTrks;}
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 130 of file EgHLTOffPho.h.

References looseCutCode_.

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

Definition at line 101 of file EgHLTOffPho.h.

References reco::LeafCandidate::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 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().

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

Definition at line 88 of file EgHLTOffPho.h.

References pho_.

{return pho_;}
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]

Definition at line 86 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 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]
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 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().

{return pho_->vz();}

Member Data Documentation

int egHLT::OffPho::cutCode_ [private]

Definition at line 61 of file EgHLTOffPho.h.

Referenced by cutCode(), and setCutCode().

Definition at line 58 of file EgHLTOffPho.h.

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

Definition at line 62 of file EgHLTOffPho.h.

Referenced by looseCutCode(), and setLooseCutCode().

Definition at line 55 of file EgHLTOffPho.h.

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

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().