00001 { 00002 TScanDef noise; 00003 00004 int nth = 15; 00005 00006 noise.trigsPerBurst = 1000 * nth; 00007 00008 noise.configure(41, 1.3, 1., -0.1); 00009 noise.trigSequence.singleL1A(); 00010 noise.trigSequence.source = 2; 00011 noise.trigSequence.frequency = 20.; 00012 noise.trigSequence.random = 2; 00013 00014 // synch.full = 0; 00015 noise.bits32 = 1; 00016 // synch.loopCalLine = 0; 00017 noise.distSlave = 0; 00018 // synch.debug = 0; 00019 noise.tim = 1; 00020 noise.nth = nth; 00021 noise.ope = 1; 00022 00023 tapi.modifyABCDVar(11, 1.0); 00024 tapi.modifyABCDVar(13, 0.0); 00025 tapi.modifyABCDVar(14, 0.0); 00026 00027 //tapi.modifyABCDVar(41, 1.1); // QTHR Set to 1fC 00028 tapi.modifyABCDVar(42, 0.0); // 0 fC injection 00029 00030 // Disable veto: 00031 //tapi.timRegLoad(0x9c, 0x100); 00032 00033 tapi.doScan(noise); 00034 00035 tapi.awaitScan(); 00036 }