CMS 3D CMS Logo

EcalDQMonitorTask.h
Go to the documentation of this file.
1 #ifndef EcalDQMonitorTask_H
2 #define EcalDQMonitorTask_H
3 
6 
7 #include "DQWorkerTask.h"
8 #include "Collections.h"
9 
10 #include <set>
11 #include <map>
12 
13 namespace edm {
14  class InputTag;
16 } // namespace edm
17 
18 class EcalDQMonitorTask : public DQMOneEDAnalyzer<edm::LuminosityBlockCache<ecaldqm::EcalLSCache>>,
19  public ecaldqm::EcalDQMonitor {
20 public:
22  ~EcalDQMonitorTask() override {}
23 
25 
26  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
27  void dqmBeginRun(edm::Run const&, edm::EventSetup const&) override;
28 
29 private:
30  void dqmEndRun(edm::Run const&, edm::EventSetup const&) override;
31  std::shared_ptr<ecaldqm::EcalLSCache> globalBeginLuminosityBlock(edm::LuminosityBlock const&,
32  edm::EventSetup const&) const override;
34  void analyze(edm::Event const&, edm::EventSetup const&) override;
35 
38  std::set<ecaldqm::DQWorker*> const&);
39 
40  template <typename CollectionClass>
41  void runOnCollection(edm::Event const&, ecaldqm::Collections, std::set<ecaldqm::DQWorker*> const&);
42 
43  void formSchedule(std::vector<ecaldqm::Collections> const&, edm::ParameterSet const&);
44 
45  /* DATA MEMBERS */
46 
48  std::vector<std::pair<Processor, ecaldqm::Collections>> schedule_; // schedule of collections to run
49  bool allowMissingCollections_; // when true, skip missing collections silently
51 
52  /* TASK TIME PROFILING */
55 };
56 
57 #endif
EcalDQMonitorTask::globalBeginLuminosityBlock
std::shared_ptr< ecaldqm::EcalLSCache > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const override
Definition: EcalDQMonitorTask.cc:122
EcalDQMonitorTask::globalEndLuminosityBlock
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: EcalDQMonitorTask.cc:137
EcalDQMonitorTask::lastResetTime_
time_t lastResetTime_
Definition: EcalDQMonitorTask.h:53
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
EcalDQMonitorTask::collectionTokens_
edm::EDGetToken collectionTokens_[ecaldqm::nCollections]
Definition: EcalDQMonitorTask.h:47
edm
HLT enums.
Definition: AlignableModifier.h:19
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89287
EcalDQMonitorTask::~EcalDQMonitorTask
~EcalDQMonitorTask() override
Definition: EcalDQMonitorTask.h:22
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
EcalDQMonitorTask::formSchedule
void formSchedule(std::vector< ecaldqm::Collections > const &, edm::ParameterSet const &)
Definition: EcalDQMonitorTask2.cc:46
ecaldqm::EcalDQMonitor
Definition: EcalDQMonitor.h:25
DQMOneEDAnalyzer.h
EcalDQMonitorTask::processedEvents_
int processedEvents_
Definition: EcalDQMonitorTask.h:50
EcalDQMonitorTask::dqmEndRun
void dqmEndRun(edm::Run const &, edm::EventSetup const &) override
Definition: EcalDQMonitorTask.cc:116
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
ecaldqm::nCollections
Definition: Collections.h:44
edm::ParameterSet
Definition: ParameterSet.h:47
EcalDQMonitorTask::analyze
void analyze(edm::Event const &, edm::EventSetup const &) override
Definition: EcalDQMonitorTask.cc:148
EcalDQMonitorTask::runOnCollection
void runOnCollection(edm::Event const &, ecaldqm::Collections, std::set< ecaldqm::DQWorker * > const &)
Definition: EcalDQMonitorTask2.cc:20
ecaldqm::Collections
Collections
Definition: Collections.h:8
EcalDQMonitorTask::Processor
void(EcalDQMonitorTask::* Processor)(edm::Event const &, ecaldqm::Collections, std::set< ecaldqm::DQWorker * > const &)
Definition: EcalDQMonitorTask.h:36
edm::EventSetup
Definition: EventSetup.h:57
Collections.h
edm::EDGetToken
Definition: EDGetToken.h:35
EcalDQMonitor.h
EcalDQMonitorTask::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: EcalDQMonitorTask.cc:101
EcalDQMonitorTask::schedule_
std::vector< std::pair< Processor, ecaldqm::Collections > > schedule_
Definition: EcalDQMonitorTask.h:48
DQWorkerTask.h
EcalDQMonitorTask::dqmBeginRun
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
Definition: EcalDQMonitorTask.cc:107
ParameterSetDescription
dqm::implementation::IBooker
Definition: DQMStore.h:43
funct::void
TEMPL(T2) struct Divides void
Definition: Factorize.h:24
EcalDQMonitorTask::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &)
Definition: EcalDQMonitorTask.cc:80
EcalDQMonitorTask::allowMissingCollections_
bool allowMissingCollections_
Definition: EcalDQMonitorTask.h:49
edm::Event
Definition: Event.h:73
EcalDQMonitorTask::EcalDQMonitorTask
EcalDQMonitorTask(edm::ParameterSet const &)
Definition: EcalDQMonitorTask.cc:27
EcalDQMonitorTask::resetInterval_
float resetInterval_
Definition: EcalDQMonitorTask.h:54
EcalDQMonitorTask
Definition: EcalDQMonitorTask.h:18