Skip to content

Commit

Permalink
Add configurable GSCDepth to JetCalibrator to override GSCDepth from …
Browse files Browse the repository at this point in the history
…calibration config file when required (#1683)

Co-authored-by: mamerl <maximilian.amerl@cern.ch>
  • Loading branch information
mamerl and mamerl committed Mar 27, 2024
1 parent ff9c560 commit 795f2c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Root/JetCalibrator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ EL::StatusCode JetCalibrator :: initialize ()
if ( m_jetCalibToolsDEV ) {
ANA_CHECK( m_JetCalibrationTool_handle.setProperty("DEVmode", m_jetCalibToolsDEV));
}
if (!m_calibGSCDepth.empty() && m_calibSequence.find("GSC") != std::string::npos) {
ANA_MSG_WARNING("Using modified GSCDepth property for jet calibration '" << m_calibGSCDepth << "' which will override config file value");
ANA_CHECK( m_JetCalibrationTool_handle.setProperty("GSCDepth", m_calibGSCDepth));
}
// HLT jet re-calibration configuration
if (m_recalibrateHLTJets) {
ANA_CHECK( m_JetCalibrationTool_handle.setProperty("UseHLTEventShape", true) );
Expand Down
4 changes: 4 additions & 0 deletions xAODAnaHelpers/JetCalibrator.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ class JetCalibrator : public xAH::Algorithm
/// when a non-empty string is provided
std::string m_EvtInfoHLTNPVDecor = "";

/// @brief GSCDepth property to override GSCDepth in config file when set to
/// a non-empty string and GSC is in the calibration sequence
std::string m_calibGSCDepth = "";

/// @brief config for JetCalibrationTool ConfigDir, set it to override tool defaults
std::string m_calibConfigDir = "";
/// @brief config for JetCalibrationTool for Data
Expand Down

0 comments on commit 795f2c9

Please sign in to comment.