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 
19 public:
21  ~EcalDQMonitorTask() override {}
22 
24 
25  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
26  void dqmBeginRun(edm::Run const&, edm::EventSetup const&) override;
27 
28 private:
29  void dqmEndRun(edm::Run const&, edm::EventSetup const&) override;
30  void dqmBeginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
31  void dqmEndLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
32  void analyze(edm::Event const&, edm::EventSetup const&) override;
33 
34  typedef void (EcalDQMonitorTask::*Processor)(edm::Event const&,
36  std::set<ecaldqm::DQWorker*> const&);
37 
38  template <typename CollectionClass>
39  void runOnCollection(edm::Event const&, ecaldqm::Collections, std::set<ecaldqm::DQWorker*> const&);
40 
41  void formSchedule(std::vector<ecaldqm::Collections> const&, edm::ParameterSet const&);
42 
43  /* DATA MEMBERS */
44 
45  edm::EDGetToken collectionTokens_[ecaldqm::nCollections]; // list of EDGetTokens
46  std::vector<std::pair<Processor, ecaldqm::Collections> > schedule_; // schedule of collections to run
47  bool allowMissingCollections_; // when true, skip missing collections silently
49 
50  /* TASK TIME PROFILING */
53 };
54 
55 #endif
~EcalDQMonitorTask() override
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< std::pair< Processor, ecaldqm::Collections > > schedule_
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
HLT enums.
Definition: Run.h:45