#include "PhysicsTools/UtilAlgos/interface/BasicMuonAnalyzer.h" #include "FWCore/PythonParameterSet/interface/MakeParameterSets.h" #include "PhysicsTools/UtilAlgos/interface/FWLiteAnalyzerWrapper.h" typedef fwlite::AnalyzerWrapper WrappedFWLiteMuonAnalyzer; int main(int argc, char* argv[]) { // load framework libraries gSystem->Load( "libFWCoreFWLite" ); AutoLibraryLoader::enable(); // only allow one argument for this simple example which should be the // the python cfg file if ( argc < 2 ) { std::cout << "Usage : " << argv[0] << " [parameters.py]" << std::endl; return 0; } if( !edm::readPSetsFrom(argv[1])->existsAs("process") ){ std::cout << " ERROR: ParametersSet 'plot' is missing in your configuration file" << std::endl; exit(0); } WrappedFWLiteMuonAnalyzer ana(edm::readPSetsFrom(argv[1])->getParameter("process"), std::string("muonAnalyzer"), std::string("analyzeBasicPat")); ana.beginJob(); ana.analyze(); ana.endJob(); return 0; }