TimTrigs.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 
00014   synch.trigsPerBurst = 10;
00015 
00016   synch.configure(9, 0, 128, 1);
00017 
00018   synch.trigSequence.singleL1A();
00019 
00020   synch.print();
00021 
00022   synch.distSlave = 0;
00023   synch.tim = 1;
00024 
00025   // Start TApi
00026   TApi tapi;
00027 
00028   tapi.initialiseAll(0);
00029 
00030   tapi.setDebugOption("save_histogram");
00031 
00032   tapi.sendABCDModules(0);
00033 
00034   tapi.probe(0);
00035 
00036   tapi.modifyABCDVar(11, 1.0);
00037   tapi.modifyABCDVar(13, 0.0);
00038   tapi.modifyABCDVar(14, 1.0);     // Send mask bit
00039   tapi.doScan(synch);
00040 
00041   tapi.awaitScan();
00042 
00043   std::cout << "TIM trigs: Scan complete\n";
00044 }

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