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
23
#include <string>
24
#include <utility>
25
#include <vector>
26
27
namespace
edm
{
28
class
ConsumesCollector;
29
class
Event
;
30
class
EventSetup
;
31
class
ParameterSet
;
32
class
Run
;
33
}
34
35
class
HLTPrescaleProvider
{
36
37
public
:
38
39
template
<
typename
T>
40
HLTPrescaleProvider
(
edm::ParameterSet
const
&
pset
,
41
edm::ConsumesCollector
&& iC,
42
T
&
module
);
43
44
template
<
typename
T>
45
HLTPrescaleProvider
(
edm::ParameterSet
const
& pset,
46
edm::ConsumesCollector
& iC,
47
T
& module);
48
52
bool
init
(
const
edm::Run
& iRun,
const
edm::EventSetup
& iSetup,
53
const
std::string
&
processName
,
bool
& changed);
54
55
HLTConfigProvider
const
&
hltConfigProvider
()
const
{
return
hltConfigProvider_; }
56
L1GtUtils
const
&
l1GtUtils
()
const
{
return
l1GtUtils_; }
57
l1t::L1TGlobalUtil
const
&
l1tGlobalUtil
()
const
{
return
l1tGlobalUtil_; }
58
61
int
prescaleSet(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup);
62
// negative == error
63
65
unsigned
int
prescaleValue(
const
edm::Event
& iEvent,
66
const
edm::EventSetup
& iSetup,
67
const
std::string
&
trigger
);
68
70
std::pair<int,int> prescaleValues(
const
edm::Event
& iEvent,
71
const
edm::EventSetup
& iSetup,
72
const
std::string
& trigger);
73
// any one negative => error in retrieving this (L1T or HLT) prescale
74
75
// In case of a complex Boolean expression as L1 seed
76
std::pair<std::vector<std::pair<std::string,int> >,
int
> prescaleValuesInDetail(
const
edm::Event
& iEvent,
77
const
edm::EventSetup
& iSetup,
78
const
std::string
& trigger);
79
80
private
:
81
82
HLTConfigProvider
hltConfigProvider_
;
83
L1GtUtils
l1GtUtils_
;
84
l1t::L1TGlobalUtil
l1tGlobalUtil_
;
85
unsigned
char
count_[5] = {0,0,0,0,0};
86
87
};
88
89
template
<
typename
T>
90
HLTPrescaleProvider::HLTPrescaleProvider
(
edm::ParameterSet
const
&
pset
,
91
edm::ConsumesCollector
&& iC,
92
T
&
module
) :
93
HLTPrescaleProvider
(pset, iC, module) { }
94
95
template
<
typename
T>
96
HLTPrescaleProvider::HLTPrescaleProvider
(
edm::ParameterSet
const
&
pset
,
97
edm::ConsumesCollector
& iC,
98
T
&
module
) :
99
l1GtUtils_
(pset, iC,
false
, module),
l1tGlobalUtil_
(pset, iC, module) { }
100
#endif
HLTPrescaleProvider::hltConfigProvider_
HLTConfigProvider hltConfigProvider_
Definition:
HLTPrescaleProvider.h:82
StGenEvtProducer_cfi.init
init
Definition:
StGenEvtProducer_cfi.py:9
ParameterSet
Definition:
Functions.h:16
funct::false
false
Definition:
Factorize.h:34
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
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:57
L1GtUtils.h
edm::EventSetup
Definition:
EventSetup.h:45
HLTPrescaleProvider::l1tGlobalUtil_
l1t::L1TGlobalUtil l1tGlobalUtil_
Definition:
HLTPrescaleProvider.h:84
L1GtUtils
Definition:
L1GtUtils.h:48
modifiedElectrons_cfi.processName
processName
Definition:
modifiedElectrons_cfi.py:5
HLTPrescaleProvider::l1GtUtils
L1GtUtils const & l1GtUtils() const
Definition:
HLTPrescaleProvider.h:56
HLTPrescaleProvider::HLTPrescaleProvider
HLTPrescaleProvider(edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, T &module)
Definition:
HLTPrescaleProvider.h:90
HLTPrescaleProvider
Definition:
HLTPrescaleProvider.h:35
HLTConfigProvider.h
Event
HLTPrescaleProvider::hltConfigProvider
HLTConfigProvider const & hltConfigProvider() const
Definition:
HLTPrescaleProvider.h:55
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:66
T
long double T
Definition:
Basic3DVectorLD.h:57
l1t::L1TGlobalUtil
Definition:
L1TGlobalUtil.h:31
module
Definition:
vlib.h:208
Run
edm::Run
Definition:
Run.h:42
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
HLTPrescaleProvider::l1GtUtils_
L1GtUtils l1GtUtils_
Definition:
HLTPrescaleProvider.h:83
Generated for CMSSW Reference Manual by
1.8.11