CMS 3D CMS Logo

Public Member Functions

edmtest::FillInfoESAnalyzer Class Reference

Inheritance diagram for edmtest::FillInfoESAnalyzer:
edm::EDAnalyzer

List of all members.

Public Member Functions

virtual void analyze (const edm::Event &e, const edm::EventSetup &c)
 FillInfoESAnalyzer (int i)
 FillInfoESAnalyzer (edm::ParameterSet const &p)
virtual ~FillInfoESAnalyzer ()

Detailed Description

Definition at line 14 of file FillInfoESAnalyzer.cc.


Constructor & Destructor Documentation

edmtest::FillInfoESAnalyzer::FillInfoESAnalyzer ( edm::ParameterSet const &  p) [inline, explicit]

Definition at line 17 of file FillInfoESAnalyzer.cc.

References gather_cfg::cout.

                                                           { 
      std::cout<<"FillInfoESAnalyzer"<<std::endl;
    }
edmtest::FillInfoESAnalyzer::FillInfoESAnalyzer ( int  i) [inline, explicit]

Definition at line 20 of file FillInfoESAnalyzer.cc.

References gather_cfg::cout.

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

Definition at line 23 of file FillInfoESAnalyzer.cc.

References gather_cfg::cout.

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

Member Function Documentation

void edmtest::FillInfoESAnalyzer::analyze ( const edm::Event e,
const edm::EventSetup c 
) [virtual]

Implements edm::EDAnalyzer.

Definition at line 30 of file FillInfoESAnalyzer.cc.

References gather_cfg::cout, edm::EventID::event(), edm::eventsetup::heterocontainer::HCTypeTag::findType(), edm::EventSetup::get(), edm::EventBase::id(), edm::ESHandle< T >::product(), edm::EventID::run(), summarizeEdmComparisonLogfiles::summary, and edm::eventsetup::EventSetupRecordKey::type().

                                                                             {
    std::cout<<"###FillInfoESAnalyzer::analyze"<<std::endl;
    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("FillInfoRcd"));
    if( recordKey.type() == edm::eventsetup::EventSetupRecordKey::TypeTag()) {
      //record not found
      std::cout <<"Record \"FillInfoRcd"<<"\" does not exist "<<std::endl;
    }
    edm::ESHandle<FillInfo> sum;
    std::cout<<"got eshandle"<<std::endl;
    context.get<FillInfoRcd>().get(sum);
    std::cout<<"got context"<<std::endl;
    const FillInfo* summary=sum.product();
    std::cout<<"got FillInfo* "<< std::endl;
    std::cout<< "print  result" << std::endl;
    std::cout << *summary;
  }