response.cxx

00001 {
00002 TScanDef thresh;
00003 
00004 thresh.trigsPerBurst = 1000;
00005 
00006 thresh.loopCalLine = 1;
00007 thresh.trigSequence.calL1A(0x82);
00008 
00009 thresh.distSlave = 1;
00010 
00011 tapi.modifyABCDVar(11, 1.0);
00012 tapi.modifyABCDVar(13, 0.0);
00013 tapi.modifyABCDVar(14, 0.0);    // Send mask off
00014 
00015 Float_t charges[10] = {0.5, 0.75, 1.0, 1.25, 1.5,
00016                        2.0, 3.0, 4, 6, 8};
00017 
00018 for(int i=0; i<10; i++) {
00019   Float_t lo = 30.0 * (charges[i] - 1);
00020   Float_t hi = 200.0 + 70.0 * (charges[i] - 1);
00021 
00022   if(lo < 0.0) lo = 0.0;
00023 
00024   if(hi>640.0) hi = 640.0;
00025 
00026   thresh.configure(1, lo, hi, 5);
00027 
00028   tapi.modifyABCDVar(42, charges[i]);
00029   tapi.doScan(thresh);
00030   if(i!=9) tapi.awaitScan();
00031 }
00032 }

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