CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Attributes
egHLT::OffEle Class Reference

#include <EgHLTOffEle.h>

Classes

struct  ClusShapeData
 
struct  EventData
 
struct  HLTData
 
struct  IsolData
 

Public Member Functions

float bremFrac () const
 
float caloEnergy () const
 
int charge () const
 
int classification () const
 
reco::TrackRef ctfTrack () const
 
float ctfTrkChi2 () const
 
float ctfTrkEta () const
 
int ctfTrkHitsFound () const
 
int ctfTrkHitsLost () const
 
float ctfTrkInnerRadius () const
 
float ctfTrkNDof () const
 
int ctfTrkNrHits () const
 
float ctfTrkOuterRadius () const
 
float ctfTrkP () const
 
float ctfTrkPt () const
 
float ctfTrkPtInner () const
 
float ctfTrkPtOuter () const
 
int cutCode () const
 
float DeltaE () const
 
float dEtaIn () const
 
float dEtaOut () const
 
float detEta () const
 
float dPhiIn () const
 
float dPhiOut () const
 
float e1x5Over5x5 () const
 
float e2x5MaxOver5x5 () const
 
float energy () const
 
float epIn () const
 
float epOut () const
 
float et () const
 
float eta () const
 
float etaSC () const
 
float etSC () const
 
const reco::GsfElectrongsfEle () const
 
float hltDEtaIn () const
 
float hltDPhiIn () const
 
float hltEnergy () const
 
float hltEta () const
 
float hltInvEInvP () const
 
float hltIsolEm () const
 
float hltIsolHad () const
 
float hltIsolTrksEle () const
 
float hltIsolTrksPho () const
 
float hltPhi () const
 
float hOverE () const
 
float invEInvP () const
 
bool isGap () const
 
float isolEm () const
 
float isolHad () const
 
float isolHadDepth1 () const
 
float isolHadDepth2 () const
 
int isolNrTrks () const
 
float isolPtTrks () const
 
int looseCutCode () const
 
int NVertex () const
 
 OffEle (const reco::GsfElectron &ele, const ClusShapeData &shapeData, const IsolData &isolData, const HLTData &hltData, const EventData &eventData)
 
const math::XYZTLorentzVectorp4 () const
 
float pCalo () const
 
float phi () const
 
float phiSC () const
 
float ptCalo () const
 
float ptVtx () const
 
float pVtx () const
 
float r9 () 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 sigmaPhiPhi () const
 
TrigCodes::TrigBitSet trigBits () const
 
int trigCutsCutCode (const TrigCodes::TrigBitSet &trigger) const
 
bool validCTFTrack () const
 
float zVtx () const
 
 ~OffEle ()
 

Private Attributes

ClusShapeData clusShapeData_
 
int cutCode_
 
EventData eventData_
 
const reco::GsfElectrongsfEle_
 
HLTData hltData_
 
IsolData isolData_
 
int looseCutCode_
 
TrigCodes::TrigBitSet trigBits_
 
std::vector< std::pair
< TrigCodes::TrigBitSet, int > > 
trigCutsCutCodes_
 

Detailed Description

Definition at line 30 of file EgHLTOffEle.h.

Constructor & Destructor Documentation

egHLT::OffEle::OffEle ( const reco::GsfElectron ele,
const ClusShapeData shapeData,
const IsolData isolData,
const HLTData hltData,
const EventData eventData 
)
inline

Definition at line 100 of file EgHLTOffEle.h.

100  :
101  gsfEle_(&ele),clusShapeData_(shapeData),isolData_(isolData),hltData_(hltData),eventData_(eventData),
EventData eventData_
Definition: EgHLTOffEle.h:84
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
HLTData hltData_
Definition: EgHLTOffEle.h:83
ClusShapeData clusShapeData_
Definition: EgHLTOffEle.h:81
IsolData isolData_
Definition: EgHLTOffEle.h:82
egHLT::OffEle::~OffEle ( )
inline

Definition at line 103 of file EgHLTOffEle.h.

103 {}

Member Function Documentation

float egHLT::OffEle::bremFrac ( ) const
inline

Definition at line 162 of file EgHLTOffEle.h.

References pCalo(), and pVtx().

162 {return (pVtx()-pCalo())/pVtx();}
float pVtx() const
Definition: EgHLTOffEle.h:136
float pCalo() const
Definition: EgHLTOffEle.h:137
float egHLT::OffEle::caloEnergy ( ) const
inline

Definition at line 123 of file EgHLTOffEle.h.

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

Referenced by DeltaE(), etSC(), and egHLT::OffEgSel::getCutCode().

123 {return gsfEle_->caloEnergy();}
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
float caloEnergy() const
Definition: GsfElectron.h:775
int egHLT::OffEle::charge ( ) const
inline

Definition at line 135 of file EgHLTOffEle.h.

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

135 {return gsfEle_->charge();}
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
virtual int charge() const GCC11_FINAL
electric charge
int egHLT::OffEle::classification ( ) const
inline

Definition at line 131 of file EgHLTOffEle.h.

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

131 {return gsfEle_->classification();}
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
Classification classification() const
Definition: GsfElectron.h:680
reco::TrackRef egHLT::OffEle::ctfTrack ( ) const
inline

Definition at line 191 of file EgHLTOffEle.h.

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

Referenced by ctfTrkChi2(), ctfTrkEta(), ctfTrkHitsFound(), ctfTrkHitsLost(), ctfTrkInnerRadius(), ctfTrkNDof(), ctfTrkNrHits(), ctfTrkOuterRadius(), ctfTrkP(), ctfTrkPt(), ctfTrkPtInner(), ctfTrkPtOuter(), and egHLT::OffEgSel::getCutCode().

191 {return gsfEle_->closestCtfTrackRef();} //in theory lightweight (if they follow good design),return by value
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
TrackRef closestCtfTrackRef() const
Definition: GsfElectron.h:199
float egHLT::OffEle::ctfTrkChi2 ( ) const
inline

Definition at line 200 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

200 {return validCTFTrack() ? ctfTrack()->chi2() : 999.;}
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:191
bool validCTFTrack() const
Definition: EgHLTOffEle.h:193
float egHLT::OffEle::ctfTrkEta ( ) const
inline

Definition at line 199 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

199 {return validCTFTrack() ? ctfTrack()->eta() : -999.;}
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:191
bool validCTFTrack() const
Definition: EgHLTOffEle.h:193
int egHLT::OffEle::ctfTrkHitsFound ( ) const
inline

Definition at line 206 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

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

206 {return validCTFTrack() ? static_cast<int>(ctfTrack()->found()) : -999;}
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:191
bool validCTFTrack() const
Definition: EgHLTOffEle.h:193
int egHLT::OffEle::ctfTrkHitsLost ( ) const
inline

Definition at line 207 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

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

207 {return validCTFTrack() ? static_cast<int>(ctfTrack()->lost()) : -999;}
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:191
bool validCTFTrack() const
Definition: EgHLTOffEle.h:193
float egHLT::OffEle::ctfTrkInnerRadius ( ) const
inline

Definition at line 204 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

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

204 {return validCTFTrack() ? ctfTrack()->innerPosition().Rho() : 999.;}
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:191
bool validCTFTrack() const
Definition: EgHLTOffEle.h:193
float egHLT::OffEle::ctfTrkNDof ( ) const
inline

Definition at line 201 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

201 {return validCTFTrack() ? ctfTrack()->ndof() : 999.;} //this will give chi2/ndof a valid value, perhaps rethink
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:191
bool validCTFTrack() const
Definition: EgHLTOffEle.h:193
int egHLT::OffEle::ctfTrkNrHits ( ) const
inline

Definition at line 208 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

208 {return validCTFTrack() ? static_cast<int>(ctfTrack()->recHitsSize()) : -999;}
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:191
bool validCTFTrack() const
Definition: EgHLTOffEle.h:193
float egHLT::OffEle::ctfTrkOuterRadius ( ) const
inline

Definition at line 205 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

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

205 {return validCTFTrack() ? ctfTrack()->outerPosition().Rho() : -999.;}
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:191
bool validCTFTrack() const
Definition: EgHLTOffEle.h:193
float egHLT::OffEle::ctfTrkP ( ) const
inline

Definition at line 197 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

197 {return validCTFTrack() ? ctfTrack()->p() : -999.;}
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:191
bool validCTFTrack() const
Definition: EgHLTOffEle.h:193
float egHLT::OffEle::ctfTrkPt ( ) const
inline

Definition at line 198 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

198 {return validCTFTrack() ? ctfTrack()->pt() : -999.;}
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:191
bool validCTFTrack() const
Definition: EgHLTOffEle.h:193
float egHLT::OffEle::ctfTrkPtInner ( ) const
inline

Definition at line 203 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

203 {return validCTFTrack() ? ctfTrack()->innerMomentum().Perp2() : -999.;}
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:191
bool validCTFTrack() const
Definition: EgHLTOffEle.h:193
float egHLT::OffEle::ctfTrkPtOuter ( ) const
inline

Definition at line 202 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

202 {return validCTFTrack() ? ctfTrack()->outerMomentum().Perp2() : -999.;}
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:191
bool validCTFTrack() const
Definition: EgHLTOffEle.h:193
int egHLT::OffEle::cutCode ( ) const
inline
float egHLT::OffEle::DeltaE ( ) const
inline

Definition at line 188 of file EgHLTOffEle.h.

References caloEnergy(), and hltEnergy().

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

188 {return (hltEnergy() - caloEnergy());}
float caloEnergy() const
Definition: EgHLTOffEle.h:123
float hltEnergy() const
Definition: EgHLTOffEle.h:186
float egHLT::OffEle::dEtaIn ( ) const
inline

Definition at line 144 of file EgHLTOffEle.h.

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

Referenced by egHLT::OffEgSel::getCutCode(), and egHLT::MonElemFuncs::initStdEleHists().

const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
float deltaEtaSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:247
float egHLT::OffEle::dEtaOut ( ) const
inline

Definition at line 147 of file EgHLTOffEle.h.

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

const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
float deltaEtaSeedClusterTrackAtCalo() const
Definition: GsfElectron.h:248
float egHLT::OffEle::detEta ( ) const
inline

Definition at line 125 of file EgHLTOffEle.h.

References etaSC().

Referenced by egHLT::OffEgSel::getCutCode(), egHLT::MonElemFuncs::initStdEleCutHists(), and egHLT::MonElemFuncs::initStdEleHists().

125 {return etaSC();}
float etaSC() const
Definition: EgHLTOffEle.h:124
float egHLT::OffEle::dPhiIn ( ) const
inline

Definition at line 145 of file EgHLTOffEle.h.

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

Referenced by egHLT::OffEgSel::getCutCode(), and egHLT::MonElemFuncs::initStdEleHists().

const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
float deltaPhiSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:250
float egHLT::OffEle::dPhiOut ( ) const
inline

Definition at line 146 of file EgHLTOffEle.h.

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

const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
float deltaPhiSeedClusterTrackAtCalo() const
Definition: GsfElectron.h:251
float egHLT::OffEle::e1x5Over5x5 ( ) const
inline
float egHLT::OffEle::e2x5MaxOver5x5 ( ) const
inline
float egHLT::OffEle::energy ( ) const
inline

Definition at line 119 of file EgHLTOffEle.h.

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

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

119 {return gsfEle_->energy();}
virtual double energy() const GCC11_FINAL
energy
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
float egHLT::OffEle::epIn ( ) const
inline

Definition at line 148 of file EgHLTOffEle.h.

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

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

148 {return gsfEle_->eSuperClusterOverP();}
float eSuperClusterOverP() const
Definition: GsfElectron.h:243
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
float egHLT::OffEle::epOut ( ) const
inline

Definition at line 149 of file EgHLTOffEle.h.

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

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

149 {return gsfEle_->eSeedClusterOverPout();}
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
float eSeedClusterOverPout() const
Definition: GsfElectron.h:245
float egHLT::OffEle::et ( ) const
inline

Definition at line 117 of file EgHLTOffEle.h.

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

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

117 {return gsfEle_->et();}
virtual double et() const GCC11_FINAL
transverse energy
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
float egHLT::OffEle::eta ( ) const
inline

Definition at line 120 of file EgHLTOffEle.h.

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

Referenced by egHLT::EleHLTFilterMon::EleHLTFilterMon(), egHLT::EgTrigTagProbeCut::pass(), and egHLT::EgTrigTagProbeCut_New::pass().

120 {return gsfEle_->eta();}
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
float egHLT::OffEle::etaSC ( ) const
inline

Definition at line 124 of file EgHLTOffEle.h.

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

Referenced by detEta(), egHLT::OffEgSel::getCutCode(), and sigmaEtaEta().

124 {return gsfEle_->superCluster()->eta();}
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
virtual SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: GsfElectron.h:182
float egHLT::OffEle::etSC ( ) const
inline

Definition at line 122 of file EgHLTOffEle.h.

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

Referenced by egHLT::MonElemFuncs::initStdEleHists(), egHLT::MonElemFuncs::initTrigTagProbeHist(), egHLT::MonElemFuncs::initTrigTagProbeHist_2Leg(), and egHLT::MonElemFuncs::initTrigTagProbeHists().

122 {return gsfEle_->superCluster()->position().rho()/gsfEle_->superCluster()->position().r()*caloEnergy();}
float caloEnergy() const
Definition: EgHLTOffEle.h:123
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
virtual SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: GsfElectron.h:182
const reco::GsfElectron* egHLT::OffEle::gsfEle ( ) const
inline

Definition at line 114 of file EgHLTOffEle.h.

References gsfEle_.

114 {return gsfEle_;}
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
float egHLT::OffEle::hltDEtaIn ( ) const
inline

Definition at line 179 of file EgHLTOffEle.h.

References egHLT::OffEle::HLTData::dEtaIn, and hltData_.

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

179 {return hltData_.dEtaIn;}
HLTData hltData_
Definition: EgHLTOffEle.h:83
float egHLT::OffEle::hltDPhiIn ( ) const
inline

Definition at line 180 of file EgHLTOffEle.h.

References egHLT::OffEle::HLTData::dPhiIn, and hltData_.

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

180 {return hltData_.dPhiIn;}
HLTData hltData_
Definition: EgHLTOffEle.h:83
float egHLT::OffEle::hltEnergy ( ) const
inline

Definition at line 186 of file EgHLTOffEle.h.

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

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

186 {return hltData_.HLTenergy;}
HLTData hltData_
Definition: EgHLTOffEle.h:83
float egHLT::OffEle::hltEta ( ) const
inline

Definition at line 185 of file EgHLTOffEle.h.

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

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

185 {return hltData_.HLTeta;}
HLTData hltData_
Definition: EgHLTOffEle.h:83
float egHLT::OffEle::hltInvEInvP ( ) const
inline

Definition at line 181 of file EgHLTOffEle.h.

References hltData_, and egHLT::OffEle::HLTData::invEInvP.

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

181 {return hltData_.invEInvP;}
HLTData hltData_
Definition: EgHLTOffEle.h:83
float egHLT::OffEle::hltIsolEm ( ) const
inline
float egHLT::OffEle::hltIsolHad ( ) const
inline
float egHLT::OffEle::hltIsolTrksEle ( ) const
inline
float egHLT::OffEle::hltIsolTrksPho ( ) const
inline

Definition at line 174 of file EgHLTOffEle.h.

References egHLT::OffEle::IsolData::hltTrksPho, and isolData_.

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

174 {return isolData_.hltTrksPho;}
IsolData isolData_
Definition: EgHLTOffEle.h:82
float egHLT::OffEle::hltPhi ( ) const
inline

Definition at line 184 of file EgHLTOffEle.h.

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

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

184 {return hltData_.HLTphi;}
HLTData hltData_
Definition: EgHLTOffEle.h:83
float egHLT::OffEle::hOverE ( ) const
inline

Definition at line 143 of file EgHLTOffEle.h.

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

Referenced by egHLT::OffEgSel::getCutCode(), and egHLT::MonElemFuncs::initStdEleHists().

143 {return gsfEle_->hadronicOverEm();}
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
float hadronicOverEm() const
Definition: GsfElectron.h:440
float egHLT::OffEle::invEInvP ( ) const
inline

Definition at line 163 of file EgHLTOffEle.h.

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

Referenced by egHLT::OffEgSel::getCutCode(), and egHLT::MonElemFuncs::initStdEleHists().

163 {return gsfEle_->caloEnergy()!=0 && gsfEle_->trackMomentumAtVtx().R()!=0. ? 1./gsfEle_->caloEnergy() - 1./gsfEle_->trackMomentumAtVtx().R() : -999;}
math::XYZVectorF trackMomentumAtVtx() const
Definition: GsfElectron.h:286
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
float caloEnergy() const
Definition: GsfElectron.h:775
bool egHLT::OffEle::isGap ( ) const
inline

Definition at line 132 of file EgHLTOffEle.h.

References gsfEle_, reco::GsfElectron::isEBEEGap(), reco::GsfElectron::isEBGap(), and reco::GsfElectron::isEEGap().

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

132 {return gsfEle_->isEBGap() || gsfEle_->isEEGap() || gsfEle_->isEBEEGap();}
bool isEEGap() const
Definition: GsfElectron.h:354
bool isEBEEGap() const
Definition: GsfElectron.h:350
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
bool isEBGap() const
Definition: GsfElectron.h:351
float egHLT::OffEle::isolEm ( ) const
inline

Definition at line 167 of file EgHLTOffEle.h.

References egHLT::OffEle::IsolData::em, and isolData_.

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

167 {return isolData_.em;}
IsolData isolData_
Definition: EgHLTOffEle.h:82
float egHLT::OffEle::isolHad ( ) const
inline

Definition at line 168 of file EgHLTOffEle.h.

References isolHadDepth1(), and isolHadDepth2().

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

168 {return isolHadDepth1()+isolHadDepth2();}
float isolHadDepth1() const
Definition: EgHLTOffEle.h:169
float isolHadDepth2() const
Definition: EgHLTOffEle.h:170
float egHLT::OffEle::isolHadDepth1 ( ) const
inline

Definition at line 169 of file EgHLTOffEle.h.

References egHLT::OffEle::IsolData::hadDepth1, and isolData_.

Referenced by isolHad().

169 {return isolData_.hadDepth1;}
IsolData isolData_
Definition: EgHLTOffEle.h:82
float egHLT::OffEle::isolHadDepth2 ( ) const
inline

Definition at line 170 of file EgHLTOffEle.h.

References egHLT::OffEle::IsolData::hadDepth2, and isolData_.

Referenced by isolHad().

170 {return isolData_.hadDepth2;}
IsolData isolData_
Definition: EgHLTOffEle.h:82
int egHLT::OffEle::isolNrTrks ( ) const
inline

Definition at line 172 of file EgHLTOffEle.h.

References isolData_, and egHLT::OffEle::IsolData::nrTrks.

172 {return isolData_.nrTrks;}
IsolData isolData_
Definition: EgHLTOffEle.h:82
float egHLT::OffEle::isolPtTrks ( ) const
inline

Definition at line 171 of file EgHLTOffEle.h.

References isolData_, and egHLT::OffEle::IsolData::ptTrks.

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

171 {return isolData_.ptTrks;}
IsolData isolData_
Definition: EgHLTOffEle.h:82
int egHLT::OffEle::looseCutCode ( ) const
inline

Definition at line 212 of file EgHLTOffEle.h.

References looseCutCode_.

Referenced by egHLT::EleHLTFilterMon::EleHLTFilterMon().

212 {return looseCutCode_;}
int egHLT::OffEle::NVertex ( ) const
inline

Definition at line 107 of file EgHLTOffEle.h.

References eventData_, and egHLT::OffEle::EventData::NVertex.

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

107 {return eventData_.NVertex;}
EventData eventData_
Definition: EgHLTOffEle.h:84
const math::XYZTLorentzVector& egHLT::OffEle::p4 ( ) const
inline

Definition at line 128 of file EgHLTOffEle.h.

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

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

128 {return gsfEle_->p4();}
const LorentzVector & p4(P4Kind kind) const
Definition: GsfElectron.cc:229
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
float egHLT::OffEle::pCalo ( ) const
inline

Definition at line 137 of file EgHLTOffEle.h.

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

Referenced by bremFrac().

137 {return gsfEle_->trackMomentumAtCalo().R();}
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
math::XYZVectorF trackMomentumAtCalo() const
Definition: GsfElectron.h:287
float egHLT::OffEle::phi ( void  ) const
inline

Definition at line 121 of file EgHLTOffEle.h.

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

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

121 {return gsfEle_->phi();}
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
float egHLT::OffEle::phiSC ( ) const
inline

Definition at line 126 of file EgHLTOffEle.h.

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

126 {return gsfEle_->superCluster()->phi();}
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
virtual SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: GsfElectron.h:182
float egHLT::OffEle::ptCalo ( ) const
inline

Definition at line 139 of file EgHLTOffEle.h.

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

139 {return gsfEle_->trackMomentumAtCalo().rho();}
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
math::XYZVectorF trackMomentumAtCalo() const
Definition: GsfElectron.h:287
float egHLT::OffEle::ptVtx ( ) const
inline

Definition at line 138 of file EgHLTOffEle.h.

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

138 {return gsfEle_->trackMomentumAtVtx().rho();}
math::XYZVectorF trackMomentumAtVtx() const
Definition: GsfElectron.h:286
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
float egHLT::OffEle::pVtx ( ) const
inline

Definition at line 136 of file EgHLTOffEle.h.

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

Referenced by bremFrac().

136 {return gsfEle_->trackMomentumAtVtx().R();}
math::XYZVectorF trackMomentumAtVtx() const
Definition: GsfElectron.h:286
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
float egHLT::OffEle::r9 ( ) const
inline
void egHLT::OffEle::setCutCode ( int  code)
inline

Definition at line 108 of file EgHLTOffEle.h.

References cutCode_.

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

108 {cutCode_=code;}
void egHLT::OffEle::setLooseCutCode ( int  code)
inline

Definition at line 109 of file EgHLTOffEle.h.

References looseCutCode_.

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

109 {looseCutCode_=code;}
void egHLT::OffEle::setTrigBits ( TrigCodes::TrigBitSet  bits)
inline

Definition at line 112 of file EgHLTOffEle.h.

References bits, and trigBits_.

112 {trigBits_=bits;}
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
TrigCodes::TrigBitSet trigBits_
Definition: EgHLTOffEle.h:96
void egHLT::OffEle::setTrigCutsCutCodes ( const std::vector< std::pair< TrigCodes::TrigBitSet, int > > &  trigCutsCutCodes)
inline

Definition at line 111 of file EgHLTOffEle.h.

References trigCutsCutCodes_.

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

111 {trigCutsCutCodes_=trigCutsCutCodes;}
std::vector< std::pair< TrigCodes::TrigBitSet, int > > trigCutsCutCodes_
Definition: EgHLTOffEle.h:91
float OffEle::sigmaEtaEta ( ) const

Definition at line 5 of file EgHLTOffEle.cc.

References clusShapeData_, etaSC(), and egHLT::OffEle::ClusShapeData::sigmaEtaEta.

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

6 {
7  if(fabs(etaSC())<1.479) return clusShapeData_.sigmaEtaEta; //barrel case, no correction
8  else{ //endcap, need to apply eta correction
9  return clusShapeData_.sigmaEtaEta - 0.02*( fabs(etaSC()) - 2.3);
10  }
11 
12 }
float etaSC() const
Definition: EgHLTOffEle.h:124
ClusShapeData clusShapeData_
Definition: EgHLTOffEle.h:81
float egHLT::OffEle::sigmaEtaEtaUnCorr ( ) const
inline

Definition at line 153 of file EgHLTOffEle.h.

References clusShapeData_, and egHLT::OffEle::ClusShapeData::sigmaEtaEta.

153 {return clusShapeData_.sigmaEtaEta;}
ClusShapeData clusShapeData_
Definition: EgHLTOffEle.h:81
float egHLT::OffEle::sigmaIEtaIEta ( ) const
inline
float egHLT::OffEle::sigmaPhiPhi ( ) const
inline

Definition at line 155 of file EgHLTOffEle.h.

References clusShapeData_, and egHLT::OffEle::ClusShapeData::sigmaPhiPhi.

155 {return clusShapeData_.sigmaPhiPhi;}
ClusShapeData clusShapeData_
Definition: EgHLTOffEle.h:81
TrigCodes::TrigBitSet egHLT::OffEle::trigBits ( ) const
inline

Definition at line 219 of file EgHLTOffEle.h.

References trigBits_.

Referenced by egHLT::EleHLTFilterMon::fill(), and egHLT::EgTrigTagProbeCut_New::pass().

219 {return trigBits_;}
TrigCodes::TrigBitSet trigBits_
Definition: EgHLTOffEle.h:96
int OffEle::trigCutsCutCode ( const TrigCodes::TrigBitSet trigger) const

Definition at line 18 of file EgHLTOffEle.cc.

References first, i, and trigCutsCutCodes_.

Referenced by egHLT::MonElemFuncs::initTightLooseDiObjTrigHistsTrigCuts(), and egHLT::MonElemFuncs::initTightLooseTrigHistsTrigCuts().

19 {
20  //yes maybe a sorted vector might be better but 1) its small and 2) bitset doesnt support < operator
21  //okay laugh, for some reason I cant overload the == operator (brain just not working), hence the non stl'y way
22  //std::vector<std::pair<TrigCodes::TrigBitSet,int> >::const_iterator it;
23  //it = std::find(trigCutsCodes_.begin(),trigCutsCodes_.end(),trigger);
24  //if(it!=trigCutsCodes_.end()) return it->second;
25  //else return 0; //defaults to passing
26 
27  for(size_t i=0;i<trigCutsCutCodes_.size();i++) if(trigger==trigCutsCutCodes_[i].first) return trigCutsCutCodes_[i].second;
28  return 0; //defaults to passing
29 }
int i
Definition: DBlmapReader.cc:9
std::vector< std::pair< TrigCodes::TrigBitSet, int > > trigCutsCutCodes_
Definition: EgHLTOffEle.h:91
bool first
Definition: L1TdeRCT.cc:75
bool egHLT::OffEle::validCTFTrack ( ) const
inline
float egHLT::OffEle::zVtx ( ) const
inline

Definition at line 127 of file EgHLTOffEle.h.

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

127 {return gsfEle_->TrackPositionAtVtx().z();}
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
math::XYZPointF TrackPositionAtVtx() const
Definition: GsfElectron.h:297

Member Data Documentation

ClusShapeData egHLT::OffEle::clusShapeData_
private
int egHLT::OffEle::cutCode_
private

Definition at line 87 of file EgHLTOffEle.h.

Referenced by cutCode(), and setCutCode().

EventData egHLT::OffEle::eventData_
private

Definition at line 84 of file EgHLTOffEle.h.

Referenced by NVertex().

const reco::GsfElectron* egHLT::OffEle::gsfEle_
private
HLTData egHLT::OffEle::hltData_
private

Definition at line 83 of file EgHLTOffEle.h.

Referenced by hltDEtaIn(), hltDPhiIn(), hltEnergy(), hltEta(), hltInvEInvP(), and hltPhi().

IsolData egHLT::OffEle::isolData_
private
int egHLT::OffEle::looseCutCode_
private

Definition at line 88 of file EgHLTOffEle.h.

Referenced by looseCutCode(), and setLooseCutCode().

TrigCodes::TrigBitSet egHLT::OffEle::trigBits_
private

Definition at line 96 of file EgHLTOffEle.h.

Referenced by setTrigBits(), and trigBits().

std::vector<std::pair<TrigCodes::TrigBitSet,int> > egHLT::OffEle::trigCutsCutCodes_
private

Definition at line 91 of file EgHLTOffEle.h.

Referenced by setTrigCutsCutCodes(), and trigCutsCutCode().