File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 11import os .path
22import FWCore .ParameterSet .Config as cms
33
4+ def L1TSettingsToCaloParams_2025_v0_1 (process ):
5+ process .load ("L1Trigger.L1TCalorimeter.caloParams_2025_v0_1_cfi" )
6+ return process
7+
48def L1TSettingsToCaloParamsHI_2024_v0_1 (process ):
59 process .load ("L1Trigger.L1TCalorimeter.caloParamsHI_2024_v0_1_cfi" )
610 return process
Original file line number Diff line number Diff line change @@ -345,8 +345,12 @@ L1TCaloStage2ParamsESProducer::L1TCaloStage2ParamsESProducer(const edm::Paramete
345345 m_params_helper.setQ2LUT (*q2LUT);
346346
347347 // Layer 1 LUT specification
348- m_params_helper.setLayer1ECalZSFactors (conf.getParameter <std::vector<double >>(" layer1ECalZSFactors" ));
349- m_params_helper.setLayer1HCalZSFactors (conf.getParameter <std::vector<double >>(" layer1HCalZSFactors" ));
348+ m_params_helper.setLayer1ECalZSFactors (conf.exists (" layer1ECalZSFactors" )
349+ ? conf.getParameter <std::vector<double >>(" layer1ECalZSFactors" )
350+ : std::vector<double >(0 , 0 ));
351+ m_params_helper.setLayer1ECalZSFactors (conf.exists (" layer1HCalZSFactors" )
352+ ? conf.getParameter <std::vector<double >>(" layer1HCalZSFactors" )
353+ : std::vector<double >(0 , 0 ));
350354 m_params_helper.setLayer1ECalScaleFactors (conf.getParameter <std::vector<double >>(" layer1ECalScaleFactors" ));
351355 m_params_helper.setLayer1HCalScaleFactors (conf.getParameter <std::vector<double >>(" layer1HCalScaleFactors" ));
352356 m_params_helper.setLayer1HFScaleFactors (conf.getParameter <std::vector<double >>(" layer1HFScaleFactors" ));
You can’t perform that action at this time.
0 commit comments