CMS 3D CMS Logo

CaloConfigWriter.cc
Go to the documentation of this file.
1 // CaloConfigWriter
2 //
6 
9 
12 
16 
19 
22 
23 #include <iostream>
24 
25 #include <iostream>
26 
27 //
28 // class declaration
29 //
30 
32 public:
33  explicit CaloConfigWriter(const edm::ParameterSet&) {}
34  ~CaloConfigWriter() override {}
35  void analyze(const edm::Event&, const edm::EventSetup&) override;
36 };
37 
39  l1t::DataWriter dataWriter;
40  std::string token = dataWriter.writePayload(evSetup, "L1TCaloConfigRcd@CaloConfig");
41  if (dataWriter.updateIOV("L1TCaloConfigRcd", token, 1, false))
42  std::cout << "IOV updated!" << std::endl;
43  std::cout << "Payload token = " << token << std::endl;
44 }
45 
CaloConfigWriter(const edm::ParameterSet &)
int iEvent
Definition: GenABIO.cc:224
std::string writePayload(const edm::EventSetup &setup, const std::string &recordType)
Definition: DataWriter.cc:15
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
~CaloConfigWriter() override
void analyze(const edm::Event &, const edm::EventSetup &) override
bool updateIOV(const std::string &esRecordName, const std::string &payloadToken, edm::RunNumber_t sinceRun, bool logTransactions=false)
Definition: DataWriter.cc:72