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

Constructor & Destructor Documentation

◆ OffEle()

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

Definition at line 97 of file EgHLTOffEle.h.

102  : gsfEle_(&ele),
103  clusShapeData_(shapeData),
104  isolData_(isolData),
105  hltData_(hltData),
106  eventData_(eventData),
EventData eventData_
Definition: EgHLTOffEle.h:81
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
HLTData hltData_
Definition: EgHLTOffEle.h:80
ClusShapeData clusShapeData_
Definition: EgHLTOffEle.h:78
IsolData isolData_
Definition: EgHLTOffEle.h:79

◆ ~OffEle()

egHLT::OffEle::~OffEle ( )
default

Member Function Documentation

◆ bremFrac()

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

Definition at line 170 of file EgHLTOffEle.h.

References pCalo(), and pVtx().

170 { return (pVtx() - pCalo()) / pVtx(); }
float pVtx() const
Definition: EgHLTOffEle.h:145
float pCalo() const
Definition: EgHLTOffEle.h:146

◆ caloEnergy()

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

Definition at line 132 of file EgHLTOffEle.h.

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

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

132 { return gsfEle_->caloEnergy(); }
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
float caloEnergy() const
Definition: GsfElectron.h:899

◆ charge()

int egHLT::OffEle::charge ( ) const
inline

Definition at line 144 of file EgHLTOffEle.h.

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

144 { return gsfEle_->charge(); }
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
int charge() const final
electric charge

◆ classification()

int egHLT::OffEle::classification ( ) const
inline

Definition at line 140 of file EgHLTOffEle.h.

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

140 { return gsfEle_->classification(); }
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
Classification classification() const
Definition: GsfElectron.h:805

◆ ctfTrack()

reco::TrackRef egHLT::OffEle::ctfTrack ( ) const
inline

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

203  {
204  return gsfEle_->closestCtfTrackRef();
205  } //in theory lightweight (if they follow good design),return by value
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
virtual TrackRef closestCtfTrackRef() const
Definition: GsfElectron.h:180

◆ ctfTrkChi2()

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

Definition at line 215 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

215 { return validCTFTrack() ? ctfTrack()->chi2() : 999.; }
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203

◆ ctfTrkEta()

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

Definition at line 214 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

214 { return validCTFTrack() ? ctfTrack()->eta() : -999.; }
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203

◆ ctfTrkHitsFound()

int egHLT::OffEle::ctfTrkHitsFound ( ) const
inline

Definition at line 223 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

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

223 { return validCTFTrack() ? static_cast<int>(ctfTrack()->found()) : -999; }
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203

◆ ctfTrkHitsLost()

int egHLT::OffEle::ctfTrkHitsLost ( ) const
inline

Definition at line 224 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

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

224 { return validCTFTrack() ? static_cast<int>(ctfTrack()->lost()) : -999; }
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203

◆ ctfTrkInnerRadius()

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

Definition at line 221 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

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

221 { return validCTFTrack() ? ctfTrack()->innerPosition().Rho() : 999.; }
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203

◆ ctfTrkNDof()

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

Definition at line 216 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

216  {
217  return validCTFTrack() ? ctfTrack()->ndof() : 999.;
218  } //this will give chi2/ndof a valid value, perhaps rethink
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203

◆ ctfTrkNrHits()

int egHLT::OffEle::ctfTrkNrHits ( ) const
inline

Definition at line 225 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

225 { return validCTFTrack() ? static_cast<int>(ctfTrack()->recHitsSize()) : -999; }
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203

◆ ctfTrkOuterRadius()

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

Definition at line 222 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

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

222 { return validCTFTrack() ? ctfTrack()->outerPosition().Rho() : -999.; }
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203

◆ ctfTrkP()

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

Definition at line 212 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

212 { return validCTFTrack() ? ctfTrack()->p() : -999.; }
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203

◆ ctfTrkPt()

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

Definition at line 213 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

213 { return validCTFTrack() ? ctfTrack()->pt() : -999.; }
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203

◆ ctfTrkPtInner()

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

Definition at line 220 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

220 { return validCTFTrack() ? ctfTrack()->innerMomentum().Perp2() : -999.; }
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203

◆ ctfTrkPtOuter()

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

Definition at line 219 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

219 { return validCTFTrack() ? ctfTrack()->outerMomentum().Perp2() : -999.; }
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203

◆ cutCode()

int egHLT::OffEle::cutCode ( ) const
inline

◆ DeltaE()

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

Definition at line 200 of file EgHLTOffEle.h.

References caloEnergy(), and hltEnergy().

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

200 { return (hltEnergy() - caloEnergy()); }
float caloEnergy() const
Definition: EgHLTOffEle.h:132
float hltEnergy() const
Definition: EgHLTOffEle.h:198

◆ dEtaIn()

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

◆ dEtaOut()

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

Definition at line 155 of file EgHLTOffEle.h.

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

const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
float deltaEtaSeedClusterTrackAtCalo() const
Definition: GsfElectron.h:226

◆ detEta()

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

◆ dPhiIn()

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

◆ dPhiOut()

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

Definition at line 154 of file EgHLTOffEle.h.

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

float deltaPhiSeedClusterTrackAtCalo() const
Definition: GsfElectron.h:229
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76

◆ e1x5Over5x5()

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

◆ e2x5MaxOver5x5()

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

◆ energy()

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

Definition at line 126 of file EgHLTOffEle.h.

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

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

126 { return gsfEle_->energy(); }
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
double energy() const final
energy

◆ epIn()

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

Definition at line 156 of file EgHLTOffEle.h.

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

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

156 { return gsfEle_->eSuperClusterOverP(); }
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
float eSuperClusterOverP() const
Definition: GsfElectron.h:221

◆ epOut()

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

Definition at line 157 of file EgHLTOffEle.h.

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

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

157 { return gsfEle_->eSeedClusterOverPout(); }
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
float eSeedClusterOverPout() const
Definition: GsfElectron.h:223

◆ et()

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

◆ eta()

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

◆ etaSC()

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

Definition at line 133 of file EgHLTOffEle.h.

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

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

133 { return gsfEle_->superCluster()->eta(); }
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
SuperClusterRef superCluster() const override
reference to a SuperCluster
Definition: GsfElectron.h:155

◆ etSC()

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

Definition at line 129 of file EgHLTOffEle.h.

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

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

129  {
130  return gsfEle_->superCluster()->position().rho() / gsfEle_->superCluster()->position().r() * caloEnergy();
131  }
float caloEnergy() const
Definition: EgHLTOffEle.h:132
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
SuperClusterRef superCluster() const override
reference to a SuperCluster
Definition: GsfElectron.h:155

◆ gsfEle()

const reco::GsfElectron* egHLT::OffEle::gsfEle ( ) const
inline

Definition at line 121 of file EgHLTOffEle.h.

References gsfEle_.

121 { return gsfEle_; }
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76

◆ hltDEtaIn()

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

Definition at line 191 of file EgHLTOffEle.h.

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

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

191 { return hltData_.dEtaIn; }
HLTData hltData_
Definition: EgHLTOffEle.h:80

◆ hltDPhiIn()

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

Definition at line 192 of file EgHLTOffEle.h.

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

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

192 { return hltData_.dPhiIn; }
HLTData hltData_
Definition: EgHLTOffEle.h:80

◆ hltEnergy()

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

◆ hltEta()

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

◆ hltInvEInvP()

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

Definition at line 193 of file EgHLTOffEle.h.

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

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

193 { return hltData_.invEInvP; }
HLTData hltData_
Definition: EgHLTOffEle.h:80

◆ hltIsolEm()

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

◆ hltIsolHad()

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

◆ hltIsolTrksEle()

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

◆ hltIsolTrksPho()

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

Definition at line 186 of file EgHLTOffEle.h.

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

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

186 { return isolData_.hltTrksPho; }
IsolData isolData_
Definition: EgHLTOffEle.h:79

◆ hltPhi()

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

◆ hOverE()

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

◆ invEInvP()

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

Definition at line 171 of file EgHLTOffEle.h.

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

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

171  {
172  return gsfEle_->caloEnergy() != 0 && gsfEle_->trackMomentumAtVtx().R() != 0.
173  ? 1. / gsfEle_->caloEnergy() - 1. / gsfEle_->trackMomentumAtVtx().R()
174  : -999;
175  }
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
float caloEnergy() const
Definition: GsfElectron.h:899
math::XYZVectorF trackMomentumAtVtx() const
Definition: GsfElectron.h:268

◆ isGap()

bool egHLT::OffEle::isGap ( ) const
inline

Definition at line 141 of file EgHLTOffEle.h.

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

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

141 { return gsfEle_->isEBGap() || gsfEle_->isEEGap() || gsfEle_->isEBEEGap(); }
bool isEBGap() const
Definition: GsfElectron.h:332
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
bool isEBEEGap() const
Definition: GsfElectron.h:331
bool isEEGap() const
Definition: GsfElectron.h:335

◆ isolEm()

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

Definition at line 179 of file EgHLTOffEle.h.

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

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

179 { return isolData_.em; }
IsolData isolData_
Definition: EgHLTOffEle.h:79

◆ isolHad()

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

Definition at line 180 of file EgHLTOffEle.h.

References isolHadDepth1(), and isolHadDepth2().

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

180 { return isolHadDepth1() + isolHadDepth2(); }
float isolHadDepth2() const
Definition: EgHLTOffEle.h:182
float isolHadDepth1() const
Definition: EgHLTOffEle.h:181

◆ isolHadDepth1()

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

Definition at line 181 of file EgHLTOffEle.h.

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

Referenced by isolHad().

181 { return isolData_.hadDepth1; }
IsolData isolData_
Definition: EgHLTOffEle.h:79

◆ isolHadDepth2()

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

Definition at line 182 of file EgHLTOffEle.h.

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

Referenced by isolHad().

182 { return isolData_.hadDepth2; }
IsolData isolData_
Definition: EgHLTOffEle.h:79

◆ isolNrTrks()

int egHLT::OffEle::isolNrTrks ( ) const
inline

Definition at line 184 of file EgHLTOffEle.h.

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

184 { return isolData_.nrTrks; }
IsolData isolData_
Definition: EgHLTOffEle.h:79

◆ isolPtTrks()

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

Definition at line 183 of file EgHLTOffEle.h.

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

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

183 { return isolData_.ptTrks; }
IsolData isolData_
Definition: EgHLTOffEle.h:79

◆ looseCutCode()

int egHLT::OffEle::looseCutCode ( ) const
inline

Definition at line 229 of file EgHLTOffEle.h.

References looseCutCode_.

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

229 { return looseCutCode_; }

◆ NVertex()

int egHLT::OffEle::NVertex ( ) const
inline

Definition at line 112 of file EgHLTOffEle.h.

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

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

112 { return eventData_.NVertex; }
EventData eventData_
Definition: EgHLTOffEle.h:81

◆ p4()

const math::XYZTLorentzVector& egHLT::OffEle::p4 ( ) const
inline

Definition at line 137 of file EgHLTOffEle.h.

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

Referenced by Tau.Tau::dxy_approx(), Tau.Tau::dz(), Lepton.Lepton::p4WithFSR(), egHLT::EgTrigTagProbeCut::pass(), and egHLT::EgTrigTagProbeCut_New::pass().

137 { return gsfEle_->p4(); }
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
const LorentzVector & p4(P4Kind kind) const
Definition: GsfElectron.cc:217

◆ pCalo()

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

Definition at line 146 of file EgHLTOffEle.h.

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

Referenced by bremFrac().

146 { return gsfEle_->trackMomentumAtCalo().R(); }
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
math::XYZVectorF trackMomentumAtCalo() const
Definition: GsfElectron.h:269

◆ phi()

float egHLT::OffEle::phi ( void  ) const
inline

◆ phiSC()

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

Definition at line 135 of file EgHLTOffEle.h.

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

135 { return gsfEle_->superCluster()->phi(); }
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
SuperClusterRef superCluster() const override
reference to a SuperCluster
Definition: GsfElectron.h:155

◆ ptCalo()

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

Definition at line 148 of file EgHLTOffEle.h.

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

148 { return gsfEle_->trackMomentumAtCalo().rho(); }
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
math::XYZVectorF trackMomentumAtCalo() const
Definition: GsfElectron.h:269

◆ ptVtx()

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

Definition at line 147 of file EgHLTOffEle.h.

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

147 { return gsfEle_->trackMomentumAtVtx().rho(); }
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
math::XYZVectorF trackMomentumAtVtx() const
Definition: GsfElectron.h:268

◆ pVtx()

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

Definition at line 145 of file EgHLTOffEle.h.

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

Referenced by bremFrac().

145 { return gsfEle_->trackMomentumAtVtx().R(); }
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
math::XYZVectorF trackMomentumAtVtx() const
Definition: GsfElectron.h:268

◆ r9()

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

◆ setCutCode()

void egHLT::OffEle::setCutCode ( int  code)
inline

Definition at line 113 of file EgHLTOffEle.h.

References cutCode_.

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

113 { cutCode_ = code; }

◆ setLooseCutCode()

void egHLT::OffEle::setLooseCutCode ( int  code)
inline

Definition at line 114 of file EgHLTOffEle.h.

References looseCutCode_.

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

114 { looseCutCode_ = code; }

◆ setTrigBits()

void egHLT::OffEle::setTrigBits ( TrigCodes::TrigBitSet  bits)
inline

Definition at line 119 of file EgHLTOffEle.h.

References gpuClustering::pixelStatus::bits, and trigBits_.

119 { trigBits_ = bits; }
constexpr uint32_t bits
Definition: gpuClustering.h:25
TrigCodes::TrigBitSet trigBits_
Definition: EgHLTOffEle.h:94

◆ setTrigCutsCutCodes()

void egHLT::OffEle::setTrigCutsCutCodes ( const std::vector< std::pair< TrigCodes::TrigBitSet, int > > &  trigCutsCutCodes)
inline

Definition at line 116 of file EgHLTOffEle.h.

References trigCutsCutCodes_.

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

116  {
117  trigCutsCutCodes_ = trigCutsCutCodes;
118  }
std::vector< std::pair< TrigCodes::TrigBitSet, int > > trigCutsCutCodes_
Definition: EgHLTOffEle.h:89

◆ sigmaEtaEta()

float OffEle::sigmaEtaEta ( ) const

Definition at line 7 of file EgHLTOffEle.cc.

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

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

7  {
8  if (std::fabs(etaSC()) < 1.479)
9  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 }
float etaSC() const
Definition: EgHLTOffEle.h:133
ClusShapeData clusShapeData_
Definition: EgHLTOffEle.h:78

◆ sigmaEtaEtaUnCorr()

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

Definition at line 161 of file EgHLTOffEle.h.

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

161 { return clusShapeData_.sigmaEtaEta; }
ClusShapeData clusShapeData_
Definition: EgHLTOffEle.h:78

◆ sigmaIEtaIEta()

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

◆ sigmaPhiPhi()

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

Definition at line 163 of file EgHLTOffEle.h.

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

163 { return clusShapeData_.sigmaPhiPhi; }
ClusShapeData clusShapeData_
Definition: EgHLTOffEle.h:78

◆ trigBits()

TrigCodes::TrigBitSet egHLT::OffEle::trigBits ( ) const
inline

Definition at line 235 of file EgHLTOffEle.h.

References trigBits_.

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

235 { return trigBits_; }
TrigCodes::TrigBitSet trigBits_
Definition: EgHLTOffEle.h:94

◆ trigCutsCutCode()

int OffEle::trigCutsCutCode ( const TrigCodes::TrigBitSet trigger) const

Definition at line 19 of file EgHLTOffEle.cc.

References 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 (auto const& trigCutsCutCode : trigCutsCutCodes_)
28  if (trigger == trigCutsCutCode.first)
29  return trigCutsCutCode.second;
30  return 0; //defaults to passing
31 }
int trigCutsCutCode(const TrigCodes::TrigBitSet &trigger) const
Definition: EgHLTOffEle.cc:19
std::vector< std::pair< TrigCodes::TrigBitSet, int > > trigCutsCutCodes_
Definition: EgHLTOffEle.h:89

◆ validCTFTrack()

bool egHLT::OffEle::validCTFTrack ( ) const
inline

◆ zVtx()

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

Definition at line 136 of file EgHLTOffEle.h.

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

136 { return gsfEle_->TrackPositionAtVtx().z(); }
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
math::XYZPointF TrackPositionAtVtx() const
Definition: GsfElectron.h:281

Member Data Documentation

◆ clusShapeData_

ClusShapeData egHLT::OffEle::clusShapeData_
private

◆ cutCode_

int egHLT::OffEle::cutCode_
private

Definition at line 84 of file EgHLTOffEle.h.

Referenced by cutCode(), and setCutCode().

◆ eventData_

EventData egHLT::OffEle::eventData_
private

Definition at line 81 of file EgHLTOffEle.h.

Referenced by NVertex().

◆ gsfEle_

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

◆ hltData_

HLTData egHLT::OffEle::hltData_
private

Definition at line 80 of file EgHLTOffEle.h.

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

◆ isolData_

IsolData egHLT::OffEle::isolData_
private

◆ looseCutCode_

int egHLT::OffEle::looseCutCode_
private

Definition at line 85 of file EgHLTOffEle.h.

Referenced by looseCutCode(), and setLooseCutCode().

◆ trigBits_

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

Definition at line 94 of file EgHLTOffEle.h.

Referenced by setTrigBits(), and trigBits().

◆ trigCutsCutCodes_

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

Definition at line 89 of file EgHLTOffEle.h.

Referenced by setTrigCutsCutCodes(), and trigCutsCutCode().