test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TCaloParamsWriter.cc
Go to the documentation of this file.
1 // L1TCaloParamsWriter
2 //
6 
9 
12 
16 
19 
22 
23 #include <iostream>
24 
25 #include <iostream>
26 
27 //
28 // class declaration
29 //
30 
32 public:
34  virtual ~L1TCaloParamsWriter() {}
35  virtual void analyze(const edm::Event&, const edm::EventSetup&) override;
36 
37 };
38 
39 
40 
42 {
43  l1t::DataWriter dataWriter;
44  std::string token = dataWriter.writePayload(evSetup, "L1TCaloParamsRcd@CaloParams");
45  if ( dataWriter.updateIOV("L1TCaloParamsRcd", token, 1, false) ) std::cout << "IOV updated!" << std::endl;
46  std::cout << "Payload token = " << token << std::endl;
47 }
48 
50 
51 
52 
L1TCaloParamsWriter(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
int iEvent
Definition: GenABIO.cc:230
std::string writePayload(const edm::EventSetup &setup, const std::string &recordType)
Definition: DataWriter.cc:19
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
tuple cout
Definition: gather_cfg.py:145
bool updateIOV(const std::string &esRecordName, const std::string &payloadToken, edm::RunNumber_t sinceRun, bool logTransactions=false)
Definition: DataWriter.cc:93