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) {
35
// empty
36
}
37
38
// destructor
39
L1GtPsbSetupTester::~L1GtPsbSetupTester
() {
40
// empty
41
}
42
43
// loop over events
44
void
L1GtPsbSetupTester::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& evSetup) {
45
edm::ESHandle<L1GtPsbSetup>
l1GtPsbSet;
46
evSetup.
get
<
L1GtPsbSetupRcd
>().
get
(l1GtPsbSet);
47
48
l1GtPsbSet->
print
(
std::cout
);
49
std::cout
<< std::endl;
50
}
ESHandle.h
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
L1GtPsbSetupRcd
Definition:
L1GtPsbSetupRcd.h:39
L1GtPsbSetup.h
L1GtPsbSetup::print
void print(std::ostream &) const
Definition:
L1GtPsbSetup.cc:41
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:73
L1GtPsbSetupTester.h
edm::ESHandle
Definition:
DTSurvey.h:22
L1GtPsbSetupTester::L1GtPsbSetupTester
L1GtPsbSetupTester(const edm::ParameterSet &)
Definition:
L1GtPsbSetupTester.cc:34
L1GtPsbSetupTester::~L1GtPsbSetupTester
~L1GtPsbSetupTester() override
Definition:
L1GtPsbSetupTester.cc:39
edm::ParameterSet
Definition:
ParameterSet.h:36
L1GtPsbSetupRcd.h
iEvent
int iEvent
Definition:
GenABIO.cc:224
edm::EventSetup
Definition:
EventSetup.h:57
get
#define get
EventSetup.h
edm::Event
Definition:
Event.h:73
L1GtPsbSetupTester::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
L1GtPsbSetupTester.cc:44
Generated for CMSSW Reference Manual by
1.8.16