CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EgHLTOffPho.cc
Go to the documentation of this file.
2 
3 using namespace egHLT;
4 
5 float OffPho::sigmaEtaEta()const
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 }
13 
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
ClusShapeData clusShapeData_
Definition: EgHLTOffPho.h:66
int trigCutsCutCode(const TrigCodes::TrigBitSet &trigger) const
Definition: EgHLTOffPho.cc:14
float etaSC() const
Definition: EgHLTOffPho.h:107
float sigmaEtaEta() const
Definition: EgHLTOffPho.cc:5
std::bitset< maxNrBits_ > TrigBitSet