MIMOSA operation - PADME-Experiment/padme-fw GitHub Wiki
Please, be sure that the MIMOSA is in beam before turn it on (see https://github.com/PADME-Experiment/padme-fw/wiki/Target-and-Mimosa-Position----Target-Monitoring).
Before switching on the Mimosa Power Supply: ( ON/OFF button bottom left of large knob )
Verify on the DCS the Mimosa cooling system temperature: http://193.206.81.149:9090/dcs
The Mimosacold_line should be below zero degree.
DON’T LEAVE ON MIMOSA SENSORS IF YOU DO NOT USE IT. IF FOR ANY REASON THE COOLING SYSTEMS STOPS WE RISK TO BLOW THE SENSORS!
Connect to MIMOSA readout CPU for the acquisition:
Pass: ask to MIMOSA staff or see it from the CR board
To initialize follow the steps:
source init_script
source PhaseAdjust_script (adjust the phase relation between clock and the port)
source RESET_pulse_script (chip reset, current read gives a lower absorption in current, about 850mA)
daqSoC_v3 -triggerSW yes -NumEventsToRead 0 -JtagInit default (do it two times)
source START_pulse_script (MIMOSA machinery start)
daqSoC_v3 -triggerSW no -NumEventsToRead 1000 -JtagInit work -IPnumberUDPmon 192.168.62.2 (NumEventsToRead is the number of events you want, IPnumberUDPdaq server address were data are sent)
(The Power Supply current should rise to about 1250mA)
To check the current used thrs:
jtagProgrammingSoC_v3 -action ShowRegister -Register BIAS_GEN -DRbitStreamFile JtagBitsStreamFile_ch3_work.dat
Actual values:
13 - v_disc_ref1A - 10010101 - 95 - 149
12 - v_disc_ref1B - 10111001 - b9 - 185
11 - v_disc_ref1C - 10000010 - 82 - 130
10 - v_disc_ref1D - 10001100 - 8c - 140
To modify the thresholds values:
source set_threshold_script 3 255 255 255 255 (1)
The first parameter is the channel number
The other numbers are the four thresholds needed for one sensor (from 0 to 255).
The command (1) sets the maximum thrs everywhere (like -JtagInit default)
If something goes wrong, like misalignment effects due to noise repeat the two commands:
source RESET_pulse_script (chip reset, current read gives a lower absorption in current, about 850mA)
source PhaseAdjust_script
How to start the acquisition:
To test the MIMOSA with internal trigger:
daqSoC_v3 -triggerSW yes -NumEventsToRead 1000 -JtagInit work -DataSaveLocal yes
To use the BTF trigger writing data to the local DataOut folder:
daqSoC_v3 -triggerSW no -NumEventsToRead 1000 -JtagInit work -DataSaveLocal yes
To send acquired data to the l0padme1 server:
daqSoC_v3 -triggerSW no -NumEventsToRead 1000000 -JtagInit work -IPnumberUDPmon 192.168.62.2
In this case, log on l0padme1 as daq and execute:
> cd DAQ/mimosa/DAQ
> ls -l data (to check used run numbers, assume last dir is mrun_0000011)
> mkdir data/mrun_0000012 (use next free run number, please use 7 digits)
> nohup ./MimosaReceiver -r 12 -d data/mrun_0000012 -n 1000 -p 8005 >> MimosaReceiver.log 2>&1 < /dev/zero &
This will start the MIMOSA DAQ writing files of 1000 events each in the newly created directory.
To stop MIMOSA DAQ:
> ps -fu daq | grep MimosaReceiver | grep -v grep
daq 157535 111404 0 Nov27 pts/1 00:04:07 ./MimosaReceiver -r 12 -d data/mrun_0000012 -n 1000 -p 8005
> kill 157535
Info:
In case of no beam the values should be equal to 23.
In case of 23 maybe one or more pixels are always producing hits
In particular for the acquisition command:
-triggerSW (yes/no) (stands for trigger software)
if the trigger is software, the argument should be yes
in case of the BTF trigger, put no
-NumEventsToRead number of events to acquire
-JtagInit can have several arguments:
default maximum thresholds (all 4 channels to 255)
work to acquire, once the thrs are set
no no initialization, thrs set to the default values (programmed before)
IMPORTANT:
Be sure to put -DataSaveLocal yes to save the data.
The Data will be saved in the folder DataOut. Before starting a new acquisition, please rename the folder, to not overwrite Data
In general, Be careful to capital letters.
To show the list of the syntax, send the command:
daqSoC_v3 –help
** To convert .ZS file in ascii use ZSfile_conversion
ZSfile_conversion -help