CMS 3D CMS Logo

Public Member Functions

DTUserKeyedConfigPopConAnalyzer Class Reference

Inheritance diagram for DTUserKeyedConfigPopConAnalyzer:
popcon::PopConAnalyzer< DTUserKeyedConfigHandler > edm::EDAnalyzer

List of all members.

Public Member Functions

virtual void analyze (const edm::Event &e, const edm::EventSetup &s)
 DTUserKeyedConfigPopConAnalyzer (const edm::ParameterSet &pset)
virtual ~DTUserKeyedConfigPopConAnalyzer ()

Detailed Description

Definition at line 11 of file DTUserKeyedConfigPopConAnalyzer.cc.


Constructor & Destructor Documentation

DTUserKeyedConfigPopConAnalyzer::DTUserKeyedConfigPopConAnalyzer ( const edm::ParameterSet pset) [inline]
virtual DTUserKeyedConfigPopConAnalyzer::~DTUserKeyedConfigPopConAnalyzer ( ) [inline, virtual]

Definition at line 15 of file DTUserKeyedConfigPopConAnalyzer.cc.

{}

Member Function Documentation

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 );

  }