src
HLTrigger
HLTanalyzers
plugins
HLTInfo.h
Go to the documentation of this file.
1
#ifndef HLTINFO_H
2
#define HLTINFO_H
3
4
#include <memory>
5
#include <vector>
6
#include <map>
7
8
// ROOT
9
#include <TChain.h>
10
#include <TFile.h>
11
#include <TH1.h>
12
#include <TH2.h>
13
#include <TNamed.h>
14
#include <TROOT.h>
15
16
// CMSSW
17
#include "
CondFormats/DataRecord/interface/L1TUtmTriggerMenuRcd.h
"
18
#include "
CondFormats/L1TObjects/interface/L1TUtmAlgorithm.h
"
19
#include "
CondFormats/L1TObjects/interface/L1TUtmTriggerMenu.h
"
20
#include "
DataFormats/Candidate/interface/Candidate.h
"
21
#include "
DataFormats/Common/interface/Handle.h
"
22
#include "
DataFormats/Common/interface/TriggerResults.h
"
23
#include "
DataFormats/EcalDigi/interface/EcalDigiCollections.h
"
24
#include "
DataFormats/HcalDigi/interface/HcalDigiCollections.h
"
25
#include "
DataFormats/L1CaloTrigger/interface/L1CaloCollections.h
"
26
#include "
DataFormats/L1TGlobal/interface/GlobalAlgBlk.h
"
27
#include "
DataFormats/L1TGlobal/interface/GlobalExtBlk.h
"
28
#include "
DataFormats/METReco/interface/CaloMETCollection.h
"
29
#include "
FWCore/Common/interface/Provenance.h
"
30
#include "
FWCore/Framework/interface/EventPrincipal.h
"
31
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
32
#include "
HLTrigger/HLTcore/interface/HLTPrescaleProvider.h
"
33
34
#include "
JetUtil.h
"
35
36
namespace
edm
{
37
class
ConsumesCollector;
38
class
ParameterSet
;
39
}
// namespace edm
40
41
typedef
std::vector<std::string>
MyStrings
;
42
53
class
HLTInfo
{
54
public
:
55
//HLTInfo();
56
57
template
<
typename
T>
58
HLTInfo
(
edm::ParameterSet
const
&
pset
,
edm::ConsumesCollector
&& iC,
T
&
module
);
59
60
template
<
typename
T>
61
HLTInfo
(
edm::ParameterSet
const
&
pset
,
edm::ConsumesCollector
& iC,
T
&
module
);
62
63
void
setup
(
const
edm::ParameterSet
& pSet, TTree*
tree
);
64
void
beginRun
(
const
edm::Run
&,
const
edm::EventSetup
&);
65
67
void
analyze
(
const
edm::Handle<edm::TriggerResults>
&
hltresults
,
68
const
edm::Handle<GlobalAlgBlkBxCollection>
&
l1results
,
69
edm::EventSetup
const
&
eventSetup
,
70
edm::Event
const
&
iEvent
,
71
TTree*
tree
);
72
73
private
:
74
HLTInfo
();
75
76
edm::ESGetToken<L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd>
l1tUtmTriggerMenuToken_
;
77
78
// Tree variables
79
float
*
hltppt
, *
hltpeta
;
80
int
L1EvtCnt
,
HltEvtCnt
,
nhltpart
;
81
82
int
*
trigflag
, *
l1flag
, *
l1flag5Bx
, *
l1techflag
;
83
double
*
trigPrescl
;
84
int
*
l1Prescl
, *
l1techPrescl
;
85
86
TString*
algoBitToName
;
87
TString*
techBitToName
;
88
std::vector<std::string>
dummyBranches_
;
89
90
//HLTConfigProvider hltConfig_;
91
//L1GtUtils m_l1GtUtils;
92
std::unique_ptr<HLTPrescaleProvider>
hltPrescaleProvider_
;
93
std::string
processName_
;
94
95
bool
_OR_BXes
;
96
int
UnpackBxInEvent
;
// save number of BXs unpacked in event
97
98
// input variables
99
100
// L1 uGT menu
101
unsigned
long
long
cache_id_
;
102
103
/*
104
edm::ESHandle<L1TUtmTriggerMenu> menu;
105
//std::map<std::string, L1TUtmAlgorithm> const & algorithmMap_;
106
const std::map<std::string, L1TUtmAlgorithm>* algorithmMap_;
107
*/
108
bool
_Debug
;
109
};
110
111
template
<
typename
T>
112
HLTInfo::HLTInfo
(
edm::ParameterSet
const
&
pset
,
edm::ConsumesCollector
&& iC,
T
&
module
) :
HLTInfo
(
pset
, iC,
module
) {}
113
114
template
<
typename
T>
115
HLTInfo::HLTInfo
(
edm::ParameterSet
const
&
pset
,
edm::ConsumesCollector
& iC,
T
&
module
) :
HLTInfo
() {
116
l1tUtmTriggerMenuToken_
= iC.
esConsumes
<
L1TUtmTriggerMenu
,
L1TUtmTriggerMenuRcd
>();
117
hltPrescaleProvider_
= std::make_unique<HLTPrescaleProvider>(
pset
, iC,
module
);
118
}
119
120
#endif
HLTInfo::_Debug
bool _Debug
Definition:
HLTInfo.h:108
HLTInfo::L1EvtCnt
int L1EvtCnt
Definition:
HLTInfo.h:80
HLTInfo::trigPrescl
double * trigPrescl
Definition:
HLTInfo.h:83
HLTInfo::analyze
void analyze(const edm::Handle< edm::TriggerResults > &hltresults, const edm::Handle< GlobalAlgBlkBxCollection > &l1results, edm::EventSetup const &eventSetup, edm::Event const &iEvent, TTree *tree)
Definition:
HLTInfo.cc:84
HLTInfo::dummyBranches_
std::vector< std::string > dummyBranches_
Definition:
HLTInfo.h:88
edm::ConsumesCollector::esConsumes
auto esConsumes()
Definition:
ConsumesCollector.h:97
HLTBitAnalyser_cfi.hltresults
hltresults
Definition:
HLTBitAnalyser_cfi.py:13
HLTInfo::nhltpart
int nhltpart
Definition:
HLTInfo.h:80
HLTInfo::HLTInfo
HLTInfo()
Definition:
HLTInfo.cc:22
HLTInfo::l1tUtmTriggerMenuToken_
edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > l1tUtmTriggerMenuToken_
Definition:
HLTInfo.h:76
HLTInfo::setup
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition:
HLTInfo.cc:47
GlobalExtBlk.h
ParameterSet
Definition:
Functions.h:16
HLTInfo::l1techPrescl
int * l1techPrescl
Definition:
HLTInfo.h:84
HLTInfo::cache_id_
unsigned long long cache_id_
Definition:
HLTInfo.h:101
TriggerResults.h
edm::Handle< edm::TriggerResults >
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
HLTInfo::hltpeta
float * hltpeta
Definition:
HLTInfo.h:79
CaloMETCollection.h
MyStrings
std::vector< std::string > MyStrings
Definition:
HLTInfo.h:41
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ParameterSet.h
L1TUtmTriggerMenuRcd.h
callgraph.module
module
Definition:
callgraph.py:69
Candidate.h
HLTInfo::processName_
std::string processName_
Definition:
HLTInfo.h:93
edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd >
iEvent
int iEvent
Definition:
GenABIO.cc:224
EventPrincipal.h
HLTInfo::UnpackBxInEvent
int UnpackBxInEvent
Definition:
HLTInfo.h:96
HLTInfo::algoBitToName
TString * algoBitToName
Definition:
HLTInfo.h:86
L1TUtmTriggerMenuRcd
Definition:
L1TUtmTriggerMenuRcd.h:11
Provenance.h
HcalDigiCollections.h
HLTPrescaleProvider.h
HLTInfo::HltEvtCnt
int HltEvtCnt
Definition:
HLTInfo.h:80
JetUtil.h
EcalDigiCollections.h
edm::EventSetup
Definition:
EventSetup.h:56
L1CaloCollections.h
HLTInfo::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &)
Definition:
HLTInfo.cc:29
L1TUtmAlgorithm.h
HLTInfo::l1flag
int * l1flag
Definition:
HLTInfo.h:82
HLTInfo::techBitToName
TString * techBitToName
Definition:
HLTInfo.h:87
GlobalAlgBlk.h
HLTInfo::_OR_BXes
bool _OR_BXes
Definition:
HLTInfo.h:95
L1TUtmTriggerMenu.h
HLTInfo::l1Prescl
int * l1Prescl
Definition:
HLTInfo.h:84
HLTInfo::l1techflag
int * l1techflag
Definition:
HLTInfo.h:82
HLTBitAnalyser_cfi.l1results
l1results
Definition:
HLTBitAnalyser_cfi.py:8
edm
HLT enums.
Definition:
AlignableModifier.h:19
L1TUtmTriggerMenu
Definition:
L1TUtmTriggerMenu.h:25
HLTInfo::trigflag
int * trigflag
Definition:
HLTInfo.h:82
edm::ParameterSet
Definition:
ParameterSet.h:47
HLTInfo::l1flag5Bx
int * l1flag5Bx
Definition:
HLTInfo.h:82
tree
Definition:
tree.py:1
edm::Event
Definition:
Event.h:73
HLTInfo::hltppt
float * hltppt
Definition:
HLTInfo.h:79
T
long double T
Definition:
Basic3DVectorLD.h:48
options_cfi.eventSetup
eventSetup
Definition:
options_cfi.py:12
HLTInfo
Definition:
HLTInfo.h:53
edm::Run
Definition:
Run.h:45
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
Handle.h
HLTInfo::hltPrescaleProvider_
std::unique_ptr< HLTPrescaleProvider > hltPrescaleProvider_
Definition:
HLTInfo.h:92
Generated for CMSSW Reference Manual by
1.8.14