// Author: David Lawrence August 28, 2006 // // // bcal_root.cc // #include #ifdef STATIC #include "DEventSourceET/DEventSourceETGenerator.h" #include "DEventSourceET/DEventSourceETFactoryGenerator.h" #include "BCAL/DBCALFactoryGenerator.h" #include "TAGGER/DTAGGERFactoryGenerator.h" #include "TRIGGER/DTRIGGERFactoryGenerator.h" #endif #include "MyProcessor.h" //----------- // main //----------- int main(int narg, char *argv[]) { // Instantiate an event loop object JApplication app(narg, argv); #ifdef STATIC // Add in factory generators app.AddEventSourceGenerator(new DEventSourceETGenerator()); app.AddFactoryGenerator(new DEventSourceETFactoryGenerator()); app.AddFactoryGenerator(new DBCALFactoryGenerator()); app.AddFactoryGenerator(new DTAGGERFactoryGenerator()); app.AddFactoryGenerator(new DTRIGGERFactoryGenerator()); #endif // Run though all events, calling our event processor's methods app.monitor_heartbeat = false; app.Run(new MyProcessor(), 1); return 0; }