CMS 3D CMS Logo

Macros | Functions
PythonModule.cc File Reference
#include "FWCore/PythonParameterSet/interface/BoostPython.h"
#include "FWCore/PythonParameterSet/interface/PythonProcessDesc.h"
#include "FWCore/PythonFramework/interface/PythonEventProcessor.h"
#include "FWCore/Utilities/interface/Exception.h"

Go to the source code of this file.

Macros

#define FWCore_PythonFramework_PythonModule_h
 

Functions

 BOOST_PYTHON_MODULE (libFWCorePythonFramework)
 

Macro Definition Documentation

#define FWCore_PythonFramework_PythonModule_h

Definition at line 2 of file PythonModule.cc.

Function Documentation

BOOST_PYTHON_MODULE ( libFWCorePythonFramework  )

Definition at line 25 of file PythonModule.cc.

References PythonEventProcessor::run(), PythonEventProcessor::totalEvents(), PythonEventProcessor::totalEventsFailed(), and PythonEventProcessor::totalEventsPassed().

26 {
27  boost::python::register_exception_translator<cms::Exception>(translator);
28 
29  boost::python::class_<PythonEventProcessor, boost::noncopyable>("PythonEventProcessor", boost::python::init<PythonProcessDesc const&>())
30  .def("run", &PythonEventProcessor::run)
31  .def("totalEvents", &PythonEventProcessor::totalEvents)
32  .def("totalEventsPassed", &PythonEventProcessor::totalEventsPassed)
33  .def("totalEventsFailed", &PythonEventProcessor::totalEventsFailed)
34  ;
35 }