CMS 3D CMS Logo

Typedefs | Functions
PatMuonFWLiteAnalyzer.cc File Reference
#include "PhysicsTools/PatExamples/interface/PatMuonAnalyzer.h"
#include "FWCore/ParameterSetReader/interface/ParameterSetReader.h"
#include "PhysicsTools/UtilAlgos/interface/FWLiteAnalyzerWrapper.h"

Go to the source code of this file.

Typedefs

typedef fwlite::AnalyzerWrapper< PatMuonAnalyzerPatMuonFWLiteAnalyzer
 

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(), beamvalidation::exit(), edm::readPSetsFrom(), and AlCaHLTBitMon_QueryRunRegistry::string.

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