Public Member Functions | |
virtual void | analyze (const edm::Event &e, const edm::EventSetup &s) |
DTUserKeyedConfigPopConAnalyzer (const edm::ParameterSet &pset) | |
virtual | ~DTUserKeyedConfigPopConAnalyzer () |
Definition at line 11 of file DTUserKeyedConfigPopConAnalyzer.cc.
DTUserKeyedConfigPopConAnalyzer::DTUserKeyedConfigPopConAnalyzer | ( | const edm::ParameterSet & | pset | ) | [inline] |
Definition at line 13 of file DTUserKeyedConfigPopConAnalyzer.cc.
: popcon::PopConAnalyzer<DTUserKeyedConfigHandler>( pset ) {}
virtual DTUserKeyedConfigPopConAnalyzer::~DTUserKeyedConfigPopConAnalyzer | ( | ) | [inline, virtual] |
Definition at line 15 of file DTUserKeyedConfigPopConAnalyzer.cc.
{}
virtual void DTUserKeyedConfigPopConAnalyzer::analyze | ( | const edm::Event & | e, |
const edm::EventSetup & | s | ||
) | [inline, virtual] |
Reimplemented from popcon::PopConAnalyzer< DTUserKeyedConfigHandler >.
Definition at line 16 of file DTUserKeyedConfigPopConAnalyzer.cc.
References gather_cfg::cout, cond::KeyList::elem(), edm::EventSetup::get(), cond::KeyList::get(), DTKeyedConfig::getId(), i, list(), edm::ESHandle< T >::product(), DTUserKeyedConfigHandler::setList(), and cond::KeyList::size().
{ edm::ESHandle<cond::KeyList> klh; std::cout<<"got eshandle"<<std::endl; s.get<DTKeyedConfigListRcd>().get(klh); std::cout<<"got context"<<std::endl; cond::KeyList const & kl= *klh.product(); cond::KeyList* list = const_cast<cond::KeyList*>( &kl ); for ( int i = 0; i < list->size(); i++ ) { if ( list->elem( i ) ) std::cout << list->get<DTKeyedConfig>( i )->getId() << std::endl; } DTUserKeyedConfigHandler::setList( list ); }