Primarily a Mainz megatile HBU test. March 18 - March 24

Components:

slow clock synchronization to be checked. It was fixed only in the later CCC

  • finger scintillators connected to the nim logic and connected to the BIF input PX2 (input 3)
  • BIF (records on the BIF input PX2 (input 3))
  • Old TLU
  • Mimosa telescope AZALEA at TB24

General setup:

trigger setup:


Geometry:

with Telescope

Beam_2019_march

The collimator was exchanged to 5x5mm for some runs (TODO: list of runs)

with absorber (since runs 64622):

Beam_2019_march_absorber

Module mapping

until March 23 midnight:


positionmodule #LDA port#power port #ASICs
HBU5_2 (Megatile)1st4301145-148
HBU5_292nd4212129-132
HBU6_353rd4423161-164

Megatile layer moved to a 2nd position since March24 morning:


positionmodule #LDA port#power port #
HBU5_291st4212
HBU5_2 (Megatile)2nd4301
HBU6_353rd4423

Timestamp offsets


standalone offsetoffset with TLUwith TLU, new CCC firmware
LDA timestamps210021012101
BIT timestamps67351
67359
[calice@flchcallab4 Run62704]$ for i in 0 1 2 ; do ~/AHCAL-RAWutils/ahcalBifCorrelation/ahcalbifcorrelate -w ~/eudaq/data/AhcalRaw/ahcalRaw_Run062704__19p03p2019__19p13p14.raw -d -h -e $i -n 100000 -l 160 >ldaOffset_${i}.txt ; done
[calice@flchcallab4 Run62704]$ for i in 0 1 2 ; do ~/AHCAL-RAWutils/ahcalBifCorrelation/ahcalbifcorrelate -w ~/eudaq/data/AhcalRaw/ahcalRaw_Run062704__19p03p2019__19p13p14.raw -b ~/eudaq/data/BifRaw/bifraw-run062704__19p03p2019__19p13p14.raw -h -e $i -n 100000 -l 5120 -t -1 >BIFOffset_${i}.txt ; done

standalone offsets:

offset with telescope & TLU:


EUDAQ

Eudaq branch on github, which was used in this testbeam: https://github.com/jkvas/eudaq/tree/calice_ahcal_testbeam2019March

Network configuration with the telescope
EUDAQ_Config_TB201903

The eudaq was primarily running on the AHCAL EUDAQ PC and all data was stored there. The online monitor was used to check the correlation on-line. For the online checking, the EventnumberSyncDataCollector is used. To get a complete slcio files, a special datacollector needs to be used: CaliceBifStageTelDataCollector. The EUDAQ flow is shown here:

eudaq_configuration_201903

A new data collector, CaliceBifStageTelDataCollector, had to be developped, because the BIF was recording the triggers from independent beam scintillators (the ahcal cross scintillator) and has different trigger and event numbers. Since the BIF runs on AHCAL clock and samples the AHCAL fast commands, the data can be still merged. events from desy table come once every 10 s.

followin names are hardcoded: AHCAL1, desytable1, BIF1

The CaliceBifStageTelDataCollector collects data in a following steps:

  1. checks whether all producers sent at least 1 event
  2. checks whether the BIF1 event was before the AHCAL event. The comparison is done on the readout cycle and BXID values. If the event cannot be matched with AHCAL, it is thrown away.  that is the case.
  3. moves all events to a new combined event, except for the desytable data collector, which copies the event instead of moving, if the desytable has a last event in the queue.

Standalone running (without mimosa)

Starrun script on the AHCAL eudaq computer (STARTRUN_201903_table_BIF_NoTelescope.sh):STARTRUN_201903_table_BIF_noTelescope.sh

Starrun script on the AHCAL eudaq computer (STARTRUN_201903_table_BIF_NoTelescope.sh):

#!/bin/bash

if [ -f KILLRUN.local ]
then
    sh KILLRUN.local
else
    sh KILLRUN.sh
fi

export currentdate=`date +%Y%m%d`
export RCPORT=44000
export HOSTIP=192.168.1.10
#################  Run control ###################
#xterm -sb -sl 1000000 -T "Runcontrol" -e 'bin/euRun -n RunControl ; read '&
xterm -r -sb -sl 100000 -T "Runcontrol" -e 'bin/euRun -n AhcalRunControl |tee -a logs/runcontrol.log; read '&
sleep 2
#################  Log collector #################
xterm -r -sb -sl 1000 -geometry 160x30 -T "Logger" -e 'bin/euLog -r tcp://$HOSTIP:$RCPORT|tee --append data/logs/logcollector_${currentdate} ;read' &
#sleep 1
#################  Data collector #################
#known data collectors:  EventnumberSyncDataCollector, DirectSaveDataCollector, TimestampSyncDataCollector, AhcalHodoscopeDataCollector, CaliceDataCollector, CaliceTelDataCollector, CaliceTsDataCollector, CaliceAhcalBifBxidDataCollector
#EventnumberSyncDataCollector
xterm -r -sb -sl 100000 -geometry 80x4 -T "EventID Collector 1" -e "bin/euCliCollector -n DirectSaveDataCollector -t dc1 -r tcp://$HOSTIP:$RCPORT | tee -a data/logs/DataCollectorEventID_${currentdate}.log; read" &
#xterm -r -sb -sl 100000 -geometry 80x4 -T "EventID Collector 2" -e "bin/euCliCollector -n EventnumberSyncDataCollector -t dc2 -r tcp://$HOSTIP:$RCPORT | tee -a data/logs/DataCollectorEventID_${currentdate}.log; read" &
xterm -r -sb -sl 100000 -geometry 160x24 -T "BXID collector ahcalbif" -e "bin/euCliCollector -n CaliceAhcalBifBxidDataCollector -t bxidColl1 | tee -a data/logs/DataCollectorBxid_${currentdate}.log ; read" &

#xterm -r -sb -sl 100000 -T "directsave Data collector 3" -e 'bin/euCliCollector -n DirectSaveDataCollector -t dc3 ; read' &
#xterm -sb -sl 100000 -geometry 160x30 -T "Hodoscope Data collector" -e 'bin/euCliCollector -n AhcalHodoscopeDataCollector -t dc2 | tee -a logs/dc2.log; read' &
#xterm -sb -sl 100000 -geometry 160x30 -T "slcio Hodoscope Data collector" -e 'bin/euCliCollector -n AhcalHodoscopeDataCollector -t dc3 | tee -a logs/dc3.log; read' &
#xterm -sb -sl 100000  -T "Data collector2" -e 'bin/euCliCollector -n DirectSaveDataCollector -t dc2 ; read' &
#sleep 1

#################  Producer #################
#xterm -sb -sl 1000000 -geometry 160x30 -T "Hodoscope" -e 'bin/euCliProducer -n CaliceEasirocProducer -t hodoscope1 -r tcp://$HOSTIP:$RCPOR|tee -a logs/hodoscope1.log && read || read'&
#xterm -sb -sl 1000000 -geometry 160x30 -T "Hodoscope 2" -e 'bin/euCliProducer -n CaliceEasirocProducer -t hodoscope2 -r tcp://$HOSTIP:$RCPOR|tee -a logs/hodoscope2.log && read || read'&
# sleep 1
xterm -r -sb -sl 100000 -geometry 160x30 -T "AHCAL" -e 'bin/euCliProducer -n AHCALProducer -t AHCAL1 -r tcp://$HOSTIP:$RCPORT |tee -a logs/ahcal_${currentdate}.log ; read'&
xterm -r -sb -sl 10000 -geometry 160x30 -T "DESY table" -e 'bin/euCliProducer -n DesyTableProducer -t desytable1 -r tcp://$HOSTIP:$RCPORT |tee -a logs/desytable_${currentdate}.log ;read'&
xterm -r -sb -sl 100000 -geometry 160x24 -T "BIF" -e "bin/euCliProducer -n caliceahcalbifProducer -t BIF1 -r tcp://$HOSTIP:$RCPORT |tee -a data/logs/bif_${currentdate}.log ; read"&

#################  Online Monitor #################
echo "starting online monitor"
#xterm -sb -sl 100000  -T "Online monitor" -e 'bin/StdEventMonitor -c conf/onlinemonitor.conf --monitor_name StdEventMonitor --reset ; read' &
xterm -sb -sl 100000  -T "Online monitor" -e 'bin/StdEventMonitor -c conf/onlinemonitor.conf --monitor_name StdEventMonitor --reset --root -r tcp://$HOSTIP:$RCPORT ; read' &
echo "online monitor started"

Ini section

[Producer.ni_mimosa]
NiIPaddr = 192.168.24.2

[RunControl]
# The Ex0RunControl does not need any paramters.

[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
EULOG_GUI_LOG_FILE_PATTERN = data/logs/$12D.log
# the $12D will be converted a data/time string with 12 digits.

[DataCollector.dc1]
# nothing

[Producer.desytable1]
RESET_P1_TO_ACTUAL_POSITION = 1
DEBUG_VERBOSITY_LEVEL = 0
MM_TO_BINS = 10 #conversion factor from 1mm to bins. 10 by default. Do not change unless you know what you are doing!
TCP_PORT = 8000
IP_ADDRESS = 192.168.1.66
HORIZONTAL_ADDRESS = 0 #not yet im plemented
VERTICAL_ADDRESS = 1 #not yet implemented

[Producer.ni_mimosa]
NiIPaddr = 192.168.24.2


#[Monitor.my_mon]
# nothing

Conf section

[RunControl]
#STOP_RUN_AFTER_N_SECONDS = 3600: start new run after 1 hour
STOP_RUN_AFTER_N_SECONDS = 1800
#STOP_RUN_AFTER_N_SECONDS = STAGEGENERATE_SECONDS
#STOP_RUN_AFTER_N_EVENTS = STAGEGENERATE_EVENTS
#NEXT_RUN_CONF_FILE = STAGEGENERATE_FILE


[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing
 
[DataCollector.dc1]
EUDAQ_MN=StdEventMonitor
# send assambled event to the monitor with runtime name my_mon;
#PRODUCERS="Calice1"
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="data/eudaqRaw/Run$6R_$13D$X"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT=1

[DataCollector.dc2]
# send assambled event to the monitor with runtime name my_mon;
#PRODUCERS="Calice1"
EUDAQ_FW=slcio
# the format of data file
EUDAQ_FW_PATTERN="data/slcio/Run$6R_$13D$X"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT=1

[DataCollector.bxidColl1]
EUDAQ_FW=slcio
# the format of data file
EUDAQ_FW_PATTERN="data/slcio/run$6R_$12D$X"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
MandatoryBif=1
DISABLE_PRINT=0

[Producer.AHCAL1]
EUDAQ_DC="dc1,dc2,dc3,bxidColl1"
#FileLEDsettings ="F:\\LEDEUDAQ\\LED1.ini"
FileMode = 0
WaitMillisecForFile = 1000
StartWaitSeconds = 0
# Sleeping time (in seconds) after clicking stop: needed to read
# all the events stored in the Labview data queue
waitsecondsForQueuedEvents = 0
Port = 5622
IPAddress = "192.168.1.11"
Reader = "Scintillator"
WriteRawOutput = 1
#RawFileName = "../data/Run_%05d"
RawFileName = "data/AhcalRaw/ahcalRaw_Run%06d"
WriteRawFileNameTimestamp = 1
ColoredTerminalMessages = 1
#LdaTrigidOffset to compensate differences between TLU (or other trigger number source) and LDA. Eudaq Event counting starts from this number and will be always subtracted from the eudaq event triggerid.
LdaTrigidOffset = 1
#LdaTrigidStartsFrom: The first expected raw triggerID from LDA in the data stream in case it is not 0. It suppresses error warning for the first event. When set higher then the first event, triggers below the provided number are ignored!
LdaTrigidStartsFrom = 1
#GenerateTriggerIDFrom sets from which triggerID number should be data generated (and filled with dummy triggers if necessary). Only works when insert_dummy_packets is enabled and in selected event building modes 
GenerateTriggerIDFrom = 0
#InsertDummyPackets: 1=inserts dummy packets to keep correct sequence of TrigIDs or ReadOutCycles; 0=do not insert anything
InsertDummyPackets = 0
#When RedirectInputFromFile is set, an existing raw raw data file is used as a fake input from detector
#RedirectInputFromFile="/media/kvas/kvas@fzu.cz/ahcal/data_201711/ahcalRaw_00096.raw"
#EventBuildingMode selects what event building will be used and
#EventBuildingMode = "ROC"
#EventBuildingMode = "TRIGGERID"
#EventBuildingMode = "BUILD_BXID_ALL"
EventBuildingMode = "BUILD_BXID_VALIDATED"
#EventNumberingPreference chooses a main numbering method, when both are available (especially in BUILD_BXID_VALIDATE and TRIGGERID event building mode) 
#EventNumberingPreference = "TRIGGERID"
EventNumberingPreference = "TIMESTAMP"
#IgnoreLdaTimestamps ignores timestamp in the LDA data stream
IgnoreLdaTimestamps = 0
#KeepBuffered: how many readout cycle will be held in the memory befor sending out. This filters out packets, that come out of order
KeepBuffered = 2
#DebugKeepBuffered: 1=keep all events in producer buffer and don't send the data to data collector. 0=pass packets normally
DebugKeepBuffered = 0
#AHCALBXID0offset = offset from start acquisition Timestamp to BXID0 (in 25ns steps). Varies with AHCAL powerpulsing setting and DIF firmware
AHCALBXID0Offset = 2100
#AHCALBXIDWidth = length of the bxid in 25 ns steps. 4us=160, 200ns=8
AHCALBXIDWidth = 160
MaximumTrigidSkip = 30000 # maximum numbers of triggers, that are allowed to skip. If more, treated as bad data
MaximumROCJump = 100
ChipidAddBeforeMasking = -1 # -1 to count chipid from 0
ChipidKeepBits = 4
ChipidAddAdterMasking = 0
AppendDifidToChipidBitPosition = 8 # where to add the difid
MinimumBxid = 1 #minimal accepted bxid. bxid0 has a TDC bug
MinimumEventHits = 1 #minimal count of hits in the whole event (hits are counted from all layers)

[Producer.BIF1]
EUDAQ_DC="bxidColl1"
ReadoutDelay=10
#TriggerInterval = 1
ConnectionFile = file://conf/bif_connections.xml
DeviceName = minitlu_bif
#InternalTriggerInterval = 500
InternalTriggerInterval = 0
UseIntDACValues = 0
# DACIntThreshold0 = 0x0
# DACIntThreshold1 = 0x0
# DACIntThreshold2 = 0x0
# DACIntThreshold3 = 0x0
#BIF registers falling edge
DACThreshold0 = -0.3
DACThreshold1 = -0.3
DACThreshold2 = -0.3
DACThreshold3 = -0.3
WriteRawOutput = 1
RawFileName = "./data/BifRaw/bifraw-run%06d"
DumpRawOutput = 0
#DumpCycleInfoLevel levels: 2=full info, 1=1 character (@), 0=none
DumpCycleInfoLevel = 1
#DumpTriggerInfoLevel levels: 3=trig number, 2=full info, 1=1 character (.), 0=none
DumpTriggerInfoLevel = 1
DumpSummary = 1
#RawFileName without .raw extension
WriteRawFileNameTimestamp = 1
#FirstBxidOffsetBins = 196668
CountRocFrom = 1 #by default bif counts from 0
FirstBxidOffsetBins = 67351
BxidLengthNs = 4000
# WaitAfterStopSeconds setting has 1 s uncertainty!
WaitAfterStopSeconds = 1
#0x0100=PX2, 
#masks: 0xFFFFFF00=input3; 0xFFFEFFFE=input0|input1|input2|input3; 0xFFFF0FF0=input2; 
TriggerMask = 0xFFFEFFFE
#enable RJ45 calice ahcal input:
DUTMask = 0x1
EnableRecordData = 0xFF
#When RedirectInputFromFile is set, an existing raw raw data file is used as a fake input from detector
#RedirectInputFromFile="/home/kvas/ahcal/Testbeam201705/data/bif-run051024__26p05p2017__15p02p21.raw"
#EventBuildingMode selects what event building will be used and
#EventBuildingMode = "ROC" #Complete readout cycle
#EventBuildingMode = "TRIGGERS" #packets for individual triggers are used
EventBuildingMode = "BXID"
#EventNumberingPreference chooses a main numbering method, when both are available (especially in BUILD_BXID_VALIDATE and TRIGGERID event building mode) 
#EventNumberingPreference = "TRIGGERID"
EventNumberingPreference = "TIMESTAMP"
ConsecutiveTriggerIgnorePeriod = 100 # in 0.78125ns bins


Running with a telescope:

STARTRUN_201903_table_BIF_Telescope.sh

automated scan: generate_SCAN_2tiles_ASIC1.sh, stage.conf, desy_20190319.ini

Startup script (STARTRUN_201903_table_BIF_Telescope.sh)

#!/bin/bash

if [ -f KILLRUN.local ]
then
    sh KILLRUN.local
else
    sh KILLRUN.sh
fi

export currentdate=`date +%Y%m%d`
export RCPORT=44000
export HOSTIP=192.168.1.10
#################  Run control ###################
#xterm -sb -sl 1000000 -T "Runcontrol" -e 'bin/euRun -n RunControl ; read '&
xterm -r -sb -sl 100000 -T "Runcontrol" -e 'bin/euRun -n AhcalRunControl |tee -a logs/runcontrol.log; read '&
sleep 2
#################  Log collector #################
xterm -r -sb -sl 1000 -geometry 160x30 -T "Logger" -e 'bin/euLog -r tcp://$HOSTIP:$RCPORT|tee --append data/logs/logcollector_${currentdate} ;read' &
#sleep 1
#################  Data collector #################
#known data collectors:  EventnumberSyncDataCollector, DirectSaveDataCollector, TimestampSyncDataCollector, AhcalHodoscopeDataCollector, CaliceDataCollector, CaliceTelDataCollector, CaliceTsDataCollector, CaliceAhcalBifBxidDataCollector
#EventnumberSyncDataCollector
xterm -r -sb -sl 100000 -geometry 80x4 -T "EventID Collector 1" -e "bin/euCliCollector -n EventnumberSyncDataCollector -t dc1 -r tcp://$HOSTIP:$RCPORT | tee -a data/logs/DataCollectordc1_${currentdate}.log; read" &
xterm -r -sb -sl 100000 -geometry 80x4 -T "EventID Collector 2" -e "bin/euCliCollector -n EventnumberSyncDataCollector -t dc2 -r tcp://$HOSTIP:$RCPORT | tee -a data/logs/DataCollectordc2_${currentdate}.log; read" &


#xterm -r -sb -sl 100000 -geometry 80x4 -T "Collector 1" -e "bin/euCliCollector -n DirectSaveDataCollector -t dc1 | tee -a data/logs/DataCollectorEudaq_${currentdate}.log; read" &

#xterm -r -sb -sl 100000 -geometry 160x24 -T "BXID collector ahcalbif" -e "bin/euCliCollector -n CaliceAhcalBifBxidDataCollector -t bxidColl1 | tee -a data/logs/DataCollectorBxid_${currentdate}.log ; read" &
#xterm -r -sb -sl 100000 -T "directsave Data collector 3" -e 'bin/euCliCollector -n DirectSaveDataCollector -t dc3 ; read' &
#xterm -sb -sl 100000 -geometry 160x30 -T "Hodoscope Data collector" -e 'bin/euCliCollector -n AhcalHodoscopeDataCollector -t dc2 | tee -a logs/dc2.log; read' &
#xterm -sb -sl 100000 -geometry 160x30 -T "slcio Hodoscope Data collector" -e 'bin/euCliCollector -n AhcalHodoscopeDataCollector -t dc3 | tee -a logs/dc3.log; read' &
#xterm -sb -sl 100000  -T "Data collector2" -e 'bin/euCliCollector -n DirectSaveDataCollector -t dc2 ; read' &
#sleep 1

#################  Producer #################
#xterm -sb -sl 1000000 -geometry 160x30 -T "Hodoscope" -e 'bin/euCliProducer -n CaliceEasirocProducer -t hodoscope1 -r tcp://$HOSTIP:$RCPOR|tee -a logs/hodoscope1.log && read || read'&
#xterm -sb -sl 1000000 -geometry 160x30 -T "Hodoscope 2" -e 'bin/euCliProducer -n CaliceEasirocProducer -t hodoscope2 -r tcp://$HOSTIP:$RCPOR|tee -a logs/hodoscope2.log && read || read'&
# sleep 1
xterm -r -sb -sl 100000 -geometry 160x30 -T "AHCAL" -e 'bin/euCliProducer -n AHCALProducer -t AHCAL1 -r tcp://$HOSTIP:$RCPORT |tee -a data/logs/ahcal_${currentdate}.log ; read'&
xterm -r -sb -sl 10000 -geometry 160x30 -T "DESY table" -e 'bin/euCliProducer -n DesyTableProducer -t desytable1 -r tcp://$HOSTIP:$RCPORT |tee -a data/logs/desytable_${currentdate}.log ;read'&
xterm -r -sb -sl 100000 -geometry 160x24 -T "BIF" -e "bin/euCliProducer -n caliceahcalbifProducer -t BIF1 -r tcp://$HOSTIP:$RCPORT |tee -a data/logs/bif_${currentdate}.log ; read"&

#################  Online Monitor #################
echo "starting online monitor"
#xterm -sb -sl 100000  -T "Online monitor" -e 'bin/StdEventMonitor -c conf/onlinemonitor.conf --monitor_name StdEventMonitor --reset ; read' &
#xterm -sb -sl 100000  -T "Online monitor" -e 'bin/StdEventMonitor --monitor_name StdEventMonitor --reset -r tcp://$HOSTIP:$RCPORT ; read' &
xterm -sb -sl 100000  -T "Online monitor" -e 'bin/StdEventMonitor -c conf/onlinemonitor.conf --monitor_name StdEventMonitor --reset -r tcp://$HOSTIP:$RCPORT ; read' &
 echo "online monitor started"
exit


Ini section is the same as for the standalone running

Conf

[RunControl]
#STOP_RUN_AFTER_N_SECONDS = 3600: start new run after 1 hour
STOP_RUN_AFTER_N_SECONDS = 3600
#STOP_RUN_AFTER_N_SECONDS = STAGEGENERATE_SECONDS
#STOP_RUN_AFTER_N_EVENTS = STAGEGENERATE_EVENTS
#NEXT_RUN_CONF_FILE = STAGEGENERATE_FILE


[LogCollector.log]
# Currently, all LogCollectors have a hardcoded runtime name: log
# nothing
 
[Producer.eudet_tlu]
EUDAQ_DC = dc2
AndMask = 15
OrMask = 0
VetoMask = 0
DutMask = 3
TriggerInterval = 0
TrigRollover = 0
PMTVcntl1 = 800
PMTVcntl2 = 800
PMTVcntl3 = 800
PMTVcntl4 = 800
# Define the data collector to be used by the producer
DISABLE_PRINT = 1


[DataCollector.dc1]
EUDAQ_MN=StdEventMonitor
# send assambled event to the monitor with runtime name my_mon;
#PRODUCERS="Calice1"
EUDAQ_FW=native
# the format of data file
EUDAQ_FW_PATTERN="data/eudaqRaw/Run$6R_$13D$X"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT=0

[DataCollector.dc2]
# send assambled event to the monitor with runtime name my_mon;
#PRODUCERS="Calice1"
EUDAQ_FW=slcio
# the format of data file
EUDAQ_FW_PATTERN="data/slcio/Run$6R_$13D$X"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
DISABLE_PRINT=1

[Producer.ni_mimosa]
EUDAQ_DC = "dc1,dc2"
TriggerType = 1
Det = MIMOSA26
Mode = ZS2
NiVersion = 1
NumBoards = 6
FPGADownload = 1
OneFrame = 0
IDOffset = 0
MimosaID_1 = 0 
MimosaID_2 = 1
MimosaID_3 = 2
MimosaID_4 = 3
MimosaID_5 = 4
MimosaID_6 = 5
MimosaEn_1 = 1
MimosaEn_2 = 1
MimosaEn_3 = 1
MimosaEn_4 = 1
MimosaEn_5 = 1
MimosaEn_6 = 1
DISABLE_PRINT = 1

[DataCollector.bxidColl1]
EUDAQ_FW=slcio
# the format of data file
EUDAQ_FW_PATTERN="data/slcio/run$6R_$12D$X"
# the name pattern of data file
# the $12D will be converted a data/time string with 12 digits.
# the $6R will be converted a run number string with 6 digits.
# the $X will be converted the suffix name of data file.
MandatoryBif=1
DISABLE_PRINT=0

[Producer.AHCAL1]
EUDAQ_DC="dc1,dc2,bxidColl1"
#FileLEDsettings ="F:\\LEDEUDAQ\\LED1.ini"
FileMode = 0
WaitMillisecForFile = 1000
StartWaitSeconds = 0
# Sleeping time (in seconds) after clicking stop: needed to read
# all the events stored in the Labview data queue
waitsecondsForQueuedEvents = 0
Port = 5622
IPAddress = "192.168.1.11"
Reader = "Scintillator"
WriteRawOutput = 1
#RawFileName = "../data/Run_%05d"
RawFileName = "data/AhcalRaw/ahcalRaw_Run%06d"
WriteRawFileNameTimestamp = 1
ColoredTerminalMessages = 1
#LdaTrigidOffset to compensate differences between TLU (or other trigger number source) and LDA. Eudaq Event counting starts from this number and will be always subtracted from the eudaq event triggerid.
LdaTrigidOffset = 1
#LdaTrigidStartsFrom: The first expected raw triggerID from LDA in the data stream in case it is not 0. It suppresses error warning for the first event. When set higher then the first event, triggers below the provided number are ignored!
LdaTrigidStartsFrom = 1
#GenerateTriggerIDFrom sets from which triggerID number should be data generated (and filled with dummy triggers if necessary). Only works when insert_dummy_packets is enabled and in selected event building modes 
GenerateTriggerIDFrom = 1
#InsertDummyPackets: 1=inserts dummy packets to keep correct sequence of TrigIDs or ReadOutCycles; 0=do not insert anything
InsertDummyPackets = 1
#When RedirectInputFromFile is set, an existing raw raw data file is used as a fake input from detector
#RedirectInputFromFile="/media/kvas/kvas@fzu.cz/ahcal/data_201711/ahcalRaw_00096.raw"
#EventBuildingMode selects what event building will be used and
#EventBuildingMode = "ROC"
#EventBuildingMode = "TRIGGERID"
#EventBuildingMode = "BUILD_BXID_ALL"
EventBuildingMode = "BUILD_BXID_VALIDATED"
#EventNumberingPreference chooses a main numbering method, when both are available (especially in BUILD_BXID_VALIDATE and TRIGGERID event building mode) 
#EventNumberingPreference = "TRIGGERID"
EventNumberingPreference = "TIMESTAMP"
#IgnoreLdaTimestamps ignores timestamp in the LDA data stream
IgnoreLdaTimestamps = 0
#KeepBuffered: how many readout cycle will be held in the memory befor sending out. This filters out packets, that come out of order
KeepBuffered = 2
#DebugKeepBuffered: 1=keep all events in producer buffer and don't send the data to data collector. 0=pass packets normally
DebugKeepBuffered = 0
#AHCALBXID0offset = offset from start acquisition Timestamp to BXID0 (in 25ns steps). Varies with AHCAL powerpulsing setting and DIF firmware
AHCALBXID0Offset = 2101
#AHCALBXIDWidth = length of the bxid in 25 ns steps. 4us=160, 200ns=8
AHCALBXIDWidth = 160
MaximumTrigidSkip = 30000 # maximum numbers of triggers, that are allowed to skip. If more, treated as bad data
MaximumROCJump = 100
ChipidAddBeforeMasking = -1 # -1 to count chipid from 0
ChipidKeepBits = 4
ChipidAddAdterMasking = 0
AppendDifidToChipidBitPosition = 8 # where to add the difid
MinimumBxid = 1 #minimal accepted bxid. bxid0 has a TDC bug
MinimumEventHits = 0 #minimal count of hits in the whole event (hits are counted from all layers)

[Producer.BIF1]
EUDAQ_DC="bxidColl1"
ReadoutDelay=10
#TriggerInterval = 1
ConnectionFile = file://conf/bif_connections.xml
DeviceName = minitlu_bif
#InternalTriggerInterval = 500
InternalTriggerInterval = 0
UseIntDACValues = 0
# DACIntThreshold0 = 0x0
# DACIntThreshold1 = 0x0
# DACIntThreshold2 = 0x0
# DACIntThreshold3 = 0x0
#BIF registers falling edge
DACThreshold0 = -0.3
DACThreshold1 = -0.3
DACThreshold2 = -0.3
DACThreshold3 = -0.3
WriteRawOutput = 1
RawFileName = "./data/BifRaw/bifraw-run%06d"
DumpRawOutput = 0
#DumpCycleInfoLevel levels: 2=full info, 1=1 character (@), 0=none
DumpCycleInfoLevel = 1
#DumpTriggerInfoLevel levels: 3=trig number, 2=full info, 1=1 character (.), 0=none
DumpTriggerInfoLevel = 1
DumpSummary = 1
#RawFileName without .raw extension
WriteRawFileNameTimestamp = 1
#FirstBxidOffsetBins = 196668
CountRocFrom = 1 #by default bif counts from 0
FirstBxidOffsetBins = 67351
BxidLengthNs = 4000
# WaitAfterStopSeconds setting has 1 s uncertainty!
WaitAfterStopSeconds = 1
#0x0100=PX2, 
#masks: 0xFFFFFF00=input3; 0xFFFEFFFE=input0|input1|input2|input3; 0xFFFF0FF0=input2; 
TriggerMask = 0xFFFEFFFE
#enable RJ45 calice ahcal input:
DUTMask = 0x1
EnableRecordData = 0xFF
#When RedirectInputFromFile is set, an existing raw raw data file is used as a fake input from detector
#RedirectInputFromFile="/home/kvas/ahcal/Testbeam201705/data/bif-run051024__26p05p2017__15p02p21.raw"
#EventBuildingMode selects what event building will be used and
#EventBuildingMode = "ROC" #Complete readout cycle
#EventBuildingMode = "TRIGGERS" #packets for individual triggers are used
EventBuildingMode = "BXID"
#EventNumberingPreference chooses a main numbering method, when both are available (especially in BUILD_BXID_VALIDATE and TRIGGERID event building mode) 
#EventNumberingPreference = "TRIGGERID"
EventNumberingPreference = "TIMESTAMP"
ConsecutiveTriggerIgnorePeriod = 100 # in 0.78125ns bins


Start on the fhlrcazalea (192.168.200.1)

export RUNCONTROLIP=192.168.1.10
xterm -T "NI/Mimosa Producer" -e 'euCliProducer -n NiProducer -t ni_mimosa -r tcp://${RUNCONTROLIP}:${RPCPORT};read'&
xterm -T "EUDET TLU Producer" -e 'euCliProducer -n EudetTluProducer -t eudet_tlu -r tcp://${RUNCONTROLIP}:${RPCPORT};read' &


Data

Location: 

/pnfs/desy.de/calice/tb-desy/native/desyAhcal2019/March2019/


Data contains folders:

  • AhcalRaw: 
  • BifRaw
  • EudaqOnlineRoot - root output of the online monitor
  • eudaqRaw - eudaq raw files (ahcal + telescope only), synchronized
  • logs - all logs
  • slcio - combined events (since run 63151 contains data from all producers). Before run 63151 there are converted eudaq raw files to slcio or data without telescope
  • txt - LED runs, temperatures slowcontrols (slowcontrols.zip), voltage compensation file (shv_settings_all_modules_March.zip) and  CCC config files(ccc_config.zip)

  • No labels