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 
19 public:
20  void analyze(const edm::Event&, const edm::EventSetup&) override;
21 
23 
24 private:
26 };
27 
28 void L1KeyWriter::analyze(const edm::Event& iEvent, const edm::EventSetup& evSetup) {
29  L1TriggerKeyExt const& ptr1 = evSetup.getData(token_);
30 
32  if (poolDb.isAvailable()) {
33  cond::Time_t firstSinceTime = poolDb->beginOfTime();
34  poolDb->writeOneIOV(ptr1, firstSinceTime, "L1TriggerKeyExtRcd");
35  }
36 }
37 
41 
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: L1KeyWriter.cc:28
int iEvent
Definition: GenABIO.cc:224
unsigned long long Time_t
Definition: Time.h:14
edm::ESGetToken< L1TriggerKeyExt, L1TriggerKeyExtRcd > token_
Definition: L1KeyWriter.cc:25
Hash writeOneIOV(const T &payload, Time_t time, const std::string &recordName)
L1KeyWriter(const edm::ParameterSet &)
Definition: L1KeyWriter.cc:22
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
bool isAvailable() const
Definition: Service.h:40