This contains scripts to run over ZDC data and plot their results needed for performing the online monitoring of the ZDC. It is divided into the following subdiretories.
The python directory contains the code that can be used to run over the raw data as it comes in. In order to monitor the timing information, please refer to the recHitRaw
instructions below. In order to check the unpacker vs. emulation code or the digis, use l1Ntupele2023.py
. In order to adapt this depending on the run, refer to the ZDC Online monitoring Twiki.
This config file in the python folder produces a root file with the ADC and Charge in each channel of the ZDC, it also produces plots related to timing under the fC_vs_BX folder. To run this file emap_2023_newZDC.txt, QWZDC2018Producer_cfi.py, ZDC2018Pedestal_cfg.py, and all the source files are required.
This directory contains plotting macros used for processing the L1Ntuples produced by the code in the python directory. The two main plotting functionalities include plotting the emulator vs. unpacker comparisons as well as the per digi plots.
The code in this directory is useful for converting the LUT provided by HCal experts (Michael Krohn) to the format used by the L1T ZDC emulation. Note that this conversion code would quickly become obsolete once PR # 42818 is merged. Note that for OOTPU subtraction the idea is to create two different LUTs and then use both of these in the code. Full instructions are included in the L1 ZDC Emualtor Twiki. The text files for the most recent versions of the LUTs (v4) are included in the file.
This directory contains macros used for the calibration of the L1Ntuples. The input filename should be written in the macro (line 27). Before running the code, the following commands should be ran:
cd /afs/cern.ch/user/m/mcsanad/public/CMSSW_13_2_4/src/HeavyIonsAnalysis/ZDCAnalysis/python
cmsenv
cd -
The output root file can be plotted using the Plot_analyze.C macro.