Main Page
Namespaces
Classes
Package Documentation
DQMOffline
Trigger
src
EgHLTOffEle.cc
Go to the documentation of this file.
1
#include <cmath>
2
3
#include "
DQMOffline/Trigger/interface/EgHLTOffEle.h
"
4
5
using namespace
egHLT
;
6
7
float
OffEle::sigmaEtaEta
()
const
8
{
9
if
(std::fabs(
etaSC
())<1.479)
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
14
}
15
16
//defining the == operator
17
//bool operator==(const std::pair<TrigCodes::TrigBitSet,int>& lhs,const TrigCodes::TrigBitSet& rhs){return lhs.first==rhs;}
18
//bool operator==(const TrigCodes::TrigBitSet& lhs,const std::pair<TrigCodes::TrigBitSet,int>& rhs){return lhs==rhs.first;}
19
20
int
OffEle::trigCutsCutCode
(
const
TrigCodes::TrigBitSet
&
trigger
)
const
21
{
22
//yes maybe a sorted vector might be better but 1) its small and 2) bitset doesnt support < operator
23
//okay laugh, for some reason I cant overload the == operator (brain just not working), hence the non stl'y way
24
//std::vector<std::pair<TrigCodes::TrigBitSet,int> >::const_iterator it;
25
//it = std::find(trigCutsCodes_.begin(),trigCutsCodes_.end(),trigger);
26
//if(it!=trigCutsCodes_.end()) return it->second;
27
//else return 0; //defaults to passing
28
29
for
(
auto
const
&
trigCutsCutCode
:
trigCutsCutCodes_
)
if
(trigger==
trigCutsCutCode
.first)
return
trigCutsCutCode
.second;
30
return
0;
//defaults to passing
31
}
32
33
34
// float EgHLTOffEle::sigmaIEtaIEta()const
35
// {
36
// if(fabs(etaSC())<1.479) return clusShapeData_.sigmaIEtaIEta; //barrel case, no correction
37
// else{ //endcap, need to apply eta correction
38
// return clusShapeData_.sigmaIEtaIEta - 0.02*( fabs(etaSC()) - 2.3);
39
// }
40
41
// }
egHLT::OffEle::ClusShapeData::sigmaEtaEta
float sigmaEtaEta
Definition:
EgHLTOffEle.h:50
egHLT::OffEle::etaSC
float etaSC() const
Definition:
EgHLTOffEle.h:124
EgHLTOffEle.h
egHLT::OffEle::trigCutsCutCodes_
std::vector< std::pair< TrigCodes::TrigBitSet, int > > trigCutsCutCodes_
Definition:
EgHLTOffEle.h:91
egHLT::OffEle::sigmaEtaEta
float sigmaEtaEta() const
Definition:
EgHLTOffEle.cc:7
egHLT::OffEle::clusShapeData_
ClusShapeData clusShapeData_
Definition:
EgHLTOffEle.h:81
egHLT::OffEle::trigCutsCutCode
int trigCutsCutCode(const TrigCodes::TrigBitSet &trigger) const
Definition:
EgHLTOffEle.cc:20
trigger
Definition:
HLTPrescaleTableCond.h:8
egHLT
Definition:
EgHLTBinData.h:10
egHLT::TrigCodes::TrigBitSet
std::bitset< maxNrBits_ > TrigBitSet
Definition:
EgHLTTrigCodes.h:25
Generated for CMSSW Reference Manual by
1.8.11