Skip to content

Commit

Permalink
useFastSim option in Tau calibration and corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hank committed Aug 7, 2024
1 parent 36b9f93 commit d76241f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Root/TauCalibrator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ EL::StatusCode TauCalibrator :: initialize ()
if (!m_campaign.empty()) ANA_CHECK(m_tauSmearingTool_handle.setProperty("Campaign",m_campaign));
ANA_CHECK(m_tauSmearingTool_handle.setProperty("ApplyMVATESQualityCheck",m_applyMVATESQualityCheck));
ANA_CHECK(m_tauSmearingTool_handle.setProperty("SkipTruthMatchCheck",m_skipTruthMatchCheck));
if ( isFastSim() ){
ANA_MSG_INFO( "Setting simulation flavour to Fast Sim");
ANA_CHECK(m_tauSmearingTool_handle.setProperty("useFastSim", 1));
} else {
ANA_CHECK(m_tauSmearingTool_handle.setProperty("useFastSim", 0));
}
ANA_CHECK(m_tauSmearingTool_handle.retrieve());
ANA_MSG_DEBUG("Retrieved tool: " << m_tauSmearingTool_handle);

Expand Down
6 changes: 6 additions & 0 deletions Root/TauEfficiencyCorrector.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ EL::StatusCode TauEfficiencyCorrector :: initialize ()
}

ANA_CHECK(m_tauEffCorrTool_handle.setProperty("EfficiencyCorrectionTypes",configVec));
if ( isFastSim() ){
ANA_MSG_INFO( "Setting simulation flavour to Fast Sim");
ANA_CHECK(m_tauEffCorrTool_handle.setProperty("useFastSim", 1));
} else {
ANA_CHECK(m_tauEffCorrTool_handle.setProperty("useFastSim", 0));
}
ANA_CHECK(m_tauEffCorrTool_handle.retrieve());
ANA_MSG_DEBUG("Retrieved tool for Tau Efficiency corrections: " << m_tauEffCorrTool_handle);

Expand Down

0 comments on commit d76241f

Please sign in to comment.