Public Member Functions | |
virtual void | analyze (const edm::Event &e, const edm::EventSetup &c) |
RunInfoESAnalyzer (int i) | |
RunInfoESAnalyzer (edm::ParameterSet const &p) | |
virtual | ~RunInfoESAnalyzer () |
Definition at line 24 of file RunInfoESAnalyzer.cc.
edmtest::RunInfoESAnalyzer::RunInfoESAnalyzer | ( | edm::ParameterSet const & | p | ) | [inline, explicit] |
Definition at line 27 of file RunInfoESAnalyzer.cc.
References gather_cfg::cout.
{ std::cout<<"RunInfoESAnalyzer"<<std::endl; }
edmtest::RunInfoESAnalyzer::RunInfoESAnalyzer | ( | int | i | ) | [inline, explicit] |
Definition at line 31 of file RunInfoESAnalyzer.cc.
References gather_cfg::cout.
virtual edmtest::RunInfoESAnalyzer::~RunInfoESAnalyzer | ( | ) | [inline, virtual] |
Definition at line 33 of file RunInfoESAnalyzer.cc.
References gather_cfg::cout.
{ std::cout<<"~RunInfoESAnalyzer "<<std::endl; }
void edmtest::RunInfoESAnalyzer::analyze | ( | const edm::Event & | e, |
const edm::EventSetup & | c | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 60 of file RunInfoESAnalyzer.cc.
References gather_cfg::cout, edm::EventID::event(), edm::eventsetup::heterocontainer::HCTypeTag::findType(), edm::EventSetup::get(), edm::EventBase::id(), edm::EventID::run(), summarizeEdmComparisonLogfiles::summary, and edm::eventsetup::EventSetupRecordKey::type().
{ using namespace edm::eventsetup; std::cout<<"###RunInfoESAnalyzer::analyze"<<std::endl; // Context is not used. std::cout <<" I AM IN RUN NUMBER "<<e.id().run() <<std::endl; std::cout <<" ---EVENT NUMBER "<<e.id().event() <<std::endl; edm::eventsetup::EventSetupRecordKey recordKey(edm::eventsetup::EventSetupRecordKey::TypeTag::findType("RunInfoRcd")); if( recordKey.type() == edm::eventsetup::EventSetupRecordKey::TypeTag()) { //record not found std::cout <<"Record \"RunInfoRcd"<<"\" does not exist "<<std::endl; } edm::ESHandle<RunInfo> sum; std::cout<<"got eshandle"<<std::endl; context.get<RunInfoRcd>().get(sum); std::cout<<"got context"<<std::endl; const RunInfo* summary=sum.product(); std::cout<<"got RunInfo* "<< std::endl; std::cout<< "print result" << std::endl; summary->printAllValues(); /* std::vector<std::string> subdet = summary->getSubdtIn(); std::cout<<"subdetector in the run "<< std::endl; for (size_t i=0; i<subdet.size(); i++){ std::cout<<"--> " << subdet[i] << std::endl; } */ }