CMS 3D CMS Logo

CaloParamsWriter.cc
Go to the documentation of this file.
1 // CaloParamsWriter
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 CaloParamsWriter(const edm::ParameterSet&) {}
34  ~CaloParamsWriter() override {}
35  void analyze(const edm::Event&, const edm::EventSetup&) override;
36 };
37 
39  l1t::DataWriter dataWriter;
40  std::string token = dataWriter.writePayload(evSetup, "L1TCaloParamsRcd@CaloParams");
41  if (dataWriter.updateIOV("L1TCaloParamsRcd", token, 1, false))
42  std::cout << "IOV updated!" << std::endl;
43  std::cout << "Payload token = " << token << std::endl;
44 }
45 
DataWriter.h
MessageLogger.h
l1t::DataWriter::updateIOV
bool updateIOV(const std::string &esRecordName, const std::string &payloadToken, edm::RunNumber_t sinceRun, bool logTransactions=false)
Definition: DataWriter.cc:72
ESHandle.h
gather_cfg.cout
cout
Definition: gather_cfg.py:144
EDAnalyzer.h
CaloParamsWriter::~CaloParamsWriter
~CaloParamsWriter() override
Definition: CaloParamsWriter.cc:34
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
MakerMacros.h
PoolDBOutputService.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
Service.h
CaloParams.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MessageDrop.h
edm::ParameterSet
Definition: ParameterSet.h:47
CaloParamsWriter::CaloParamsWriter
CaloParamsWriter(const edm::ParameterSet &)
Definition: CaloParamsWriter.cc:33
Event.h
L1TCaloParamsRcd.h
l1t::DataWriter::writePayload
std::string writePayload(const edm::EventSetup &setup, const std::string &recordType)
Definition: DataWriter.cc:15
CaloParamsWriter
Definition: CaloParamsWriter.cc:31
ModuleDef.h
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup
Definition: EventSetup.h:58
CaloParamsWriter::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: CaloParamsWriter.cc:38
EventSetup.h
l1t::DataWriter
Definition: DataWriter.h:35
ParameterSet.h
edm::Event
Definition: Event.h:73
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:316