CMS 3D CMS Logo

Public Member Functions

edmtest::DQMSummaryEventSetupAnalyzer Class Reference

Inheritance diagram for edmtest::DQMSummaryEventSetupAnalyzer:
edm::EDAnalyzer

List of all members.

Public Member Functions

virtual void analyze (const edm::Event &event, const edm::EventSetup &setup)
 DQMSummaryEventSetupAnalyzer (int i)
 DQMSummaryEventSetupAnalyzer (const edm::ParameterSet &pset)
virtual ~DQMSummaryEventSetupAnalyzer ()

Detailed Description

Definition at line 13 of file DQMSummaryEventSetupAnalyzer.cc.


Constructor & Destructor Documentation

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.

                                                                  {
    std::cout << "DQMSummaryEventSetupAnalyzer" << i << std::endl;
  }
edmtest::DQMSummaryEventSetupAnalyzer::~DQMSummaryEventSetupAnalyzer ( ) [virtual]

Definition at line 29 of file DQMSummaryEventSetupAnalyzer.cc.

References gather_cfg::cout.

                                                              {
    std::cout << "~DQMSummaryEventSetupAnalyzer" << std::endl;
  }

Member Function Documentation

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(), summarizeEdmComparisonLogfiles::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();
  }