Main Page
Namespaces
Classes
Package Documentation
HLTrigger
HLTcore
interface
HLTPrescaleProvider.h
Go to the documentation of this file.
1
#ifndef HLTcore_HLTPrescaleProvider_h
2
#define HLTcore_HLTPrescaleProvider_h
3
18
#include "
HLTrigger/HLTcore/interface/HLTConfigProvider.h
"
19
#include "
L1Trigger/GlobalTriggerAnalyzer/interface/L1GtUtils.h
"
20
#include "
L1Trigger/L1TGlobal/interface/L1TGlobalUtil.h
"
21
#include "
DataFormats/L1TGlobal/interface/GlobalLogicParser.h
"
22
#include "
DataFormats/Common/interface/TriggerResults.h
"
23
24
#include <string>
25
#include <utility>
26
#include <vector>
27
28
namespace
edm
{
29
class
ConsumesCollector;
30
class
Event
;
31
class
EventSetup
;
32
class
ParameterSet
;
33
class
Run
;
34
}
35
36
class
HLTPrescaleProvider
{
37
38
public
:
39
40
template
<
typename
T>
41
HLTPrescaleProvider
(
edm::ParameterSet
const
&
pset
,
42
edm::ConsumesCollector
&& iC,
43
T
&
module
);
44
45
template
<
typename
T>
46
HLTPrescaleProvider
(
edm::ParameterSet
const
& pset,
47
edm::ConsumesCollector
& iC,
48
T
& module);
49
53
bool
init
(
const
edm::Run
& iRun,
const
edm::EventSetup
& iSetup,
54
const
std::string
&
processName
,
bool
& changed);
55
56
HLTConfigProvider
const
&
hltConfigProvider
()
const
{
return
hltConfigProvider_; }
57
L1GtUtils
const
&
l1GtUtils
()
const
{
return
l1GtUtils_; }
58
l1t::L1TGlobalUtil
const
&
l1tGlobalUtil
()
const
{
return
l1tGlobalUtil_; }
59
62
int
prescaleSet(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup);
63
// negative == error
64
66
unsigned
int
prescaleValue(
const
edm::Event
& iEvent,
67
const
edm::EventSetup
& iSetup,
68
const
std::string
&
trigger
);
69
71
std::pair<int,int> prescaleValues(
const
edm::Event
& iEvent,
72
const
edm::EventSetup
& iSetup,
73
const
std::string
& trigger);
74
// any one negative => error in retrieving this (L1T or HLT) prescale
75
76
// In case of a complex Boolean expression as L1 seed
77
std::pair<std::vector<std::pair<std::string,int> >,
int
> prescaleValuesInDetail(
const
edm::Event
& iEvent,
78
const
edm::EventSetup
& iSetup,
79
const
std::string
& trigger);
80
// Event rejected by HLTPrescaler on ith HLT path?
81
bool
rejectedByHLTPrescaler(
const
edm::TriggerResults
&
triggerResults
,
unsigned
int
i
)
const
;
82
83
private
:
84
85
HLTConfigProvider
hltConfigProvider_
;
86
L1GtUtils
l1GtUtils_
;
87
l1t::L1TGlobalUtil
l1tGlobalUtil_
;
88
unsigned
char
count_[5] = {0,0,0,0,0};
89
90
};
91
92
template
<
typename
T>
93
HLTPrescaleProvider::HLTPrescaleProvider
(
edm::ParameterSet
const
&
pset
,
94
edm::ConsumesCollector
&& iC,
95
T
&
module
) :
96
HLTPrescaleProvider
(pset, iC, module) { }
97
98
template
<
typename
T>
99
HLTPrescaleProvider::HLTPrescaleProvider
(
edm::ParameterSet
const
&
pset
,
100
edm::ConsumesCollector
& iC,
101
T
&
module
) :
102
l1GtUtils_
(pset, iC,
false
, module),
l1tGlobalUtil_
(pset, iC, module) { }
103
#endif
HLTPrescaleProvider::hltConfigProvider_
HLTConfigProvider hltConfigProvider_
Definition:
HLTPrescaleProvider.h:85
mps_fire.i
i
Definition:
mps_fire.py:269
ParameterSet
Definition:
Functions.h:16
funct::false
false
Definition:
Factorize.h:35
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
TriggerResults.h
init
int init
Definition:
HydjetWrapper.h:67
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
GlobalLogicParser.h
L1TGlobalUtil.h
EventSetup
iEvent
int iEvent
Definition:
GenABIO.cc:230
HLTPrescaleProvider::l1tGlobalUtil
l1t::L1TGlobalUtil const & l1tGlobalUtil() const
Definition:
HLTPrescaleProvider.h:58
L1GtUtils.h
edm::EventSetup
Definition:
EventSetup.h:48
HLTPrescaleProvider::l1tGlobalUtil_
l1t::L1TGlobalUtil l1tGlobalUtil_
Definition:
HLTPrescaleProvider.h:87
L1GtUtils
Definition:
L1GtUtils.h:48
modifiedElectrons_cfi.processName
processName
Definition:
modifiedElectrons_cfi.py:5
HLTPrescaleProvider::l1GtUtils
L1GtUtils const & l1GtUtils() const
Definition:
HLTPrescaleProvider.h:57
HLTPrescaleProvider::HLTPrescaleProvider
HLTPrescaleProvider(edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, T &module)
Definition:
HLTPrescaleProvider.h:93
edm::triggerResults
static std::string const triggerResults("TriggerResults")
HLTPrescaleProvider
Definition:
HLTPrescaleProvider.h:36
HLTConfigProvider.h
Event
HLTPrescaleProvider::hltConfigProvider
HLTConfigProvider const & hltConfigProvider() const
Definition:
HLTPrescaleProvider.h:56
edm
HLT enums.
Definition:
AlignableModifier.h:17
trigger
Definition:
HLTPrescaleTableCond.h:8
edm::ParameterSet
Definition:
ParameterSet.h:36
HLTConfigProvider
Definition:
HLTConfigProvider.h:28
edm::Event
Definition:
Event.h:69
edm::TriggerResults
Definition:
TriggerResults.h:37
T
long double T
Definition:
Basic3DVectorLD.h:66
l1t::L1TGlobalUtil
Definition:
L1TGlobalUtil.h:31
module
Definition:
vlib.h:208
Run
edm::Run
Definition:
Run.h:43
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
HLTPrescaleProvider::l1GtUtils_
L1GtUtils l1GtUtils_
Definition:
HLTPrescaleProvider.h:86
Generated for CMSSW Reference Manual by
1.8.11