// hadaq::TdcProcessor::SetToTRange(30, 50, 80);
// [min..max] range for TDC ids
- hadaq::TrbProcessor::SetTDCRange(0x1100, 0x11FF);
+ hadaq::TrbProcessor::SetTDCRange(0x1000, 0x1FFF);
// [min..max] range for HUB ids
- hadaq::TrbProcessor::SetHUBRange(0x8800, 0x88FF);
+ hadaq::TrbProcessor::SetHUBRange(0x0840, 0x0840);
// Histogramming for ToT: first: nr. of bins, 2nd: TOT range
hadaq::TdcProcessor::SetDefaults(600, 1000);
//tdc->SetStoreEnabled();
for (unsigned nch=1; nch<tdc->NumChannels(); nch++) {
//if(nch!=48) {
- tdc->SetRefChannel(nch, nch-1, 0xffff, 18000, -5., 5.);
+ tdc->SetRefChannel(nch, nch-1, 0xffff, 100000, -50., 50.);
//}
}
# pulser to 100kHz and 50kHz
#trbcmd w 0xc840 0xa156 0x0000270f #10khz pulser 0
-trbcmd w 0xc001 0xa158 0x0000270f #10khz pulser 0
-
-
#trbcmd w 0xc840 0xa150 0x000003e7 #100khz
#trbcmd w 0xc840 0xa150 0x0001869f #1khz
echo "pulser"
# pulser #0 to 10 kHz
-trbcmd w 0xc001 0xa158 0x0000070f
+trbcmd w 0xc001 0xa158 0x000007cf # set pulser frequency to 50kHz
#trbcmd w 0xc001 0xa150 0x0022270f
echo "trigger type"
#trbcmd w 0xc001 0xa155 0x3e7 # Pulser 2: 100kHz
-./tdcv4_caltrg_init_new.sh 0xfe53
-#./tdcv4_caltrg_init.sh 0xfe55
+# only for tdcv4
+
+# ./tdcv4_caltrg_init_new.sh 0xfe53
+# #./tdcv4_caltrg_init.sh 0xfe55
+
+# trbcmd setbit 0xfe53 0xcd00 0x08000000 # enable TDL of RefChan
+# trbcmd setbit 0xfe55 0xcd00 0x08000000 # enable TDL of RefChan
+# #trbcmd w 0xfe53 0xcd12 0x2801 # enable channels
+# #trbcmd w 0xfe53 0xcd22 0x8002 # enable channels
+# trbcmd clearbit 0xfe53 0xcd00 0x1
+# trbcmd clearbit 0xfe55 0xcd00 0x1
-trbcmd setbit 0xfe53 0xcd00 0x08000000 # enable TDL of RefChan
-trbcmd setbit 0xfe55 0xcd00 0x08000000 # enable TDL of RefChan
-#trbcmd w 0xfe53 0xcd12 0x2801 # enable channels
-#trbcmd w 0xfe53 0xcd22 0x8002 # enable channels
-trbcmd clearbit 0xfe53 0xcd00 0x1
-trbcmd clearbit 0xfe55 0xcd00 0x1
+# # set Oscillator frequency
+# trbcmd loadbit 0xfe53 0xcd24 0xff000000 0x60000000 # 8 LSBs of oscillator frequency in units of 10kHz
+# trbcmd loadbit 0xfe53 0xcd25 0xff000000 0x6d000000 # 8 MSBs of oscillator frequency in units of 10kHz
-# set Oscillator frequency
-trbcmd loadbit 0xfe53 0xcd24 0xff000000 0x60000000 # 8 LSBs of oscillator frequency in units of 10kHz
-trbcmd loadbit 0xfe53 0xcd25 0xff000000 0x6d000000 # 8 MSBs of oscillator frequency in units of 10kHz
+# trbcmd loadbit 0xfe55 0xcd24 0xff000000 0x60000000 # 8 LSBs of oscillator frequency in units of 10kHz
+# trbcmd loadbit 0xfe55 0xcd25 0xff000000 0x6d000000 # 8 MSBs of oscillator frequency in units of 10kHz
-trbcmd loadbit 0xfe55 0xcd24 0xff000000 0x60000000 # 8 LSBs of oscillator frequency in units of 10kHz
-trbcmd loadbit 0xfe55 0xcd25 0xff000000 0x6d000000 # 8 MSBs of oscillator frequency in units of 10kHz
+# #enable Hitcounters TDCv4
+# trbcmd setbit 0xfe53 0xcd00 0x200
+# trbcmd clearbit 0xfe53 0xcd00 0x100
-#enable Hitcounters TDCv4
-trbcmd setbit 0xfe53 0xcd00 0x200
-trbcmd clearbit 0xfe53 0xcd00 0x100
+# trbcmd setbit 0xfe55 0xcd00 0x200
+# trbcmd clearbit 0xfe55 0xcd00 0x100
-trbcmd setbit 0xfe55 0xcd00 0x200
-trbcmd clearbit 0xfe55 0xcd00 0x100
-# Stretcher
-trbcmd loadbit 0xfe53 0xcd17 0xffff 0xffff # enable Stretcher for Channels 15..0
-trbcmd loadbit 0xfe53 0xcd27 0xffff 0xffff # enable Stretcher for Channels 31..16
-trbcmd setbit 0xfe53 0xcd00 0x40000000 # enable Stretcher for Reference Channel
+# # Stretcher
+# trbcmd loadbit 0xfe53 0xcd17 0xffff 0xffff # enable Stretcher for Channels 15..0
+# trbcmd loadbit 0xfe53 0xcd27 0xffff 0xffff # enable Stretcher for Channels 31..16
+# trbcmd setbit 0xfe53 0xcd00 0x40000000 # enable Stretcher for Reference Channel
-trbcmd loadbit 0xfe55 0xcd17 0xffff 0xffff # enable Stretcher for Channels 15..0
-trbcmd loadbit 0xfe55 0xcd27 0xffff 0xffff # enable Stretcher for Channels 31..16
-trbcmd setbit 0xfe55 0xcd00 0x40000000 # enable Stretcher for Reference Channel
+# trbcmd loadbit 0xfe55 0xcd17 0xffff 0xffff # enable Stretcher for Channels 15..0
+# trbcmd loadbit 0xfe55 0xcd27 0xffff 0xffff # enable Stretcher for Channels 31..16
+# trbcmd setbit 0xfe55 0xcd00 0x40000000 # enable Stretcher for Reference Channel
-# Enable
-#./tdcv4_enable_channels.sh 0xfe53 0x11 0x0 #enable channel 5 and 0
-./tdcv4_enable_channels.sh 0xfe53 0xf 0xf #enable channel 5 and 0
+# # Enable
+# #./tdcv4_enable_channels.sh 0xfe53 0x11 0x0 #enable channel 5 and 0
+# ./tdcv4_enable_channels.sh 0xfe53 0xf 0xf #enable channel 5 and 0
-./tdcv4_enable_channels.sh 0xfe55 0xf 0xf #enable channel 5 and 0
+# ./tdcv4_enable_channels.sh 0xfe55 0xf 0xf #enable channel 5 and 0
+# end of tdcv4 block
echo "pulser enable"
trbcmd setbit 0xc001 0xa101 0x1