Prerequisits:
- TelescopeEvent lib (to read the EUDAQ data files directly)
- Corryvreckan libs (to read the EUDAQ-->Corryvreckan data files or AllPix2-->Corryvreckan simulation files)
Setup:
- Setup ROOT
export LD_LIBRARY_PATH=/path/to/TelescopeEvent/libs:$LD_LIBRARY_PATHexport LD_LIBRARY_PATH=/path/to/Corryvreckan/lib:$LD_LIBRARY_PATH- put data files somewhere with enough space...
- change config file as needed
Run noise scan:
- change
doNoiseScanin the config to 1 python3 serial_analyzer.py -conf conf/config_file_name.txt- change
doNoiseScanin the config back to 0
Run analysis:
- run noise scan (see above)
python3 serial_analyzer.py -conf conf/config_file_name.txtpython3 multiproc_analyzer.py -conf conf/config_file_name.txt- to see event displays (fits...):
- change
doplotin the config to 1 - run with
serial_analyzer.pyas above - kill the process after as many fits as desired
- change
doplotin the config back to 0
- change
Run alignment with cosmics:
- run noise scan (see above)
- step 1:
python3 multiproc_analyzer.py -conf conf/config_file_name.txtwith allmisalignmentparameters set to 0 in the config file - step 2: aligning wrt e.g. ALPIDE_0 or all at once after adjusting the parameters in the config:
maxchi2align,axes2align,naligniter.python3 alignment_fitter.py -conf conf/config_file_name.txt -det ALPIDE_0orpython3 alignment_fitter.py -conf conf/config_file_name.txt- Notes:
- if e.g.
-det ALPIDE_0was used then you need to keep allmisalignmentparameters ofALPIDE_0fixed to 0 in the config file always - if the
axes2alignparameter equals toxythetathen the fit will be FULLY-SIMULTANEOUS in 3D - if the
axes2alignparameter equals toxy,xthetaorythetathen the fit will be SEMI-SIMULTANEOUS in 2D - if the
axes2alignparameter equals tox,yorthetathen the fit will be SEQUENTIAL (i.e. non-simultaneous) in 1D
- if e.g.
- step 3: put the non-zero resulting misalignment values in the config file for the relevant detectors
- step 4: run step 1 again, but with the new (non-zero wherever relevant)
misalignmentparameters in the config file (from step 3) - step 5: check the residuals and the chi2 histograms
- step 6: if the fit is SEMI-SIMULTANEOUS or SEQUENTIAL, you need to repeat steps 2-5 for all axes (e.g.
axes2align=x->axes2align=y->axes2align=theta)