CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DQWorkerClient.h
Go to the documentation of this file.
1 #ifndef DQWorkerClient_H
2 #define DQWorkerClient_H
3 
4 #include <utility>
5 
8 
9 class DetId;
10 namespace edm {
11  class ConsumesCollector;
12 } // namespace edm
13 
14 namespace ecaldqm {
15  class StatusManager;
16 
17  class DQWorkerClient : public DQWorker {
18  public:
20 
22  ~DQWorkerClient() override {}
23 
25 
26  void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
27  void resetPerLumi();
28 
29  void bookMEs(DQMStore::IBooker&) override;
30  void releaseMEs() override;
31 
32  void releaseSource();
34 
35  bool runsOn(ProcessType _type) const { return _type == kJob || hasLumiPlots_; }
36  virtual void resetMEs();
37  virtual void producePlots(ProcessType) = 0;
38 
39  // mechanisms to register EDGetTokens for any additional objects used internally
41 
42  void setStatusManager(StatusManager const& _manager) { statusManager_ = &_manager; }
43 
44  enum Quality { kBad = 0, kGood = 1, kUnknown = 2, kMBad = 3, kMGood = 4, kMUnknown = 5 };
45 
46  protected:
47  void setME(edm::ParameterSet const& _ps) final;
48  void setSource(edm::ParameterSet const&) override;
49 
50  bool using_(std::string const& _name, ProcessType _type = kJob) const {
52  if (itr == sources_.end())
53  return false;
54  if (_type == kJob)
55  return true;
56  else
57  return itr->second->getLumiFlag();
58  }
59 
60  void towerAverage_(MESet&, MESet const&, float);
61 
63  std::set<std::string> qualitySummaries_;
64 
66 
68  };
69 } // namespace ecaldqm
70 #endif
void towerAverage_(MESet &, MESet const &, float)
void setStatusManager(StatusManager const &_manager)
virtual void setTokens(edm::ConsumesCollector &)
bool using_(std::string const &_name, ProcessType _type=kJob) const
bool retrieveSource(DQMStore::IGetter &, ProcessType)
virtual void producePlots(ProcessType)=0
std::set< std::string > qualitySummaries_
static void fillDescriptions(edm::ParameterSetDescription &)
StatusManager const * statusManager_
MESetColletionType::const_iterator const_iterator
Definition: MESet.h:385
MESetCollection sources_
const_iterator find(const std::string &key) const
Definition: MESet.h:395
Definition: DetId.h:17
auto end() const
Definition: MESet.h:393
void releaseMEs() override
bool runsOn(ProcessType _type) const
void setSource(edm::ParameterSet const &) override
void bookMEs(DQMStore::IBooker &) override
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
void setME(edm::ParameterSet const &_ps) final