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