Public Member Functions | |
virtual void | analyze (const edm::Event &event, const edm::EventSetup &setup) |
DQMSummaryEventSetupAnalyzer (int i) | |
DQMSummaryEventSetupAnalyzer (const edm::ParameterSet &pset) | |
virtual | ~DQMSummaryEventSetupAnalyzer () |
Definition at line 13 of file DQMSummaryEventSetupAnalyzer.cc.
edmtest::DQMSummaryEventSetupAnalyzer::DQMSummaryEventSetupAnalyzer | ( | const edm::ParameterSet & | pset | ) | [explicit] |
Definition at line 21 of file DQMSummaryEventSetupAnalyzer.cc.
References gather_cfg::cout.
{ std::cout << "DQMSummaryEventSetupAnalyzer" << std::endl; }
edmtest::DQMSummaryEventSetupAnalyzer::DQMSummaryEventSetupAnalyzer | ( | int | i | ) | [explicit] |
Definition at line 25 of file DQMSummaryEventSetupAnalyzer.cc.
References gather_cfg::cout.
edmtest::DQMSummaryEventSetupAnalyzer::~DQMSummaryEventSetupAnalyzer | ( | ) | [virtual] |
Definition at line 29 of file DQMSummaryEventSetupAnalyzer.cc.
References gather_cfg::cout.
{ std::cout << "~DQMSummaryEventSetupAnalyzer" << std::endl; }
void edmtest::DQMSummaryEventSetupAnalyzer::analyze | ( | const edm::Event & | event, |
const edm::EventSetup & | setup | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 33 of file DQMSummaryEventSetupAnalyzer.cc.
References gather_cfg::cout, Exception, edm::eventsetup::heterocontainer::HCTypeTag::findType(), edm::EventSetup::get(), DQMSummary::printAllValues(), edm::ESHandle< T >::product(), edmLumisInFiles::summary, and edm::eventsetup::EventSetupRecordKey::type().
{ std::cout << "### DQMSummaryEventSetupAnalyzer::analyze" << std::endl; std::cout << "--- RUN NUMBER: " << event.id().run() << std::endl; std::cout << "--- EVENT NUMBER: " << event.id().event() << std::endl; edm::eventsetup::EventSetupRecordKey recordKey(edm::eventsetup::EventSetupRecordKey::TypeTag::findType("DQMSummaryRcd")); if(recordKey.type() == edm::eventsetup::EventSetupRecordKey::TypeTag()) { throw cms::Exception ("Record not found") << "Record \"DQMSummaryRcd" << "\" does not exist!" << std::endl; } edm::ESHandle<DQMSummary> sum; std::cout << "got EShandle" << std::endl; setup.get<DQMSummaryRcd>().get(sum); std::cout <<"got the Event Setup" << std::endl; const DQMSummary* summary = sum.product(); std::cout <<"got DQMSummary* "<< std::endl; std::cout<< "print result" << std::endl; summary->printAllValues(); }