CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Typedefs | Functions
PatMuonFWLiteAnalyzer.cc File Reference
#include "PhysicsTools/PatExamples/interface/PatMuonAnalyzer.h"
#include "FWCore/PythonParameterSet/interface/MakeParameterSets.h"
#include "PhysicsTools/UtilAlgos/interface/FWLiteAnalyzerWrapper.h"

Go to the source code of this file.

Typedefs

typedef
fwlite::AnalyzerWrapper
< PatMuonAnalyzer
PatMuonFWLiteAnalyzer
 

Functions

int main (int argc, char *argv[])
 

Typedef Documentation

Definition at line 5 of file PatMuonFWLiteAnalyzer.cc.

Function Documentation

int main ( int  argc,
char *  argv[] 
)

CALO JETS


PF JETS

Definition at line 7 of file PatMuonFWLiteAnalyzer.cc.

References fwlite::AnalyzerWrapper< T >::analyze(), fwlite::AnalyzerWrapper< T >::beginJob(), gather_cfg::cout, FWLiteEnabler::enable(), fwlite::AnalyzerWrapper< T >::endJob(), cmsRelvalreport::exit, edm::readPSetsFrom(), and AlCaHLTBitMon_QueryRunRegistry::string.

8 {
9  // load framework libraries
10  gSystem->Load( "libFWCoreFWLite" );
12 
13  // only allow one argument for this simple example which should be the
14  // the python cfg file
15  if ( argc < 2 ) {
16  std::cout << "Usage : " << argv[0] << " [parameters.py]" << std::endl;
17  return 0;
18  }
19  if( !edm::readPSetsFrom(argv[1])->existsAs<edm::ParameterSet>("process") ){
20  std::cout << " ERROR: ParametersSet 'plot' is missing in your configuration file" << std::endl; exit(0);
21  }
22 
23  PatMuonFWLiteAnalyzer ana(edm::readPSetsFrom(argv[1])->getParameter<edm::ParameterSet>("process"), std::string("patMuonAnalyzer"), std::string("patMuonAnalyzer"));
24  ana.beginJob();
25  ana.analyze();
26  ana.endJob();
27  return 0;
28 }
std::shared_ptr< ParameterSet > readPSetsFrom(std::string const &fileOrString)
static void enable()
enable automatic library loading
tuple argc
Definition: dir2webdir.py:38
tuple cout
Definition: gather_cfg.py:145