CMS 3D CMS Logo

DQMEDAnalyzer.cc
Go to the documentation of this file.
9 
11 
13 {
14  stream_id_ = id.value();
15 }
16 
18  edm::EventSetup const &iSetup) {
19  dqmBeginRun(iRun, iSetup);
21  store->bookTransaction([this, &iRun, &iSetup](DQMStore::IBooker &b) {
22  b.cd();
23  this->bookHistograms(b, iRun, iSetup);
24  },
25  iRun.run(),
26  streamId(),
28 }
29 
30 
31 std::shared_ptr<dqmDetails::NoCache>
33  edm::EventSetup const&,
34  RunContext const*)
35 {
36  return nullptr;
37 }
38 
40  edm::EventSetup const &iSetup,
41  dqmDetails::NoCache*) const {
43  assert(store);
44  LogDebug("DQMEDAnalyzer") << "Merging Lumi local MEs ("
45  << iLumi.run() << ", "
46  << iLumi.id().luminosityBlock() << ", "
47  << stream_id_ << ", "
49  << ") into the DQMStore@" << store << std::endl;
51  iLumi.id().luminosityBlock(),
52  stream_id_,
54 }
55 
57  edm::EventSetup const &iSetup,
58  dqmDetails::NoCache*) const {
60  assert(store);
61  LogDebug("DQMEDAnalyzer") << "Merging Run local MEs ("
62  << iRun.run() << ", "
63  << stream_id_ << ", "
65  << ") into the DQMStore@" << store << std::endl;
67  stream_id_,
69 }
70 
72  edm::EventSetup const&,
73  RunContext const*,
75 {}
76 
77 std::shared_ptr<dqmDetails::NoCache>
79  edm::EventSetup const&,
81 {
82  return nullptr;
83 }
84 
86  edm::EventSetup const&,
89 {}
90 
91 
92 
93 //############################## ONLY NEEDED IN THE TRANSITION PERIOD ################################
94 //here the thread_unsafe (simplified) carbon copy of the DQMEDAnalyzer
95 
97 
99  edm::EventSetup const &iSetup) {
100  dqmBeginRun(iRun, iSetup);
101  DQMStore * store = edm::Service<DQMStore>().operator->();
102  store->bookTransaction([this, &iRun, &iSetup](DQMStore::IBooker &b) {
103  b.cd();
104  this->bookHistograms(b, iRun, iSetup);
105  },
106  iRun.run(),
107  0,
108  0);
109 }
#define LogDebug(id)
LuminosityBlockID id() const
RunNumber_t run() const
Definition: RunBase.h:40
virtual void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &)=0
void cd(void)
Definition: DQMStore.cc:269
static void globalEndLuminosityBlockSummary(edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
void beginRun(edm::Run const &, edm::EventSetup const &) final
void beginStream(edm::StreamID id) final
ModuleCallingContext const * moduleCallingContext() const
uint32_t streamId() const
Definition: DQMEDAnalyzer.h:51
uint32_t stream_id_
Definition: DQMEDAnalyzer.h:56
void endLuminosityBlockSummary(edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
void endRunSummary(edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
void beginRun(edm::Run const &, edm::EventSetup const &) final
static std::shared_ptr< dqmDetails::NoCache > globalBeginLuminosityBlockSummary(edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
ModuleDescription const * moduleDescription() const
RunNumber_t run() const
virtual void dqmBeginRun(edm::Run const &, edm::EventSetup const &)
Definition: DQMEDAnalyzer.h:52
void mergeAndResetMEsRunSummaryCache(uint32_t run, uint32_t streamId, uint32_t moduleId)
Definition: DQMStore.cc:360
static std::shared_ptr< dqmDetails::NoCache > globalBeginRunSummary(edm::Run const &, edm::EventSetup const &, RunContext const *)
double b
Definition: hdecay.h:120
LuminosityBlockNumber_t luminosityBlock() const
void bookTransaction(iFunc f, uint32_t run, uint32_t streamId, uint32_t moduleId)
Definition: DQMStore.h:245
static void globalEndRunSummary(edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
ModuleCallingContext const * moduleCallingContext() const
Definition: Run.h:150
void mergeAndResetMEsLuminositySummaryCache(uint32_t run, uint32_t lumi, uint32_t streamId, uint32_t moduleId)
Definition: DQMStore.cc:434
Definition: Run.h:43
unsigned int id() const