Public Member Functions | |
virtual void | analyze (const edm::Event &e, const edm::EventSetup &s) |
DTKeyedConfigPopConAnalyzer (const edm::ParameterSet &pset) | |
virtual | ~DTKeyedConfigPopConAnalyzer () |
Private Attributes | |
bool | copyData |
Definition at line 11 of file DTKeyedConfigPopConAnalyzer.cc.
DTKeyedConfigPopConAnalyzer::DTKeyedConfigPopConAnalyzer | ( | const edm::ParameterSet & | pset | ) | [inline] |
Definition at line 13 of file DTKeyedConfigPopConAnalyzer.cc.
: popcon::PopConAnalyzer<DTKeyedConfigHandler>( pset ), copyData( pset.getParameter<edm::ParameterSet>("Source"). getUntrackedParameter<bool> ( "copyData", true ) ) {}
virtual DTKeyedConfigPopConAnalyzer::~DTKeyedConfigPopConAnalyzer | ( | ) | [inline, virtual] |
Definition at line 18 of file DTKeyedConfigPopConAnalyzer.cc.
{}
virtual void DTKeyedConfigPopConAnalyzer::analyze | ( | const edm::Event & | e, |
const edm::EventSetup & | s | ||
) | [inline, virtual] |
Reimplemented from popcon::PopConAnalyzer< DTKeyedConfigHandler >.
Definition at line 19 of file DTKeyedConfigPopConAnalyzer.cc.
References copyData, gather_cfg::cout, cond::KeyList::elem(), edm::EventSetup::get(), cond::KeyList::get(), DTKeyedConfig::getId(), i, list(), edm::ESHandle< T >::product(), DTKeyedConfigHandler::setList(), and cond::KeyList::size().
{ if ( !copyData ) return; 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; } DTKeyedConfigHandler::setList( list ); }
bool DTKeyedConfigPopConAnalyzer::copyData [private] |
Definition at line 37 of file DTKeyedConfigPopConAnalyzer.cc.
Referenced by analyze().