SynchTrigs.cxx

00001 #define USELIBRARY
00002 
00003 #include <iostream>
00004 
00005 #include "../TApi.h"
00006 
00007 int main() {
00008 
00009   std::set_terminate(__gnu_cxx::__verbose_terminate_handler);
00010 
00011 
00012   TScanDef synch;
00013   synch.distSlave=0;
00014   synch.tim=1;
00015   synch.ope=1;
00016   synch.nth=15;
00017   synch.trigSequence.singleL1A();
00018   synch.configure(41, 0.9, 1.1, 0.05);
00019   synch.trigsPerBurst = 100;
00020   synch.debug=1;
00021   synch.print();
00022 
00023   // Start TApi
00024   TApi tapi;
00025   tapi.setDebugOption("save_histogram");
00026   tapi.initialiseAll(0);
00027   tapi.setDebugOption("tim_scan_status");
00028 
00029   tapi.modifyABCDVar(11, 1.0);
00030   tapi.modifyABCDVar(13, 0.0);
00031   tapi.modifyABCDVar(14, 0.0);     // Send mask bit
00032   tapi.doScan(synch);
00033 
00034   tapi.awaitScan();
00035 
00036   std::cout << "SYNCH: Scan complete\n";
00037 }

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