Main Page
Namespaces
Classes
Package Documentation
src
DQMOffline
Trigger
src
EgHLTOffPho.cc
Go to the documentation of this file.
1
#include <cmath>
2
3
#include "
DQMOffline/Trigger/interface/EgHLTOffPho.h
"
4
5
using namespace
egHLT
;
6
7
float
OffPho::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
int
OffPho::trigCutsCutCode
(
const
TrigCodes::TrigBitSet
&
trigger
)
const
17
{
18
//yes maybe a sorted vector might be better but 1) its small and 2) bitset doesnt support < operator
19
//okay laugh, for some reason I cant overload the == operator (brain just not working), hence the non stl'y way
20
//std::vector<std::pair<TrigCodes::TrigBitSet,int> >::const_iterator it;
21
//it = std::find(trigCutsCodes_.begin(),trigCutsCodes_.end(),trigger);
22
//if(it!=trigCutsCodes_.end()) return it->second;
23
//else return 0; //defaults to passing
24
25
for
(
auto
const
&
trigCutsCutCode
:
trigCutsCutCodes_
)
if
(trigger==
trigCutsCutCode
.first)
return
trigCutsCutCode
.second;
26
return
0;
//defaults to passing
27
}
EgHLTOffPho.h
egHLT::OffPho::trigCutsCutCodes_
std::vector< std::pair< TrigCodes::TrigBitSet, int > > trigCutsCutCodes_
Definition:
EgHLTOffPho.h:76
egHLT::OffPho::clusShapeData_
ClusShapeData clusShapeData_
Definition:
EgHLTOffPho.h:66
egHLT::OffPho::ClusShapeData::sigmaEtaEta
float sigmaEtaEta
Definition:
EgHLTOffPho.h:44
egHLT::OffPho::trigCutsCutCode
int trigCutsCutCode(const TrigCodes::TrigBitSet &trigger) const
Definition:
EgHLTOffPho.cc:16
egHLT::OffPho::etaSC
float etaSC() const
Definition:
EgHLTOffPho.h:107
egHLT::OffPho::sigmaEtaEta
float sigmaEtaEta() const
Definition:
EgHLTOffPho.cc:7
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