uwcms / L1TCaloLayer1LUTWriter

Writes the LUTs for use in CaloLayer1 system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

L1TCaloLayer1LUTWriter

Setup instructions:

cmsrel CMSSW_13_1_0_pre2
cd CMSSW_13_1_0_pre2/src
cmsenv
git cms-init
git checkout CMSSW_13_1_X
git cms-addpkg L1Trigger/L1TCalorimeter
git cms-addpkg L1Trigger/L1TCaloLayer1
git remote add cms-l1t-offline git@github.com:cms-l1t-offline/cmssw.git
git fetch cms-l1t-offline l1t-integration-CMSSW_13_1_0_pre2
git clone https://github.com/cms-l1t-offline/L1Trigger-L1TCalorimeter.git L1Trigger/L1TCalorimeter/data
pushd L1Trigger
git clone git@github.com:uwcms/L1TCaloLayer1LUTWriter.git
popd
scram b -j 8
cd L1Trigger/L1TCaloLayer1LUTWriter/test

You may get the following error when trying to compile with scram b -j 8 for the first time:

****ERROR:Private Header: File src/L1Trigger/L1TCaloLayer1LUTWriter/plugins/L1TCaloLayer1LUTWriter.cc directly includes src/L1Trigger/L1TCaloLayer1/src/L1TCaloLayer1FetchLUTs.hh

Run scram b -j 8 again and the compilation error above should go away.

Example of generating the LUTs:

cmsRun testL1TCaloLayer1LUTWriter.py caloParams=caloParams_2023_v0_0_cfi

Configuration options for testL1TCaloLayer1LUTWriter.py:

  • caloParams, default: None, set the name of the CaloParams file to use to generate LUTs. If not specified, CaloParams in the Global Tag will be used.
  • runNumber, default: 1, can be useful to dump LUTs for a particular data run (e.g. check O2O worked as expected)
  • outputFile, default: luts.xml
  • saveHcalScaleFile, default: false, prints the HCAL TP Compression scale to hcalScale.txt

You will have to edit testL1TCaloLayer1LUTWriter.py to select the Global Tag.

About

Writes the LUTs for use in CaloLayer1 system


Languages

Language:Python 78.3%Language:C++ 21.7%