36 using namespace asg::msgUserCode;
44 ANA_MSG_ERROR(
" Usage: %s [xAOD file name] %d Num of events to process %d (0 photons , 1 electrons)");
71 ANA_MSG_ERROR (
"Usage: %s [xAOD file name] %d Num of events to process %d (0 photons , 1 electrons)");
94 const Long64_t userInputEntries = atoll(
argv[2]);
98 ANA_MSG_INFO(
"Running over " << userInputEntries <<
" events.");
109 std::string configFilePathConverted =
"EGammaVariableCorrection/ElectronPhotonVariableCorrectionBase_ExampleConvertedPhotonConf_Eratio.conf";
111 ANA_CHECK(CorrectConvertedPhotonTool.setProperty(
"ConfigFile",configFilePathConverted));
114 std::string configFilePathUnconverted =
"EGammaVariableCorrection/ElectronPhotonVariableCorrectionBase_ExampleUnconvertedPhotonConf_Eratio.conf";
116 ANA_CHECK(CorrectUnconvertedPhotonTool.setProperty(
"ConfigFile",configFilePathUnconverted));
120 ANA_MSG_INFO(
"Correcting Variable: " << correctionVariable);
136 auto photons_copy = std::make_unique<xAOD::PhotonContainer>();
137 auto photons_copy_aux = std::make_unique<xAOD::AuxContainerBase>();
138 photons_copy->setStore (photons_copy_aux.get());
141 for (
auto photon : *photons) {
144 photons_copy->push_back (photon_copy);
150 for (
unsigned int photon_itr = 0; photon_itr < photons_copy->size(); photon_itr++)
185 std::string configFilePath =
"EGammaVariableCorrection/ElectronPhotonVariableCorrectionBase_ExampleElectronConf_Eratio.conf";
187 ANA_CHECK(CorrectElectronTool.setProperty(
"ConfigFile",configFilePath));
191 ANA_MSG_INFO(
"Correcting Variable: " << correctionVariable);
207 auto electrons_copy = std::make_unique<xAOD::ElectronContainer>();
208 auto electrons_copy_aux = std::make_unique<xAOD::AuxContainerBase>();
209 electrons_copy->setStore (electrons_copy_aux.get());
215 electrons_copy->push_back (electron_copy);
221 for (
unsigned int electron_itr = 0; electron_itr < electrons_copy->size(); electron_itr++)