Skip to content
Snippets Groups Projects
Commit ce73c7ac authored by Buddhadeb Mondal's avatar Buddhadeb Mondal
Browse files

Setting for overriding egamma calibration model

parent 2e95cae8
1 merge request!41924Setting for overriding hardcoded egamma calibration model in TopEgammaCPTools
......@@ -146,8 +146,9 @@ namespace top {
m_egammaCalibrationAndSmearingTool = asg::ToolStore::get<IEgammaCalibTool>(egamma_calib_name);
} else {
IEgammaCalibTool* egammaCalibrationAndSmearingTool = new CP::EgammaCalibrationAndSmearingTool(egamma_calib_name);
std::cout<< "Buddha egamma calibration model "<<m_config->egammaCalibration()<<std::endl;
top::check(asg::setProperty(egammaCalibrationAndSmearingTool,
"ESModel", "es2018_R21_v0"),
"ESModel", m_config->egammaCalibration()),
"Failed to set ESModel for " + egamma_calib_name);
top::check(asg::setProperty(egammaCalibrationAndSmearingTool,
"decorrelationModel",
......
......@@ -591,6 +591,8 @@ namespace top {
" Default 'default'",
"default");
registerParameter("EGammaCalibrationModel", "To override default EGammaCalibration model, Default 'es2018_R21_v0'", "es2018_R21_v0");
registerParameter("PRWConfigFiles",
"List of PU config files, seperated by spaces (nothing by default) - Not compatible with FS/AF options",
" ");
......
......@@ -1632,6 +1632,12 @@ namespace top {
m_btagging_calibration_Light = settings->value("BTaggingCalibrationLight");
m_bTagSystsExcludedFromEV = settings->value("BTaggingSystExcludedFromEV");
// egamma calibration model
if(settings->value("EGammaCalibrationModel") != "es2018_R21_v0"){
ATH_MSG_WARNING("This is not the default egamma calibration model. If you want the default behaviour, remove 'EGammaCalibrationModel' setting from config file" );
m_egamma_calibration = settings->value("EGammaCalibrationModel");
}
// Set translatio ndictionary for MCMC maps
if (settings->value("RedefineMCMCMap") != " ") {
std::vector<std::string> tmp;
......
......@@ -1822,6 +1822,10 @@ namespace top {
const std::string& bTaggingCalibration_Light() const
{return m_btagging_calibration_Light;};
// egamma calibration
const std::string& egammaCalibration() const
{return m_egamma_calibration;};
// LHAPDF settings
inline virtual std::vector<std::string> LHAPDFSets() {return m_lhapdf_options.pdf_set_names;}
......@@ -2550,6 +2554,9 @@ namespace top {
std::string m_btagging_calibration_C = "default";
std::string m_btagging_calibration_Light = "default";
// EGamma calibration to be used
std::string m_egamma_calibration = "es2018_R21_v0";
// b-tag SF helpers - one of each per WP
// will be set in the BTagScaleFactorCalculator
// These are the base names of the SF systematics (without __up/__down)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment