Skip to content
Snippets Groups Projects

Import ElectronPhotonFourMomentumCorrection r21.2->r22

Merged Sara Alderweireldt requested to merge salderwe/athena:dev/EG4momcorr_r21tor22 into master
2 files
+ 16
21
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -11,7 +11,7 @@
@@ -11,7 +11,7 @@
#include "xAODBase/IParticleHelpers.h"
#include "xAODBase/IParticleHelpers.h"
#include "GaudiKernel/IJobOptionsSvc.h"
#include "Gaudi/Interfaces/IOptionsSvc.h"
namespace CP {
namespace CP {
@@ -30,10 +30,8 @@ StatusCode CalibratedEgammaProvider::initialize() {
@@ -30,10 +30,8 @@ StatusCode CalibratedEgammaProvider::initialize() {
if(m_tool.empty()) { //set up a default tool with the es2012c calibration
if(m_tool.empty()) { //set up a default tool with the es2012c calibration
m_tool.setTypeAndName("CP::EgammaCalibrationAndSmearingTool/AutoConfiguredEgammaCalibTool");
m_tool.setTypeAndName("CP::EgammaCalibrationAndSmearingTool/AutoConfiguredEgammaCalibTool");
ServiceHandle<IJobOptionsSvc> josvc("JobOptionsSvc",name());
ServiceHandle<Gaudi::Interfaces::IOptionsSvc> josvc("JobOptionsSvc",name());
std::string fullToolName = "ToolSvc.AutoConfiguredEgammaCalibTool";
josvc->set("ToolSvc.AutoConfiguredEgammaCalibTool.esModel", "es2012c");
StringProperty pESModel("esModel","es2012c");
CHECK( josvc->addPropertyToCatalogue(fullToolName,pESModel) );
}
}
ATH_CHECK(m_tool.retrieve());
ATH_CHECK(m_tool.retrieve());
Loading