CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EgHLTOffEle.cc
Go to the documentation of this file.
2 
3 using namespace egHLT;
4 
5 float OffEle::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 
14 //defining the == operator
15 //bool operator==(const std::pair<TrigCodes::TrigBitSet,int>& lhs,const TrigCodes::TrigBitSet& rhs){return lhs.first==rhs;}
16 //bool operator==(const TrigCodes::TrigBitSet& lhs,const std::pair<TrigCodes::TrigBitSet,int>& rhs){return lhs==rhs.first;}
17 
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(size_t i=0;i<trigCutsCutCodes_.size();i++) if(trigger==trigCutsCutCodes_[i].first) return trigCutsCutCodes_[i].second;
28  return 0; //defaults to passing
29 }
30 
31 
32 // float EgHLTOffEle::sigmaIEtaIEta()const
33 // {
34 // if(fabs(etaSC())<1.479) return clusShapeData_.sigmaIEtaIEta; //barrel case, no correction
35 // else{ //endcap, need to apply eta correction
36 // return clusShapeData_.sigmaIEtaIEta - 0.02*( fabs(etaSC()) - 2.3);
37 // }
38 
39 // }
int i
Definition: DBlmapReader.cc:9
float etaSC() const
Definition: EgHLTOffEle.h:124
std::vector< std::pair< TrigCodes::TrigBitSet, int > > trigCutsCutCodes_
Definition: EgHLTOffEle.h:91
float sigmaEtaEta() const
Definition: EgHLTOffEle.cc:5
bool first
Definition: L1TdeRCT.cc:75
ClusShapeData clusShapeData_
Definition: EgHLTOffEle.h:81
int trigCutsCutCode(const TrigCodes::TrigBitSet &trigger) const
Definition: EgHLTOffEle.cc:18
std::bitset< maxNrBits_ > TrigBitSet