Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:47

0001 #include "FWCore/MessageService/test/PSetTestClient_A.h"
0002 #include "FWCore/Framework/interface/MakerMacros.h"
0003 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0004 
0005 #include <iostream>
0006 #include <string>
0007 #include <sstream>
0008 
0009 namespace edmtest {
0010 
0011   PSetTestClient_A::PSetTestClient_A(edm::ParameterSet const& p) {
0012     //  std::cerr << "PSetTestClient_A ctor called\n";
0013     edm::ParameterSet emptyPSet;
0014     a = p.getUntrackedParameterSet("a", emptyPSet);
0015     b = a.getUntrackedParameterSet("b", emptyPSet);
0016     xa = a.getUntrackedParameter<int>("x", 99);
0017     xb = b.getUntrackedParameter<int>("x", 88);
0018     //  std::cerr << "...xa = " << xa << "xb = " << xb << "\n";
0019   }
0020 
0021   void PSetTestClient_A::analyze(edm::StreamID,
0022                                  edm::Event const& /*unused*/
0023                                  ,
0024                                  edm::EventSetup const& /*unused*/
0025   ) const {
0026     //  std::cerr << "PSetTestClient_A::analyze called\n";
0027     edm::LogError("x") << "xa = " << xa << " xb = " << xb;
0028   }
0029 
0030 }  // end namespace edmtest
0031 
0032 using edmtest::PSetTestClient_A;
0033 DEFINE_FWK_MODULE(PSetTestClient_A);