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 
22 // system include files
23 #include <memory>
24 
25 // user include files
28 
33 
35 
38 
40 
43 
44 //
45 // class declaration
46 //
47 
48 class ConditionDumperInEdm : public edm::one::EDProducer<edm::RunCache<edm::ConditionsInRunBlock>,
49  edm::LuminosityBlockCache<edm::ConditionsInLumiBlock>,
50  edm::EndRunProducer,
51  edm::EndLuminosityBlockProducer> {
52  public:
53  explicit ConditionDumperInEdm(const edm::ParameterSet&);
54  ~ConditionDumperInEdm() override;
55 
56  private:
57  std::shared_ptr<edm::ConditionsInLumiBlock>
61  std::shared_ptr<edm::ConditionsInRunBlock> globalBeginRun(edm::Run const& , const edm::EventSetup&) const final;
62  void globalEndRun(edm::Run const& , const edm::EventSetup&) final {}
63  void endRunProduce(edm::Run& , const edm::EventSetup&) final;
64  void produce(edm::Event&, const edm::EventSetup&) final;
65 
66  template <typename R, typename T>
67  const T * get(const edm::EventSetup & setup) {
69  setup.get<R>().get(handle);
70  return handle.product();
71  }
72 
73  // ----------member data ---------------------------
74 
76 
78 
83 };
84 
85 #endif
const edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord > gtEvmDigisLabelToken_
const edm::InputTag gtEvmDigisLabel_
std::shared_ptr< edm::ConditionsInRunBlock > globalBeginRun(edm::Run const &, const edm::EventSetup &) const final
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
const edm::EDPutTokenT< edm::ConditionsInEventBlock > eventToken_
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) final
void endRunProduce(edm::Run &, const edm::EventSetup &) final
const edm::EDPutTokenT< edm::ConditionsInLumiBlock > lumiToken_
std::shared_ptr< edm::ConditionsInLumiBlock > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const final
ConditionDumperInEdm(const edm::ParameterSet &)
void globalEndRun(edm::Run const &, const edm::EventSetup &) final
edm::ConditionsInEventBlock eventBlock_
void produce(edm::Event &, const edm::EventSetup &) final
void endLuminosityBlockProduce(edm::LuminosityBlock &, edm::EventSetup const &) final
long double T
T const * product() const
Definition: ESHandle.h:86
const edm::EDPutTokenT< edm::ConditionsInRunBlock > runToken_
Definition: Run.h:45