CMS 3D CMS Logo

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  static constexpr int 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
auto end() const
Definition: MESet.h:395
void towerAverage_(MESet &, MESet const &, float)
static constexpr int kGood
void setStatusManager(StatusManager const &_manager)
virtual void setTokens(edm::ConsumesCollector &)
static constexpr int kMUnknown
bool retrieveSource(DQMStore::IGetter &, ProcessType)
static constexpr int kUnknown
static constexpr int kMBad
bool runsOn(ProcessType _type) const
virtual void producePlots(ProcessType)=0
std::set< std::string > qualitySummaries_
bool using_(std::string const &_name, ProcessType _type=kJob) const
static void fillDescriptions(edm::ParameterSetDescription &)
StatusManager const * statusManager_
MESetColletionType::const_iterator const_iterator
Definition: MESet.h:387
const_iterator find(const std::string &key) const
Definition: MESet.h:397
static constexpr int kBad
MESetCollection sources_
Definition: DetId.h:17
void releaseMEs() override
void setSource(edm::ParameterSet const &) override
HLT enums.
void bookMEs(DQMStore::IBooker &) override
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
static constexpr int kMGood
void setME(edm::ParameterSet const &_ps) final