CMS 3D CMS Logo

EgHLTOffEle Class Reference

#include <DQMOffline/Trigger/interface/EgHLTOffEle.h>

List of all members.

Public Member Functions

float bremFrac () const
float caloEnergy () const
int charge () const
int classification () const
int cutCode () const
float dEtaIn () const
float detEta () const
float dPhiIn () const
float dPhiOut () const
 EgHLTOffEle (const reco::GsfElectron &ele, const ClusShapeData &shapeData, const IsolData &isolData)
float energy () const
float epIn () const
float epOut () const
float et () const
float eta () const
float etaSC () const
float etSC () const
float hOverE () const
float invEOverInvP () const
float isolEm () const
float isolHad () const
float isolNrTrks () const
float isolPtTrks () const
const math::XYZTLorentzVectorp4 () const
float pCalo () const
float phi () const
float phiSC () const
int probeCutCode () const
float ptCalo () const
float ptVtx () const
float pVtx () const
void setCutCode (int code)
void setProbeCutCode (int code)
void setTagCutCode (int code)
void setTrigBits (TrigCodes::TrigBitSet bits)
float sigmaEtaEta () const
float sigmaEtaEtaUnCorr () const
float sigmaPhiPhi () const
int tagCutCode () const
TrigCodes::TrigBitSet trigBits () const
float zVtx () const
 ~EgHLTOffEle ()

Private Attributes

ClusShapeData clusShapeData_
int cutCode_
const reco::GsfElectrongsfEle_
IsolData isolData_
int probeCutCode_
int tagCutCode_
TrigCodes::TrigBitSet trigBits_

Classes

struct  ClusShapeData
struct  IsolData


Detailed Description

Definition at line 28 of file EgHLTOffEle.h.


Constructor & Destructor Documentation

EgHLTOffEle::EgHLTOffEle ( const reco::GsfElectron ele,
const ClusShapeData shapeData,
const IsolData isolData 
) [inline]

Definition at line 68 of file EgHLTOffEle.h.

EgHLTOffEle::~EgHLTOffEle (  )  [inline]

Definition at line 71 of file EgHLTOffEle.h.

00071 {}


Member Function Documentation

float EgHLTOffEle::bremFrac (  )  const [inline]

Definition at line 119 of file EgHLTOffEle.h.

References pCalo(), and pVtx().

Referenced by EgHLTOffEleSel::getCutCode().

00119 {return (pVtx()-pCalo())/pVtx();}

float EgHLTOffEle::caloEnergy (  )  const [inline]

Definition at line 85 of file EgHLTOffEle.h.

References reco::GsfElectron::caloEnergy(), and gsfEle_.

Referenced by etSC().

00085 {return gsfEle_->caloEnergy();}

int EgHLTOffEle::charge (  )  const [inline]

Definition at line 96 of file EgHLTOffEle.h.

References reco::Particle::charge(), and gsfEle_.

Referenced by MonElemFuncs::initStdEleCutHists(), and MonElemFuncs::initStdEleHists().

00096 {return gsfEle_->charge();}

int EgHLTOffEle::classification (  )  const [inline]

Definition at line 93 of file EgHLTOffEle.h.

References reco::GsfElectron::classification(), and gsfEle_.

Referenced by EgHLTOffEleSel::getCutCode().

00093 {return gsfEle_->classification();}

int EgHLTOffEle::cutCode (  )  const [inline]

Definition at line 132 of file EgHLTOffEle.h.

References cutCode_.

Referenced by EgammaHLTOffline::beginJob(), EleHLTFilterMon::EleHLTFilterMon(), and MonElemFuncs::initStdEffHists().

00132 {return cutCode_;}

float EgHLTOffEle::dEtaIn (  )  const [inline]

Definition at line 105 of file EgHLTOffEle.h.

References reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), and gsfEle_.

Referenced by EgHLTOffEleSel::getCutCode(), and MonElemFuncs::initStdEleHists().

float EgHLTOffEle::detEta (  )  const [inline]

Definition at line 87 of file EgHLTOffEle.h.

References etaSC().

Referenced by MonElemFuncs::initStdEleCutHists(), and MonElemFuncs::initStdEleHists().

00087 {return etaSC();}

float EgHLTOffEle::dPhiIn (  )  const [inline]

Definition at line 106 of file EgHLTOffEle.h.

References reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), and gsfEle_.

Referenced by EgHLTOffEleSel::getCutCode(), and MonElemFuncs::initStdEleHists().

float EgHLTOffEle::dPhiOut (  )  const [inline]

Definition at line 107 of file EgHLTOffEle.h.

References reco::GsfElectron::deltaPhiSeedClusterTrackAtCalo(), and gsfEle_.

Referenced by EgHLTOffEleSel::getCutCode().

float EgHLTOffEle::energy (  )  const [inline]

Definition at line 81 of file EgHLTOffEle.h.

References reco::Particle::energy(), and gsfEle_.

00081 {return gsfEle_->energy();}

float EgHLTOffEle::epIn (  )  const [inline]

Definition at line 108 of file EgHLTOffEle.h.

References reco::GsfElectron::eSuperClusterOverP(), and gsfEle_.

Referenced by EgHLTOffEleSel::getCutCode().

00108 {return gsfEle_->eSuperClusterOverP();}

float EgHLTOffEle::epOut (  )  const [inline]

Definition at line 109 of file EgHLTOffEle.h.

References reco::GsfElectron::eSeedClusterOverPout(), and gsfEle_.

Referenced by EgHLTOffEleSel::getCutCode().

00109 {return gsfEle_->eSeedClusterOverPout();}

float EgHLTOffEle::et (  )  const [inline]

Definition at line 80 of file EgHLTOffEle.h.

References reco::Particle::et(), and gsfEle_.

Referenced by EleHLTFilterMon::EleHLTFilterMon(), EgHLTOffEleSel::getCutCode(), MonElemFuncs::initStdEleCutHists(), and MonElemFuncs::initStdEleHists().

00080 {return gsfEle_->et();}

float EgHLTOffEle::eta (  )  const [inline]

Definition at line 82 of file EgHLTOffEle.h.

References reco::Particle::eta(), and gsfEle_.

Referenced by EgTrigTagProbeCut::pass().

00082 {return gsfEle_->eta();}

float EgHLTOffEle::etaSC (  )  const [inline]

Definition at line 86 of file EgHLTOffEle.h.

References gsfEle_, and reco::GsfElectron::superCluster().

Referenced by detEta(), EgHLTOffEleSel::getCutCode(), and sigmaEtaEta().

00086 {return gsfEle_->superCluster()->eta();}

float EgHLTOffEle::etSC (  )  const [inline]

Definition at line 84 of file EgHLTOffEle.h.

References caloEnergy(), gsfEle_, and reco::GsfElectron::superCluster().

Referenced by EgammaHLTOffline::beginJob(), and EgHLTOffEleSel::getCutCode().

00084 {return gsfEle_->superCluster()->position().rho()/gsfEle_->superCluster()->position().r()*caloEnergy();}

float EgHLTOffEle::hOverE (  )  const [inline]

Definition at line 104 of file EgHLTOffEle.h.

References gsfEle_, and reco::GsfElectron::hadronicOverEm().

Referenced by EgHLTOffEleSel::getCutCode(), and MonElemFuncs::initStdEleHists().

00104 {return gsfEle_->hadronicOverEm();}

float EgHLTOffEle::invEOverInvP (  )  const [inline]

Definition at line 120 of file EgHLTOffEle.h.

References reco::GsfElectron::caloEnergy(), gsfEle_, and reco::GsfElectron::trackMomentumAtVtx().

Referenced by EgHLTOffEleSel::getCutCode().

00120 {return 1./gsfEle_->caloEnergy() - 1./gsfEle_->trackMomentumAtVtx().R();}

float EgHLTOffEle::isolEm (  )  const [inline]

Definition at line 124 of file EgHLTOffEle.h.

References EgHLTOffEle::IsolData::em, and isolData_.

Referenced by EgHLTOffEleSel::getCutCode().

00124 {return isolData_.em;}

float EgHLTOffEle::isolHad (  )  const [inline]

Definition at line 125 of file EgHLTOffEle.h.

References EgHLTOffEle::IsolData::had, and isolData_.

Referenced by EgHLTOffEleSel::getCutCode().

00125 {return isolData_.had;}

float EgHLTOffEle::isolNrTrks (  )  const [inline]

Definition at line 126 of file EgHLTOffEle.h.

References isolData_, and EgHLTOffEle::IsolData::nrTrks.

Referenced by EgHLTOffEleSel::getCutCode().

00126 {return isolData_.nrTrks;}

float EgHLTOffEle::isolPtTrks (  )  const [inline]

Definition at line 127 of file EgHLTOffEle.h.

References isolData_, and EgHLTOffEle::IsolData::ptTrks.

Referenced by EgHLTOffEleSel::getCutCode().

00127 {return isolData_.ptTrks;}

const math::XYZTLorentzVector& EgHLTOffEle::p4 (  )  const [inline]

Definition at line 90 of file EgHLTOffEle.h.

References gsfEle_, and reco::Particle::p4().

Referenced by EgTagProbeCut< T >::pass(), and EgTrigTagProbeCut::pass().

00090 {return gsfEle_->p4();}

float EgHLTOffEle::pCalo (  )  const [inline]

Definition at line 98 of file EgHLTOffEle.h.

References gsfEle_, and reco::GsfElectron::trackMomentumAtCalo().

Referenced by bremFrac().

00098 {return gsfEle_->trackMomentumAtCalo().R();}

float EgHLTOffEle::phi (  )  const [inline]

Definition at line 83 of file EgHLTOffEle.h.

References gsfEle_, and reco::Particle::phi().

Referenced by MonElemFuncs::initStdEleCutHists(), MonElemFuncs::initStdEleHists(), and EgTrigTagProbeCut::pass().

00083 {return gsfEle_->phi();}

float EgHLTOffEle::phiSC (  )  const [inline]

Definition at line 88 of file EgHLTOffEle.h.

References gsfEle_, and reco::GsfElectron::superCluster().

00088 {return gsfEle_->superCluster()->phi();}

int EgHLTOffEle::probeCutCode (  )  const [inline]

Definition at line 131 of file EgHLTOffEle.h.

References probeCutCode_.

Referenced by EleHLTFilterMon::EleHLTFilterMon().

00131 {return probeCutCode_;}

float EgHLTOffEle::ptCalo (  )  const [inline]

Definition at line 100 of file EgHLTOffEle.h.

References gsfEle_, and reco::GsfElectron::trackMomentumAtCalo().

00100 {return gsfEle_->trackMomentumAtCalo().rho();}

float EgHLTOffEle::ptVtx (  )  const [inline]

Definition at line 99 of file EgHLTOffEle.h.

References gsfEle_, and reco::GsfElectron::trackMomentumAtVtx().

00099 {return gsfEle_->trackMomentumAtVtx().rho();}

float EgHLTOffEle::pVtx (  )  const [inline]

Definition at line 97 of file EgHLTOffEle.h.

References gsfEle_, and reco::GsfElectron::trackMomentumAtVtx().

Referenced by bremFrac().

00097 {return gsfEle_->trackMomentumAtVtx().R();}

void EgHLTOffEle::setCutCode ( int  code  )  [inline]

Definition at line 76 of file EgHLTOffEle.h.

References cutCode_.

Referenced by EgHLTOffHelper::fillEgHLTOffEleVec().

00076 {cutCode_=code;}

void EgHLTOffEle::setProbeCutCode ( int  code  )  [inline]

Definition at line 75 of file EgHLTOffEle.h.

References probeCutCode_.

Referenced by EgHLTOffHelper::fillEgHLTOffEleVec().

void EgHLTOffEle::setTagCutCode ( int  code  )  [inline]

Definition at line 74 of file EgHLTOffEle.h.

References tagCutCode_.

Referenced by EgHLTOffHelper::fillEgHLTOffEleVec().

00074 {tagCutCode_=code;}

void EgHLTOffEle::setTrigBits ( TrigCodes::TrigBitSet  bits  )  [inline]

Definition at line 77 of file EgHLTOffEle.h.

References trigBits_.

00077 {trigBits_=bits;}

float EgHLTOffEle::sigmaEtaEta (  )  const

Definition at line 3 of file EgHLTOffEle.cc.

References clusShapeData_, etaSC(), and EgHLTOffEle::ClusShapeData::sigmaEtaEta.

Referenced by EgHLTOffEleSel::getCutCode(), and MonElemFuncs::initStdEleHists().

00004 {
00005   if(fabs(etaSC())<1.479) return clusShapeData_.sigmaEtaEta; //barrel case, no correction
00006   else{ //endcap, need to apply eta correction
00007     return clusShapeData_.sigmaEtaEta - 0.02*( fabs(etaSC()) - 2.3);
00008   } 
00009 
00010 }

float EgHLTOffEle::sigmaEtaEtaUnCorr (  )  const [inline]

Definition at line 113 of file EgHLTOffEle.h.

References clusShapeData_, and EgHLTOffEle::ClusShapeData::sigmaEtaEta.

00113 {return clusShapeData_.sigmaEtaEta;}

float EgHLTOffEle::sigmaPhiPhi (  )  const [inline]

Definition at line 115 of file EgHLTOffEle.h.

References clusShapeData_, and EgHLTOffEle::ClusShapeData::sigmaPhiPhi.

00115 {return clusShapeData_.sigmaPhiPhi;}

int EgHLTOffEle::tagCutCode (  )  const [inline]

Definition at line 130 of file EgHLTOffEle.h.

References tagCutCode_.

Referenced by EleHLTFilterMon::EleHLTFilterMon().

00130 {return tagCutCode_;}

TrigCodes::TrigBitSet EgHLTOffEle::trigBits (  )  const [inline]

Definition at line 135 of file EgHLTOffEle.h.

References trigBits_.

Referenced by EleHLTFilterMon::fill().

00135 {return trigBits_;}

float EgHLTOffEle::zVtx (  )  const [inline]

Definition at line 89 of file EgHLTOffEle.h.

References gsfEle_, and reco::GsfElectron::TrackPositionAtVtx().

00089 {return gsfEle_->TrackPositionAtVtx().z();}


Member Data Documentation

ClusShapeData EgHLTOffEle::clusShapeData_ [private]

Definition at line 53 of file EgHLTOffEle.h.

Referenced by sigmaEtaEta(), sigmaEtaEtaUnCorr(), and sigmaPhiPhi().

int EgHLTOffEle::cutCode_ [private]

Definition at line 59 of file EgHLTOffEle.h.

Referenced by cutCode(), and setCutCode().

const reco::GsfElectron* EgHLTOffEle::gsfEle_ [private]

Definition at line 51 of file EgHLTOffEle.h.

Referenced by caloEnergy(), charge(), classification(), dEtaIn(), dPhiIn(), dPhiOut(), energy(), epIn(), epOut(), et(), eta(), etaSC(), etSC(), hOverE(), invEOverInvP(), p4(), pCalo(), phi(), phiSC(), ptCalo(), ptVtx(), pVtx(), and zVtx().

IsolData EgHLTOffEle::isolData_ [private]

Definition at line 54 of file EgHLTOffEle.h.

Referenced by isolEm(), isolHad(), isolNrTrks(), and isolPtTrks().

int EgHLTOffEle::probeCutCode_ [private]

Definition at line 58 of file EgHLTOffEle.h.

Referenced by probeCutCode(), and setProbeCutCode().

int EgHLTOffEle::tagCutCode_ [private]

Definition at line 57 of file EgHLTOffEle.h.

Referenced by setTagCutCode(), and tagCutCode().

TrigCodes::TrigBitSet EgHLTOffEle::trigBits_ [private]

Definition at line 64 of file EgHLTOffEle.h.

Referenced by setTrigBits(), and trigBits().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:20:12 2009 for CMSSW by  doxygen 1.5.4