CMS 3D CMS Logo

L1KeyWriter.cc
Go to the documentation of this file.
1 #include <iomanip>
2 #include <iostream>
3 
5 
8 
11 
14 
17 
18 class L1KeyWriter : public edm::EDAnalyzer {
19 public:
20  void analyze(const edm::Event&, const edm::EventSetup&) override;
21 
22  explicit L1KeyWriter(const edm::ParameterSet&) : edm::EDAnalyzer() {}
23  ~L1KeyWriter(void) override {}
24 };
25 
26 void L1KeyWriter::analyze(const edm::Event& iEvent, const edm::EventSetup& evSetup) {
28  evSetup.get<L1TriggerKeyExtRcd>().get(handle1);
29  std::shared_ptr<L1TriggerKeyExt> ptr1(new L1TriggerKeyExt(*(handle1.product())));
30 
32  if (poolDb.isAvailable()) {
33  cond::Time_t firstSinceTime = poolDb->beginOfTime();
34  poolDb->writeOneIOV(*ptr1, firstSinceTime, "L1TriggerKeyExtRcd");
35  }
36 }
37 
41 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: L1KeyWriter.cc:26
int iEvent
Definition: GenABIO.cc:224
T const * product() const
Definition: ESHandle.h:86
unsigned long long Time_t
Definition: Time.h:14
T get() const
Definition: EventSetup.h:82
L1KeyWriter(const edm::ParameterSet &)
Definition: L1KeyWriter.cc:22
~L1KeyWriter(void) override
Definition: L1KeyWriter.cc:23
HLT enums.