Apply Calibrations
CAEN data
Our current philosophy for the application of the calibrations is to keep the original raw values for the HG & LG ADC, but provide in addition an energy (E) for each tile calibrated to mip scale per tile. The pedestal corrected ADC values can always be obtained by calculating:
Which leaves the data as much with their original content as possible.
For convenience and reducing the storage needs the calibration objects can be copied out of any file using the following command and stored in a separate file.
Once more the -a
option triggers the writing of the calibrations also to a txt file with the same name as $NEWCALIBFILEONLY.root
ending in _calib.txt.
The original calibrations contained in the input root file can be overwritten as usual with the option -k $CALIBTXTFILE.
Calibrating a single run
Calibrating a single run can be a time intensive procedure, due to the fact that we are calculating the local trigger primitives for each tile & event in the same process. Consequently it might be advisable to separate the trigger calculation and actual calibration (if this might need repeating).
The trigger primitives are calculated in the same manner as for the MIP calibration step, depending on the data set size this can take multiple hours. In addition the local trigger bits are set accordingly:
We recommend running it as follows:
Where -T
results in calling the
bool Analyses::RunEvalLocalTriggers(void)
in Analyses.cc.
This process will run for a while (hours) but in principle is suffient do be done once, of the LG-HG correlation factors weren't incorrectly applied. This process won't create any plots.
Afterwards, the calibration can be run directly on that raw-file wiht the trigger primitives. Which is a rather quick procedure and could be repeated multiple times if need be.
The option -C
results in the calibration application based on $CALIBFILE.root
and calculation of the energies for each tile, while the option -t
suppresses the trigger-calculation.
Alternatively everything can be done in one go by:
The calibration function can be found in
bool Analyses::Calibrate(void)
in Analyses.cc.
and will create a separate hist output root in addition to several plots.
For monitoring purposes the uncorrected, pedestal corrected as well as noise trigger pedestal corrected spectra are plotted. In order to identify possible problems with the pedestal subtraction or possible pedestal shifts due to common mode noise/cross-talk.
The detailed layer by layer plots will only be drawn if option -e
is specified.
In the Etot vs NCells distribution the contamination to the electron beam can be clearly identified:
blob at Ncells = 400: electrons
lower blob and diagonal: muons
blob around Ncells = 700: mult part (i.e 2 electrons)
diag to electron blob: hadrons
This can be exploited later to do basic event selections, together with the more general distribution within the LFHCal module.
In the per cell energy distributions, discontinuities can be found, where we are switching from HG to the LG signal. This feature is under investigation and might originate from a change in the run-by-run LG-HG correlation values.
September 2023 data
No scripts have been created yet.
October 2023 data
No scripts have been created yet.
August 2024 data
The primary script for the application of the calibrations of this data set is applyCalibration_2024.sh
, in order to apply the calibrations for a specific scan the following commands need to be executed in order. The next command should only be executed if the outputs of the previous step have been checked.
The 2nd argument defines which scan it is, please check which are currently available and expand where necessary.
Last updated