MinimalGareth.cxx

00001 #define USELIBRARY
00002 
00003 #include <iostream>
00004 using namespace std;
00005 
00006 #include "../TApi.h"
00007 
00008 int main () {
00009   cout << "Create new TApi\n";
00010 
00011   TApi *tapi = new TApi();
00012 
00013   tapi->setDebugOption("save_prim");
00014 
00015   cout << "Initialise all\n";
00016   tapi->initialiseAll(0);
00017 
00018   cout << "Sending free triggers\n";
00019   tapi->freeTriggers();
00020   cout << "Started\n";
00021 
00022   sleep(1000);
00023 
00024   cout << "Stopping\n";
00025   tapi->stopTriggers();
00026   cout << "Stopped\n";
00027 
00028 
00029   cout << "Shutdown all\n";
00030   tapi->shutdownAll();
00031 
00032   cout << "Delete TApi\n";
00033   delete tapi;
00034 
00035   return 0;  
00036 }

Generated on Mon Feb 6 14:01:23 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6