CMS 3D CMS Logo

ConditionDumperInEdm.h
Go to the documentation of this file.
1 #ifndef ConditionDumperInEdm_H
2 #define ConditionDumperInEdm_H
3 // -*- C++ -*-
4 //
5 // Package: ConditionDumperInEdm
6 // Class: ConditionDumperInEdm
7 //
15 //
16 // Original Author: Jean-Roch Vlimant,40 3-A28,+41227671209,
17 // Created: Thu Feb 11 19:46:28 CET 2010
18 //
19 //
20 
21 // system include files
22 #include <memory>
23 
24 // user include files
27 
32 
34 
37 
39 
42 
43 //
44 // class declaration
45 //
46 
47 class ConditionDumperInEdm : public edm::one::EDProducer<edm::RunCache<edm::ConditionsInRunBlock>,
48  edm::LuminosityBlockCache<edm::ConditionsInLumiBlock>,
49  edm::EndRunProducer,
50  edm::EndLuminosityBlockProducer> {
51 public:
52  explicit ConditionDumperInEdm(const edm::ParameterSet&);
53  ~ConditionDumperInEdm() override;
54 
55 private:
56  std::shared_ptr<edm::ConditionsInLumiBlock> globalBeginLuminosityBlock(edm::LuminosityBlock const&,
57  edm::EventSetup const&) const final;
60  std::shared_ptr<edm::ConditionsInRunBlock> globalBeginRun(edm::Run const&, const edm::EventSetup&) const final;
61  void globalEndRun(edm::Run const&, const edm::EventSetup&) final {}
62  void endRunProduce(edm::Run&, const edm::EventSetup&) final;
63  void produce(edm::Event&, const edm::EventSetup&) final;
64 
65  template <typename R, typename T>
66  const T* get(const edm::EventSetup& setup) {
68  setup.get<R>().get(handle);
69  return handle.product();
70  }
71 
72  // ----------member data ---------------------------
73 
75 
77 
82 };
83 
84 #endif
EDProducer.h
ESHandle.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
patZpeak.handle
handle
Definition: patZpeak.py:23
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord >
LuminosityBlock.h
edm::EDPutTokenT< edm::ConditionsInLumiBlock >
ConditionDumperInEdm
Definition: ConditionDumperInEdm.h:47
ConditionDumperInEdm::endLuminosityBlockProduce
void endLuminosityBlockProduce(edm::LuminosityBlock &, edm::EventSetup const &) final
Definition: ConditionDumperInEdm.cc:35
ConditionDumperInEdm::gtEvmDigisLabel_
const edm::InputTag gtEvmDigisLabel_
Definition: ConditionDumperInEdm.h:74
ConditionDumperInEdm::globalEndRun
void globalEndRun(edm::Run const &, const edm::EventSetup &) final
Definition: ConditionDumperInEdm.h:61
edm::one::EDProducer
Definition: EDProducer.h:30
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
ConditionDumperInEdm::globalBeginLuminosityBlock
std::shared_ptr< edm::ConditionsInLumiBlock > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const final
Definition: ConditionDumperInEdm.cc:30
edm::ConditionsInEventBlock
Definition: ConditionsInEdm.h:33
MakerMacros.h
L1GlobalTriggerEvmReadoutRecord.h
ConditionDumperInEdm::endRunProduce
void endRunProduce(edm::Run &, const edm::EventSetup &) final
Definition: ConditionDumperInEdm.cc:44
Run.h
edm::ESHandle
Definition: DTSurvey.h:22
ConditionDumperInEdm::eventToken_
const edm::EDPutTokenT< edm::ConditionsInEventBlock > eventToken_
Definition: ConditionDumperInEdm.h:81
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
ConditionDumperInEdm::ConditionDumperInEdm
ConditionDumperInEdm(const edm::ParameterSet &)
Definition: ConditionDumperInEdm.cc:15
ConditionDumperInEdm::globalEndLuminosityBlock
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) final
Definition: ConditionDumperInEdm.h:58
ConditionDumperInEdm::eventBlock_
edm::ConditionsInEventBlock eventBlock_
Definition: ConditionDumperInEdm.h:76
ConditionDumperInEdm::produce
void produce(edm::Event &, const edm::EventSetup &) final
Definition: ConditionDumperInEdm.cc:59
edm::EventSetup
Definition: EventSetup.h:58
ConditionDumperInEdm::gtEvmDigisLabelToken_
const edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord > gtEvmDigisLabelToken_
Definition: ConditionDumperInEdm.h:78
InputTag.h
ConditionDumperInEdm::~ConditionDumperInEdm
~ConditionDumperInEdm() override
Definition: ConditionDumperInEdm.cc:25
ConditionsInEdm.h
Frameworkfwd.h
T
long double T
Definition: Basic3DVectorLD.h:48
EventSetup.h
ConditionDumperInEdm::runToken_
const edm::EDPutTokenT< edm::ConditionsInRunBlock > runToken_
Definition: ConditionDumperInEdm.h:80
ConditionDumperInEdm::get
const T * get(const edm::EventSetup &setup)
Definition: ConditionDumperInEdm.h:66
ConditionDumperInEdm::lumiToken_
const edm::EDPutTokenT< edm::ConditionsInLumiBlock > lumiToken_
Definition: ConditionDumperInEdm.h:79
ParameterSet.h
edm::Event
Definition: Event.h:73
ConditionDumperInEdm::globalBeginRun
std::shared_ptr< edm::ConditionsInRunBlock > globalBeginRun(edm::Run const &, const edm::EventSetup &) const final
Definition: ConditionDumperInEdm.cc:39
dttmaxenums::R
Definition: DTTMax.h:29
edm::InputTag
Definition: InputTag.h:15