CMS 3D CMS Logo

DQMSummaryEventSetupAnalyzer.cc
Go to the documentation of this file.
10 #include <iostream>
11 
12 namespace edmtest {
14  public:
16  explicit DQMSummaryEventSetupAnalyzer(int i);
18  void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
19  };
20 
22  std::cout << "DQMSummaryEventSetupAnalyzer" << std::endl;
23  }
24 
26  std::cout << "DQMSummaryEventSetupAnalyzer" << i << std::endl;
27  }
28 
30  std::cout << "~DQMSummaryEventSetupAnalyzer" << std::endl;
31  }
32 
34  std::cout << "### DQMSummaryEventSetupAnalyzer::analyze" << std::endl;
35  std::cout << "--- RUN NUMBER: " << event.id().run() << std::endl;
36  std::cout << "--- EVENT NUMBER: " << event.id().event() << std::endl;
40  throw cms::Exception("Record not found") << "Record \"DQMSummaryRcd"
41  << "\" does not exist!" << std::endl;
42  }
44  std::cout << "got EShandle" << std::endl;
45  setup.get<DQMSummaryRcd>().get(sum);
46  std::cout << "got the Event Setup" << std::endl;
47  const DQMSummary* summary = sum.product();
48  std::cout << "got DQMSummary* " << std::endl;
49  std::cout << "print result" << std::endl;
50  summary->printAllValues();
51  }
52 
54 } // namespace edmtest
DQMSummaryEventSetupAnalyzer(const edm::ParameterSet &pset)
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
void printAllValues() const
Definition: DQMSummary.h:39
heterocontainer::HCTypeTag TypeTag
T get() const
Definition: EventSetup.h:73
T const * product() const
Definition: ESHandle.h:86
Definition: event.py:1