src
L1TriggerConfig
L1GtConfigProducers
src
L1GtPsbSetupTester.cc
Go to the documentation of this file.
1
15
// this class header
16
#include "
L1TriggerConfig/L1GtConfigProducers/interface/L1GtPsbSetupTester.h
"
17
18
// system include files
19
#include <iostream>
20
#include <iomanip>
21
22
// user include files
23
// base class
24
25
#include "
FWCore/Framework/interface/EventSetup.h
"
26
#include "
FWCore/Framework/interface/ESHandle.h
"
27
28
#include "
CondFormats/L1TObjects/interface/L1GtPsbSetup.h
"
29
#include "
CondFormats/DataRecord/interface/L1GtPsbSetupRcd.h
"
30
31
// forward declarations
32
33
// constructor(s)
34
L1GtPsbSetupTester::L1GtPsbSetupTester
(
const
edm::ParameterSet
& parSet) : m_getToken(
esConsumes
()) {
35
// empty
36
}
37
38
// loop over events
39
void
L1GtPsbSetupTester::analyze
(
edm::StreamID
,
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& evSetup)
const
{
40
evSetup.
getData
(
m_getToken
).print(
std::cout
);
41
std::cout
<< std::endl;
42
}
L1GtPsbSetupTester::L1GtPsbSetupTester
L1GtPsbSetupTester(const edm::ParameterSet &)
Definition:
L1GtPsbSetupTester.cc:34
deDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Record, edm::ConsumesCollector &)
Definition:
DeDxTools.cc:283
edm::StreamID
Definition:
StreamID.h:30
EventSetup.h
L1GtPsbSetup.h
L1GtPsbSetupTester::analyze
void analyze(edm::StreamID, const edm::Event &, const edm::EventSetup &) const override
Definition:
L1GtPsbSetupTester.cc:39
L1GtPsbSetupTester::m_getToken
edm::ESGetToken< L1GtPsbSetup, L1GtPsbSetupRcd > m_getToken
Definition:
L1GtPsbSetupTester.h:40
iEvent
int iEvent
Definition:
GenABIO.cc:224
L1GtPsbSetupRcd.h
ESHandle.h
edm::EventSetup
Definition:
EventSetup.h:59
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition:
EventSetup.h:122
L1GtPsbSetupTester.h
edm::ParameterSet
Definition:
ParameterSet.h:47
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
edm::Event
Definition:
Event.h:73
Generated for CMSSW Reference Manual by
1.8.14