L1TriggerConfig
GctConfigProducers
src
L1GctConfigDump.cc
Go to the documentation of this file.
1
#include "
L1TriggerConfig/GctConfigProducers/interface/L1GctConfigDump.h
"
2
3
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
4
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
5
#include "
FWCore/Framework/interface/MakerMacros.h
"
6
7
#include "
FWCore/Framework/interface/Event.h
"
8
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
9
10
#include "
FWCore/Framework/interface/EventSetup.h
"
11
#include "
FWCore/Framework/interface/ESHandle.h
"
12
13
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
14
#include "
FWCore/MessageLogger/interface/MessageDrop.h
"
15
16
#include "
CondFormats/L1TObjects/interface/L1GctJetFinderParams.h
"
17
#include "
CondFormats/L1TObjects/interface/L1GctChannelMask.h
"
18
#include "
CondFormats/L1TObjects/interface/L1CaloEtScale.h
"
19
20
#include "
CondFormats/DataRecord/interface/L1GctJetFinderParamsRcd.h
"
21
#include "
CondFormats/DataRecord/interface/L1GctChannelMaskRcd.h
"
22
#include "
CondFormats/DataRecord/interface/L1JetEtScaleRcd.h
"
23
#include "
CondFormats/DataRecord/interface/L1HtMissScaleRcd.h
"
24
#include "
CondFormats/DataRecord/interface/L1HfRingEtScaleRcd.h
"
25
26
#include <iomanip>
27
28
L1GctConfigDump::L1GctConfigDump
(
const
edm::ParameterSet
& pSet) {
29
// empty
30
}
31
32
// destructor
33
L1GctConfigDump::~L1GctConfigDump
() {
34
// empty
35
}
36
37
void
L1GctConfigDump::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup) {
38
// get records
39
40
edm::ESHandle<L1GctJetFinderParams>
jfParams;
41
iSetup.
get
<
L1GctJetFinderParamsRcd
>().
get
(jfParams);
42
43
edm::ESHandle<L1GctChannelMask>
chanMask;
44
iSetup.
get
<
L1GctChannelMaskRcd
>().
get
(chanMask);
45
46
edm::ESHandle<L1CaloEtScale>
jetScale
;
47
iSetup.
get
<
L1JetEtScaleRcd
>().
get
(
jetScale
);
48
49
edm::ESHandle<L1CaloEtScale>
htmScale;
50
iSetup.
get
<
L1HtMissScaleRcd
>().
get
(htmScale);
51
52
edm::ESHandle<L1CaloEtScale>
hfRingScale;
53
iSetup.
get
<
L1HfRingEtScaleRcd
>().
get
(hfRingScale);
54
55
edm::LogInfo
(
"L1GctConfigDump"
) << (*jfParams) << std::endl;
56
edm::LogInfo
(
"L1GctConfigDump"
) << (*chanMask) << std::endl;
57
edm::LogInfo
(
"L1GctConfigDump"
) <<
"GCT jet Et scale : "
<< std::endl << (*jetScale) << std::endl;
58
edm::LogInfo
(
"L1GctConfigDump"
) <<
"GCT HtMiss scale : "
<< std::endl << (*htmScale) << std::endl;
59
edm::LogInfo
(
"L1GctConfigDump"
) <<
"GCT HF ring scale : "
<< std::endl << (*hfRingScale) << std::endl;
60
}
61
62
DEFINE_FWK_MODULE
(
L1GctConfigDump
);
MessageLogger.h
ESHandle.h
L1GctJetFinderParamsRcd.h
L1GctConfigDump.h
edm::LogInfo
Definition:
MessageLogger.h:254
L1GctConfigDump::~L1GctConfigDump
~L1GctConfigDump() override
Definition:
L1GctConfigDump.cc:33
EDAnalyzer.h
L1GctJetFinderParams.h
L1HfRingEtScaleRcd
Definition:
L1HfRingEtScaleRcd.h:30
L1HtMissScaleRcd.h
MakerMacros.h
L1GctChannelMaskRcd.h
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:73
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
L1GctConfigDump::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
L1GctConfigDump.cc:37
L1GctChannelMaskRcd
Definition:
L1GctChannelMaskRcd.h:12
L1JetEtScaleRcd
Definition:
L1JetEtScaleRcd.h:30
edm::ESHandle
Definition:
DTSurvey.h:22
L1GctJetFinderParamsRcd
Definition:
L1GctJetFinderParamsRcd.h:31
MessageDrop.h
edm::ParameterSet
Definition:
ParameterSet.h:36
L1GctChannelMask.h
Event.h
ModuleDef.h
iEvent
int iEvent
Definition:
GenABIO.cc:224
L1HfRingEtScaleRcd.h
edm::EventSetup
Definition:
EventSetup.h:57
get
#define get
L1CaloEtScale.h
L1HtMissScaleRcd
Definition:
L1HtMissScaleRcd.h:30
L1GctConfigDump
Definition:
L1GctConfigDump.h:26
EventSetup.h
wplusjetsAnalysis_cfi.jetScale
jetScale
Definition:
wplusjetsAnalysis_cfi.py:88
L1GctConfigDump::L1GctConfigDump
L1GctConfigDump(const edm::ParameterSet &)
Definition:
L1GctConfigDump.cc:28
ParameterSet.h
L1JetEtScaleRcd.h
edm::Event
Definition:
Event.h:73
Generated for CMSSW Reference Manual by
1.8.16