CMS 3D CMS Logo

DumpPSetRegistry.cc

Go to the documentation of this file.
00001 #include <memory>
00002 #include <string>
00003 #include <iostream>
00004 #include <fstream>
00005 #include <sstream>
00006 #include <iomanip>
00007 #include <algorithm>
00008 
00009 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00010 #include "FWCore/Framework/interface/Event.h"
00011 #include "FWCore/Framework/interface/EDAnalyzer.h"
00012 #include "FWCore/Framework/interface/EventSetup.h"
00013 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00014 #include "FWCore/ParameterSet/interface/Registry.h"
00015 #include "FWCore/ServiceRegistry/interface/Service.h"
00016 
00017 class DumpPSetRegistry : public edm::EDAnalyzer {
00018 public:
00019   explicit DumpPSetRegistry(const edm::ParameterSet& config);
00020   virtual ~DumpPSetRegistry();
00021     
00022   virtual void beginJob(const edm::EventSetup & setup);
00023   virtual void analyze(const edm::Event & event, const edm::EventSetup & setup);
00024   virtual void endJob();
00025 };
00026 
00027 DumpPSetRegistry::DumpPSetRegistry(const edm::ParameterSet & config) 
00028 {
00029 }
00030 
00031 DumpPSetRegistry::~DumpPSetRegistry() 
00032 {
00033 }
00034 
00035 void DumpPSetRegistry::beginJob(const edm::EventSetup & setup) 
00036 {
00037   const edm::pset::Registry * registry = edm::pset::Registry::instance();
00038   for (edm::pset::Registry::const_iterator i = registry->begin(); i != registry->end(); ++i)
00039     std::cout << i->second << std::endl;
00040 }
00041 
00042 void DumpPSetRegistry::analyze(const edm::Event & event, const edm::EventSetup & setup)
00043 {
00044 }
00045 
00046 void DumpPSetRegistry::endJob()
00047 {
00048 }
00049 
00050 #include "FWCore/Framework/interface/MakerMacros.h"
00051 DEFINE_FWK_MODULE(DumpPSetRegistry);

Generated on Tue Jun 9 17:38:01 2009 for CMSSW by  doxygen 1.5.4