CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  this->bookHistograms(b, iRun, iSetup);
23  },
24  iRun.run(),
25  streamId(),
27 }
28 
29 
30 std::shared_ptr<dqmDetails::NoCache>
32  edm::EventSetup const&,
33  RunContext const*)
34 {
35  return nullptr;
36 }
37 
39  edm::EventSetup const &iSetup,
40  dqmDetails::NoCache*) const {
42  assert(store);
43  LogDebug("DQMEDAnalyzer") << "Merging Lumi local MEs ("
44  << iLumi.run() << ", "
45  << iLumi.id().luminosityBlock() << ", "
46  << stream_id_ << ", "
48  << ") into the DQMStore@" << store << std::endl;
50  iLumi.id().luminosityBlock(),
51  stream_id_,
53 }
54 
56  edm::EventSetup const &iSetup,
57  dqmDetails::NoCache*) const {
59  assert(store);
60  LogDebug("DQMEDAnalyzer") << "Merging Run local MEs ("
61  << iRun.run() << ", "
62  << stream_id_ << ", "
64  << ") into the DQMStore@" << store << std::endl;
66  stream_id_,
68 }
69 
71  edm::EventSetup const&,
72  RunContext const*,
74 {}
75 
76 std::shared_ptr<dqmDetails::NoCache>
78  edm::EventSetup const&,
80 {
81  return nullptr;
82 }
83 
85  edm::EventSetup const&,
88 {}
89 
90 
91 
92 //############################## ONLY NEEDED IN THE TRANSITION PERIOD ################################
93 //here the thread_unsafe (simplified) carbon copy of the DQMEDAnalyzer
94 
96 
98  edm::EventSetup const &iSetup) {
99  dqmBeginRun(iRun, iSetup);
100  DQMStore * store = edm::Service<DQMStore>().operator->();
101  store->bookTransaction([this, &iRun, &iSetup](DQMStore::IBooker &b) {
102  this->bookHistograms(b, iRun, iSetup);
103  },
104  iRun.run(),
105  0,
106  0);
107 }
#define LogDebug(id)
LuminosityBlockID id() const
RunNumber_t run() const
Definition: RunBase.h:42
virtual void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &)=0
virtual void endRunSummary(edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
static void globalEndLuminosityBlockSummary(edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
assert(m_qm.get())
virtual void beginRun(edm::Run const &, edm::EventSetup const &) final
virtual 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 bookHistograms(fwlite::EventContainer &eventCont)
virtual 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:343
virtual void endLuminosityBlockSummary(edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
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:241
static void globalEndRunSummary(edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
ModuleCallingContext const * moduleCallingContext() const
Definition: Run.h:148
void mergeAndResetMEsLuminositySummaryCache(uint32_t run, uint32_t lumi, uint32_t streamId, uint32_t moduleId)
Definition: DQMStore.cc:414
Definition: Run.h:43
unsigned int id() const