00001 #include "PhysicsTools/UtilAlgos/interface/BasicMuonAnalyzer.h" 00002 #include "PhysicsTools/UtilAlgos/interface/FWLiteAnalyzerWrapper.h" 00003 00004 typedef fwlite::AnalyzerWrapper<BasicMuonAnalyzer> WrappedFWLiteMuonAnalyzer; 00005 00006 int main(int argc, char* argv[]) 00007 { 00008 // load framework libraries 00009 gSystem->Load( "libFWCoreFWLite" ); 00010 AutoLibraryLoader::enable(); 00011 00012 // only allow one argument for this simple example which should be the 00013 // the python cfg file 00014 if ( argc < 2 ) { 00015 std::cout << "Usage : " << argv[0] << " [parameters.py]" << std::endl; 00016 return 0; 00017 } 00018 00019 // get the python configuration 00020 PythonProcessDesc builder(argv[1]); 00021 WrappedFWLiteMuonAnalyzer ana(*(builder.processDesc()->getProcessPSet()), std::string("muonAnalyzer"), std::string("analyzeBasicPat")); 00022 ana.beginJob(); 00023 ana.analyze(); 00024 ana.endJob(); 00025 return 0; 00026 }