// SampleModule.cc // // This is part of the principal sample of how to use the ErrorLogger // mechanism in a realistic setting. // // The sample is meant to be taken as a starting point, and modified to // meet an experiment's needs. Or it can be viewed as a fairly complete // illustration of most of the commonly used features in ErrorLogger. // // The overall structure assumed is that some programmer(s) provide a // "framework" including the main program, various setups and event-flow // controls, and so forth. Then each group of physicists provide "modules" // (or in D0 language "packages") which do steps of physics calculation -- // the framework will pass an event from package to package. // // This sample is composed of five files: // SampleFramework // SampleModule * // SampleEvent // SampleUserA // SampleUserB // // This file implements the base class of all the physics modules. // #include "SampleModule.h" #include SampleModule::SampleModule( const std::string & name ) { errlog.setModule( name ); // The experiment might have other things to put in // a module (or package) base class, but this is the only // line needed for the purpose of the ErrorLogger mechanism. } SampleModule::~SampleModule() {}