SLAC PEP-II
BABAR
SLAC<->RAL
Babar logo
HEPIC E,S & H Databases PDG HEP preprints
Organization Detector Computing Physics Documentation
Personnel Glossary Sitemap Search Hypernews
Workbook Home Introduction Account Setup QuickTour Packages Modules Unwrap page!
Event Information Tcl Commands Editing Compile and Link Run the Job Debugging
Check this page with the
W3C Validator
(More checks...)
Parameters Tcl Files Find Data Batch Analysis ROOT Tutorial
Module skeleton                                                                Go to Step 1

Skeleton header file: MyModule.hh



#ifndef MYMODULE_HH
#define MYMODULE_HH

#include "Framework/AppModule.hh"
#include "AbsEvent/AbsEvent.hh"

class MyModule : public AppModule {

public:

  // Constructors
  MyModule( const char* const theName, const char* const theDescription );
  // Destructor
  virtual ~MyModule( );

  // Operations

  virtual AppResult  beginJob( AbsEvent* anEvent );
  virtual AppResult  event( AbsEvent* anEvent );
  virtual AppResult  endJob  ( AbsEvent* anEvent );

protected:

private:

};

#endif

Skeleton implementation file: MyModule.cc



#include "BaBar/BaBar.hh"
#include "MyPackage/MyModule.hh"

// Constructors

MyModule::MyModule( const char* const theName,
                  const char* const theDescription )
  : AppModule( theName, theDescription )
{
}

// Destructor
MyModule::~MyModule( )
{
}

// Operations

AppResult MyModule::beginJob( AbsEvent* anEvent )
{
  return AppResult::OK;
}

AppResult MyModule::endJob( AbsEvent* anEvent )
{
  return AppResult::OK;
}

AppResult MyModule::event( AbsEvent* anEvent )
{
  return AppResult::OK;
}

                                                                                          Go to Step 1