CMS 3D CMS Logo

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 ()=default
 

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.

References ~OffEle().

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

Referenced by OffEle().

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

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:851
int egHLT::OffEle::charge ( ) const
inline

Definition at line 135 of file EgHLTOffEle.h.

References reco::LeafCandidate::charge().

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

Definition at line 131 of file EgHLTOffEle.h.

References reco::GsfElectron::classification().

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

Definition at line 191 of file EgHLTOffEle.h.

References reco::GsfElectron::closestCtfTrackRef().

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
virtual TrackRef closestCtfTrackRef() const
Definition: GsfElectron.h:201
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
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(), and egHLT::MonElemFuncs::initStdEleHistsHEP().

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

Definition at line 147 of file EgHLTOffEle.h.

References reco::GsfElectron::deltaEtaSeedClusterTrackAtCalo().

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

Definition at line 146 of file EgHLTOffEle.h.

References reco::GsfElectron::deltaPhiSeedClusterTrackAtCalo().

const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
float deltaPhiSeedClusterTrackAtCalo() const
Definition: GsfElectron.h:253
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().

Referenced by egHLT::MonElemFuncs::initStdEleHists(), egHLT::MonElemFuncs::initStdEleHistsHEP(), and Jet.Jet::rawEnergy().

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

Definition at line 148 of file EgHLTOffEle.h.

References reco::GsfElectron::eSuperClusterOverP().

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

148 {return gsfEle_->eSuperClusterOverP();}
float eSuperClusterOverP() const
Definition: GsfElectron.h:245
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 sigmaEtaEta().

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

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

Definition at line 124 of file EgHLTOffEle.h.

References reco::GsfElectron::superCluster().

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

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

Definition at line 122 of file EgHLTOffEle.h.

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

Referenced by egHLT::MonElemFuncs::initStdEleHists(), egHLT::MonElemFuncs::initStdEleHistsHEP(), 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
SuperClusterRef superCluster() const override
reference to a SuperCluster
Definition: GsfElectron.h:184
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.

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.

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

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

Definition at line 181 of file EgHLTOffEle.h.

References 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.

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

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

Definition at line 163 of file EgHLTOffEle.h.

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

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

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

Definition at line 132 of file EgHLTOffEle.h.

References 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:359
bool isEBEEGap() const
Definition: GsfElectron.h:355
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
bool isEBGap() const
Definition: GsfElectron.h:356
float egHLT::OffEle::isolEm ( ) const
inline

Definition at line 167 of file EgHLTOffEle.h.

References egHLT::OffEle::IsolData::em.

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.

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.

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 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 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_, and trigCutsCutCode().

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

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

Definition at line 107 of file EgHLTOffEle.h.

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

Referenced by Tau.Tau::dxy_approx(), Tau.Tau::dz(), Lepton.Lepton::p4WithFSR(), 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:225
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:79
float egHLT::OffEle::pCalo ( ) const
inline

Definition at line 137 of file EgHLTOffEle.h.

References 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:292
float egHLT::OffEle::phi ( void  ) const
inline
float egHLT::OffEle::phiSC ( ) const
inline

Definition at line 126 of file EgHLTOffEle.h.

References reco::GsfElectron::superCluster().

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

Definition at line 139 of file EgHLTOffEle.h.

References reco::GsfElectron::trackMomentumAtCalo().

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

Definition at line 138 of file EgHLTOffEle.h.

References reco::GsfElectron::trackMomentumAtVtx().

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

Definition at line 136 of file EgHLTOffEle.h.

References reco::GsfElectron::trackMomentumAtVtx().

Referenced by bremFrac().

136 {return gsfEle_->trackMomentumAtVtx().R();}
math::XYZVectorF trackMomentumAtVtx() const
Definition: GsfElectron.h:291
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.

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

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

Definition at line 109 of file EgHLTOffEle.h.

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.

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.

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 7 of file EgHLTOffEle.cc.

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

Referenced by epOut(), and egHLT::OffEgSel::getCutCode().

8 {
9  if(std::fabs(etaSC())<1.479) return clusShapeData_.sigmaEtaEta; //barrel case, no correction
10  else{ //endcap, need to apply eta correction
11  return clusShapeData_.sigmaEtaEta - 0.02*( std::fabs(etaSC()) - 2.3);
12  }
13 
14 }
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 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 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 20 of file EgHLTOffEle.cc.

References trigCutsCutCodes_.

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

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

Definition at line 127 of file EgHLTOffEle.h.

References reco::GsfElectron::TrackPositionAtVtx().

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

Member Data Documentation

ClusShapeData egHLT::OffEle::clusShapeData_
private

Definition at line 81 of file EgHLTOffEle.h.

Referenced by sigmaEtaEta().

int egHLT::OffEle::cutCode_
private

Definition at line 87 of file EgHLTOffEle.h.

Referenced by cutCode().

EventData egHLT::OffEle::eventData_
private

Definition at line 84 of file EgHLTOffEle.h.

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

Definition at line 79 of file EgHLTOffEle.h.

Referenced by gsfEle().

HLTData egHLT::OffEle::hltData_
private

Definition at line 83 of file EgHLTOffEle.h.

IsolData egHLT::OffEle::isolData_
private

Definition at line 82 of file EgHLTOffEle.h.

int egHLT::OffEle::looseCutCode_
private

Definition at line 88 of file EgHLTOffEle.h.

Referenced by looseCutCode().

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

Definition at line 96 of file EgHLTOffEle.h.

Referenced by trigBits().

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

Definition at line 91 of file EgHLTOffEle.h.

Referenced by trigCutsCutCode().