CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 ()=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

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
egHLT::OffEle::~OffEle ( )
default

Member Function Documentation

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
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
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
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
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
virtual TrackRef closestCtfTrackRef() const
Definition: GsfElectron.h:180
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
float egHLT::OffEle::ctfTrkChi2 ( ) const
inline

Definition at line 215 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

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

Definition at line 214 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

214 { return validCTFTrack() ? ctfTrack()->eta() : -999.; }
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
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; }
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
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; }
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
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.; }
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
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
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
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; }
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
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.; }
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
float egHLT::OffEle::ctfTrkP ( ) const
inline

Definition at line 212 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

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

Definition at line 213 of file EgHLTOffEle.h.

References ctfTrack(), and validCTFTrack().

213 { return validCTFTrack() ? ctfTrack()->pt() : -999.; }
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
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.; }
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
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.; }
reco::TrackRef ctfTrack() const
Definition: EgHLTOffEle.h:203
bool validCTFTrack() const
Definition: EgHLTOffEle.h:207
int egHLT::OffEle::cutCode ( ) const
inline
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
float egHLT::OffEle::dEtaIn ( ) const
inline
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
float egHLT::OffEle::detEta ( ) const
inline
float egHLT::OffEle::dPhiIn ( ) const
inline
float egHLT::OffEle::dPhiOut ( ) const
inline

Definition at line 154 of file EgHLTOffEle.h.

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

const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
float deltaPhiSeedClusterTrackAtCalo() const
Definition: GsfElectron.h:229
float egHLT::OffEle::e1x5Over5x5 ( ) const
inline
float egHLT::OffEle::e2x5MaxOver5x5 ( ) const
inline
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
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(); }
float eSuperClusterOverP() const
Definition: GsfElectron.h:221
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
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
float egHLT::OffEle::et ( ) const
inline
float egHLT::OffEle::eta ( ) const
inline

Definition at line 127 of file EgHLTOffEle.h.

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

Referenced by Particle.Particle::__str__(), egHLT::EleHLTFilterMon::EleHLTFilterMon(), Jet.Jet::jetID(), egHLT::EgTrigTagProbeCut::pass(), egHLT::EgTrigTagProbeCut_New::pass(), and Jet.Jet::puJetId().

127 { return gsfEle_->eta(); }
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
double eta() const final
momentum pseudorapidity
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
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
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
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
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
float egHLT::OffEle::hltEnergy ( ) const
inline
float egHLT::OffEle::hltEta ( ) const
inline
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
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 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
float egHLT::OffEle::hltPhi ( ) const
inline
float egHLT::OffEle::hOverE ( ) const
inline

Definition at line 151 of file EgHLTOffEle.h.

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

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

151 { return gsfEle_->hadronicOverEm(); }
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
float hadronicOverEm() const
Definition: GsfElectron.h:500
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  }
math::XYZVectorF trackMomentumAtVtx() const
Definition: GsfElectron.h:268
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
float caloEnergy() const
Definition: GsfElectron.h:899
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 isEEGap() const
Definition: GsfElectron.h:335
bool isEBEEGap() const
Definition: GsfElectron.h:331
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
bool isEBGap() const
Definition: GsfElectron.h:332
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
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 isolHadDepth1() const
Definition: EgHLTOffEle.h:181
float isolHadDepth2() const
Definition: EgHLTOffEle.h:182
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
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
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
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
int egHLT::OffEle::looseCutCode ( ) const
inline

Definition at line 229 of file EgHLTOffEle.h.

References looseCutCode_.

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

229 { return looseCutCode_; }
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
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::EgTagProbeCut< T >::pass(), egHLT::EgTrigTagProbeCut::pass(), and egHLT::EgTrigTagProbeCut_New::pass().

137 { return gsfEle_->p4(); }
const LorentzVector & p4(P4Kind kind) const
Definition: GsfElectron.cc:217
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
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
float egHLT::OffEle::phi ( void  ) const
inline
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
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
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(); }
math::XYZVectorF trackMomentumAtVtx() const
Definition: GsfElectron.h:268
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
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(); }
math::XYZVectorF trackMomentumAtVtx() const
Definition: GsfElectron.h:268
const reco::GsfElectron * gsfEle_
Definition: EgHLTOffEle.h:76
float egHLT::OffEle::r9 ( ) const
inline
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; }
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; }
void egHLT::OffEle::setTrigBits ( TrigCodes::TrigBitSet  bits)
inline

Definition at line 119 of file EgHLTOffEle.h.

References trigBits_.

119 { trigBits_ = bits; }
TrigCodes::TrigBitSet trigBits_
Definition: EgHLTOffEle.h:94
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
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
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
float egHLT::OffEle::sigmaIEtaIEta ( ) const
inline
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
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
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
bool egHLT::OffEle::validCTFTrack ( ) const
inline
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 egHLT::OffEle::clusShapeData_
private
int egHLT::OffEle::cutCode_
private

Definition at line 84 of file EgHLTOffEle.h.

Referenced by cutCode(), and setCutCode().

EventData egHLT::OffEle::eventData_
private

Definition at line 81 of file EgHLTOffEle.h.

Referenced by NVertex().

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

Definition at line 80 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 85 of file EgHLTOffEle.h.

Referenced by looseCutCode(), and setLooseCutCode().

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

Definition at line 94 of file EgHLTOffEle.h.

Referenced by setTrigBits(), and trigBits().

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

Definition at line 89 of file EgHLTOffEle.h.

Referenced by setTrigCutsCutCodes(), and trigCutsCutCode().