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 
7 
8 class DetId;
9 
10 namespace ecaldqm {
11  class StatusManager;
12 
13  class DQWorkerClient : public DQWorker {
14  public:
16 
18  ~DQWorkerClient() override {}
19 
21 
22  void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
23  void resetPerLumi();
24 
25  void bookMEs(DQMStore::IBooker&) override;
26  void releaseMEs() override;
27 
28  void releaseSource();
30 
31  bool runsOn(ProcessType _type) const { return _type == kJob || hasLumiPlots_; }
32  virtual void resetMEs();
33  virtual void producePlots(ProcessType) = 0;
34 
35  void setStatusManager(StatusManager const& _manager) { statusManager_ = &_manager; }
36 
37  enum Quality { kBad = 0, kGood = 1, kUnknown = 2, kMBad = 3, kMGood = 4, kMUnknown = 5 };
38 
39  protected:
40  void setME(edm::ParameterSet const& _ps) final;
41  void setSource(edm::ParameterSet const&) override;
42 
43  bool using_(std::string const& _name, ProcessType _type = kJob) const {
45  if (itr == sources_.end())
46  return false;
47  if (_type == kJob)
48  return true;
49  else
50  return itr->second->getLumiFlag();
51  }
52 
53  void towerAverage_(MESet&, MESet const&, float);
54 
56  std::set<std::string> qualitySummaries_;
57 
59 
61  };
62 } // namespace ecaldqm
63 #endif
ecaldqm::DQWorkerClient::Quality
Quality
Definition: DQWorkerClient.h:37
ecaldqm::DQWorkerClient::using_
bool using_(std::string const &_name, ProcessType _type=kJob) const
Definition: DQWorkerClient.h:43
ecaldqm::DQWorkerClient::setSource
void setSource(edm::ParameterSet const &) override
Definition: DQWorkerClient.cc:47
ecaldqm::DQWorkerClient::setME
void setME(edm::ParameterSet const &_ps) final
Definition: DQWorkerClient.cc:33
ecaldqm::DQWorkerClient::retrieveSource
bool retrieveSource(DQMStore::IGetter &, ProcessType)
Definition: DQWorkerClient.cc:96
ecaldqm
Definition: DQWorker.h:24
ecaldqm::DQWorkerClient::fillDescriptions
static void fillDescriptions(edm::ParameterSetDescription &)
Definition: DQWorkerClient.cc:21
ecaldqm::MESetCollection::const_iterator
MESetColletionType::const_iterator const_iterator
Definition: MESet.h:348
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
ecaldqm::MESetCollection::find
const_iterator find(const std::string &key) const
Definition: MESet.h:358
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
ecaldqm::DQWorkerClient::statusManager_
StatusManager const * statusManager_
Definition: DQWorkerClient.h:60
ecaldqm::DQWorkerClient::producePlots
virtual void producePlots(ProcessType)=0
ecaldqm::DQWorkerClient::endLuminosityBlock
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: DQWorkerClient.cc:70
ecaldqm::DQWorkerClient::bookMEs
void bookMEs(DQMStore::IBooker &) override
Definition: DQWorkerClient.cc:81
ecaldqm::DQWorkerClient::hasLumiPlots_
bool hasLumiPlots_
Definition: DQWorkerClient.h:58
ecaldqm::DQWorkerClient::~DQWorkerClient
~DQWorkerClient() override
Definition: DQWorkerClient.h:18
ecaldqm::DQWorkerClient::setStatusManager
void setStatusManager(StatusManager const &_manager)
Definition: DQWorkerClient.h:35
ecaldqm::DQWorker
Definition: DQWorker.h:28
DetId
Definition: DetId.h:17
ecaldqm::MESetCollection::end
auto end() const
Definition: MESet.h:356
ecaldqm::DQWorkerClient::qualitySummaries_
std::set< std::string > qualitySummaries_
Definition: DQWorkerClient.h:56
ecaldqm::DQWorkerClient::kJob
Definition: DQWorkerClient.h:15
ecaldqm::DQWorkerClient::ProcessType
ProcessType
Definition: DQWorkerClient.h:15
ecaldqm::DQWorkerClient::kLumi
Definition: DQWorkerClient.h:15
ecaldqm::DQWorkerClient::resetMEs
virtual void resetMEs()
Definition: DQWorkerClient.cc:113
ecaldqm::DQWorkerClient::kMBad
Definition: DQWorkerClient.h:37
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ecaldqm::DQWorkerClient::kUnknown
Definition: DQWorkerClient.h:37
ecaldqm::DQWorkerClient::kBad
Definition: DQWorkerClient.h:37
ecaldqm::DQWorkerClient::sources_
MESetCollection sources_
Definition: DQWorkerClient.h:55
ecaldqm::DQWorkerClient::kMGood
Definition: DQWorkerClient.h:37
edm::ParameterSet
Definition: ParameterSet.h:47
ecaldqm::MESetCollection
Definition: MESet.h:343
ecaldqm::DQWorkerClient::runsOn
bool runsOn(ProcessType _type) const
Definition: DQWorkerClient.h:31
ecaldqm::DQWorkerClient::nProcessType
Definition: DQWorkerClient.h:15
ecaldqm::DQWorkerClient::kMUnknown
Definition: DQWorkerClient.h:37
DQWorker.h
ecaldqm::DQWorkerClient::DQWorkerClient
DQWorkerClient()
Definition: DQWorkerClient.cc:17
edm::EventSetup
Definition: EventSetup.h:57
ecaldqm::DQWorkerClient
Definition: DQWorkerClient.h:13
itr
std::vector< std::pair< float, float > >::iterator itr
Definition: HGCDigitizer.cc:29
ecaldqm::StatusManager
Definition: StatusManager.h:14
dqm::implementation::IGetter
Definition: DQMStore.h:484
ecaldqm::DQWorkerClient::towerAverage_
void towerAverage_(MESet &, MESet const &, float)
Definition: DQWorkerClient.cc:159
ecaldqm::DQWorkerClient::kGood
Definition: DQWorkerClient.h:37
ecaldqm::DQWorkerClient::releaseMEs
void releaseMEs() override
Definition: DQWorkerClient.cc:86
dqm::implementation::IBooker
Definition: DQMStore.h:43
ecaldqm::DQWorkerClient::resetPerLumi
void resetPerLumi()
Definition: DQWorkerClient.cc:145
ecaldqm::DQWorkerClient::releaseSource
void releaseSource()
Definition: DQWorkerClient.cc:91
ecaldqm::MESet
Definition: MESet.h:27