CMS 3D CMS Logo

L1TMuonEndCapForestWriter.cc
Go to the documentation of this file.
1 #include <iomanip>
2 #include <iostream>
3 
5 
8 
11 
12 //#include "CondFormats/DataRecord/interface/L1TMuonEndCapForestO2ORcd.h"
15 
18 
20 private:
23 
24 public:
25  void analyze(const edm::Event&, const edm::EventSetup&) override;
26 
28  isO2Opayload = pset.getUntrackedParameter<bool>("isO2Opayload", false);
29  token_ = esConsumes();
30  }
31  ~L1TMuonEndCapForestWriter(void) override {}
32 };
33 
35  L1TMuonEndCapForest const& ptr1 = evSetup.getData(token_);
36 
38  if (poolDb.isAvailable()) {
39  cond::Time_t firstSinceTime = poolDb->beginOfTime();
40  poolDb->writeOneIOV(ptr1, firstSinceTime, (isO2Opayload ? "L1TMuonEndCapForestO2ORcd" : "L1TMuonEndCapForestRcd"));
41  }
42 }
43 
47 
void analyze(const edm::Event &, const edm::EventSetup &) override
L1TMuonEndCapForestWriter(const edm::ParameterSet &pset)
edm::ESGetToken< L1TMuonEndCapForest, L1TMuonEndCapForestRcd > token_
int iEvent
Definition: GenABIO.cc:224
unsigned long long Time_t
Definition: Time.h:14
Hash writeOneIOV(const T &payload, Time_t time, const std::string &recordName)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
bool getData(T &iHolder) const
Definition: EventSetup.h:122
bool isAvailable() const
Definition: Service.h:40