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::OffPho Class Reference

#include <EgHLTOffPho.h>

Classes

struct  ClusShapeData
 
struct  HLTData
 
struct  IsolData
 

Public Member Functions

int cutCode () const
 
float DeltaE () const
 
float detEta () const
 
float e1x5Over5x5 () const
 
float e2x5MaxOver5x5 () const
 
float energy () const
 
float et () const
 
float eta () const
 
float etaSC () const
 
float etSC () const
 
float hltEnergy () const
 
float hltEta () const
 
float hltIsolEm () const
 
float hltIsolHad () const
 
float hltIsolTrks () const
 
float hltPhi () const
 
float hOverE () const
 
bool isGap () const
 
float isolEm () const
 
float isolHad () const
 
int isolNrTrks () const
 
float isolPtTrks () const
 
int looseCutCode () const
 
 OffPho (const reco::Photon &pho, const ClusShapeData &shapeData, const IsolData &isolData, const HLTData &hltData)
 
const math::XYZTLorentzVectorp4 () const
 
float phi () const
 
float phiSC () const
 
float pt () const
 
float r9 () const
 
const reco::PhotonrecoPho () 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 sigmaIPhiIPhi () const
 
float sigmaPhiPhi () const
 
TrigCodes::TrigBitSet trigBits () const
 
int trigCutsCutCode (const TrigCodes::TrigBitSet &trigger) const
 
float zVtx () const
 
 ~OffPho ()
 

Private Attributes

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

Detailed Description

Definition at line 27 of file EgHLTOffPho.h.

Constructor & Destructor Documentation

egHLT::OffPho::OffPho ( const reco::Photon pho,
const ClusShapeData shapeData,
const IsolData isolData,
const HLTData hltData 
)
inline

Definition at line 85 of file EgHLTOffPho.h.

egHLT::OffPho::~OffPho ( )
inline

Definition at line 88 of file EgHLTOffPho.h.

Member Function Documentation

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

Definition at line 147 of file EgHLTOffPho.h.

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

Definition at line 144 of file EgHLTOffPho.h.

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

Definition at line 108 of file EgHLTOffPho.h.

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

Definition at line 126 of file EgHLTOffPho.h.

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

Definition at line 125 of file EgHLTOffPho.h.

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

Definition at line 103 of file EgHLTOffPho.h.

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

Definition at line 101 of file EgHLTOffPho.h.

Referenced by egHLT::PhoHLTFilterMon::PhoHLTFilterMon().

float egHLT::OffPho::eta ( ) const
inline
float egHLT::OffPho::etaSC ( ) const
inline

Definition at line 107 of file EgHLTOffPho.h.

Referenced by sigmaEtaEta().

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

Definition at line 106 of file EgHLTOffPho.h.

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

Definition at line 142 of file EgHLTOffPho.h.

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

Definition at line 141 of file EgHLTOffPho.h.

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

Definition at line 136 of file EgHLTOffPho.h.

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

Definition at line 134 of file EgHLTOffPho.h.

float egHLT::OffPho::hltIsolTrks ( ) const
inline

Definition at line 135 of file EgHLTOffPho.h.

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

Definition at line 140 of file EgHLTOffPho.h.

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

Definition at line 116 of file EgHLTOffPho.h.

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

Definition at line 113 of file EgHLTOffPho.h.

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

Definition at line 130 of file EgHLTOffPho.h.

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

Definition at line 131 of file EgHLTOffPho.h.

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

Definition at line 132 of file EgHLTOffPho.h.

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

Definition at line 133 of file EgHLTOffPho.h.

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

Definition at line 148 of file EgHLTOffPho.h.

const math::XYZTLorentzVector& egHLT::OffPho::p4 ( ) const
inline
float egHLT::OffPho::phi ( void  ) const
inline
float egHLT::OffPho::phiSC ( ) const
inline

Definition at line 109 of file EgHLTOffPho.h.

float egHLT::OffPho::pt ( void  ) const
inline
float egHLT::OffPho::r9 ( ) const
inline

Definition at line 127 of file EgHLTOffPho.h.

const reco::Photon* egHLT::OffPho::recoPho ( ) const
inline

Definition at line 98 of file EgHLTOffPho.h.

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

Definition at line 91 of file EgHLTOffPho.h.

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

Definition at line 92 of file EgHLTOffPho.h.

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

Definition at line 96 of file EgHLTOffPho.h.

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

Definition at line 95 of file EgHLTOffPho.h.

float OffPho::sigmaEtaEta ( ) const

Definition at line 5 of file EgHLTOffPho.cc.

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

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 }
ClusShapeData clusShapeData_
Definition: EgHLTOffPho.h:66
float etaSC() const
Definition: EgHLTOffPho.h:107
float egHLT::OffPho::sigmaEtaEtaUnCorr ( ) const
inline

Definition at line 121 of file EgHLTOffPho.h.

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

Definition at line 122 of file EgHLTOffPho.h.

float egHLT::OffPho::sigmaIPhiIPhi ( ) const
inline

Definition at line 124 of file EgHLTOffPho.h.

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

Definition at line 123 of file EgHLTOffPho.h.

TrigCodes::TrigBitSet egHLT::OffPho::trigBits ( ) const
inline
int OffPho::trigCutsCutCode ( const TrigCodes::TrigBitSet trigger) const

Definition at line 14 of file EgHLTOffPho.cc.

References plotBeamSpotDB::first, i, and trigCutsCutCodes_.

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

Definition at line 110 of file EgHLTOffPho.h.

Member Data Documentation

ClusShapeData egHLT::OffPho::clusShapeData_
private

Definition at line 66 of file EgHLTOffPho.h.

Referenced by sigmaEtaEta().

int egHLT::OffPho::cutCode_
private

Definition at line 71 of file EgHLTOffPho.h.

HLTData egHLT::OffPho::hltData_
private

Definition at line 68 of file EgHLTOffPho.h.

IsolData egHLT::OffPho::isolData_
private

Definition at line 67 of file EgHLTOffPho.h.

int egHLT::OffPho::looseCutCode_
private

Definition at line 72 of file EgHLTOffPho.h.

const reco::Photon* egHLT::OffPho::pho_
private

Definition at line 64 of file EgHLTOffPho.h.

TrigCodes::TrigBitSet egHLT::OffPho::trigBits_
private

Definition at line 81 of file EgHLTOffPho.h.

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

Definition at line 76 of file EgHLTOffPho.h.

Referenced by trigCutsCutCode().