CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DQWorkerClient.h
Go to the documentation of this file.
1 #ifndef DQWorkerClient_H
2 #define DQWorkerClient_H
3 
4 #include <utility>
5 
7 
8 class DetId;
9 
10 namespace ecaldqm
11 {
12  class StatusManager;
13 
14  class DQWorkerClient : public DQWorker {
15  public:
16  enum ProcessType {
20  };
21 
23  virtual ~DQWorkerClient() {}
24 
26 
27  void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
28 
29  void bookMEs(DQMStore&) override;
30  void releaseMEs() override;
31 
32  void releaseSource();
33  bool retrieveSource(DQMStore const&, ProcessType);
34 
35  void resetMEs();
36  virtual void producePlots(ProcessType) = 0;
37 
38  void setStatusManager(StatusManager const& _manager) { statusManager_ = &_manager; }
39 
40  enum Quality {
41  kBad = 0,
42  kGood = 1,
43  kUnknown = 2,
44  kMBad = 3,
45  kMGood = 4,
47  };
48 
49  protected:
50  void setME(edm::ParameterSet const& _ps) final { DQWorker::setME(_ps); }
51  void setSource(edm::ParameterSet const&) override;
52 
53  bool using_(std::string const& _name, ProcessType _type = kRun) const
54  {
55  MESetCollection::const_iterator itr(sources_.find(_name));
56  if(itr == sources_.end()) return false;
57  if(_type == kRun) return true;
58  else return itr->second->getLumiFlag();
59  }
60 
61  void towerAverage_(MESet&, MESet const&, float);
62 
64  std::set<std::string> qualitySummaries_;
65 
67  };
68 }
69 #endif
void towerAverage_(MESet &, MESet const &, float)
void setStatusManager(StatusManager const &_manager)
bool retrieveSource(DQMStore const &, ProcessType)
void bookMEs(DQMStore &) override
bool using_(std::string const &_name, ProcessType _type=kRun) const
virtual void producePlots(ProcessType)=0
std::set< std::string > qualitySummaries_
static void fillDescriptions(edm::ParameterSetDescription &)
StatusManager const * statusManager_
boost::ptr_map< std::string, MESet > MESetCollection
Definition: MESet.h:327
MESetCollection sources_
Definition: DetId.h:18
virtual void setME(edm::ParameterSet const &)
Definition: DQWorker.cc:55
void releaseMEs() override
void setSource(edm::ParameterSet const &) override
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
void setME(edm::ParameterSet const &_ps) final