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
const edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord > gtEvmDigisLabelToken_
const edm::InputTag gtEvmDigisLabel_
std::shared_ptr< edm::ConditionsInRunBlock > globalBeginRun(edm::Run const &, const edm::EventSetup &) const final
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