Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DQMOffline
Trigger
src
EgHLTOffPho.cc
Go to the documentation of this file.
1
#include "
DQMOffline/Trigger/interface/EgHLTOffPho.h
"
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
14
int
OffPho::trigCutsCutCode
(
const
TrigCodes::TrigBitSet
& trigger)
const
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
}
i
int i
Definition:
DBlmapReader.cc:9
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:14
egHLT::OffPho::etaSC
float etaSC() const
Definition:
EgHLTOffPho.h:107
egHLT::OffPho::sigmaEtaEta
float sigmaEtaEta() const
Definition:
EgHLTOffPho.cc:5
first
bool first
Definition:
L1TdeRCT.cc:94
egHLT::TrigCodes::TrigBitSet
std::bitset< maxNrBits_ > TrigBitSet
Definition:
EgHLTTrigCodes.h:25
Generated for CMSSW Reference Manual by
1.8.5