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)");
 
   88     ANA_MSG_INFO(
"Number of events in the file: " << pers.getEntries());
 
   91     Long64_t 
entries = pers.getEntries();
 
   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));
 
  112         ANA_CHECK(CorrectConvertedPhotonTool.initialize());
 
  114         std::string configFilePathUnconverted = 
"EGammaVariableCorrection/ElectronPhotonVariableCorrectionBase_ExampleUnconvertedPhotonConf_Eratio.conf";
 
  116         ANA_CHECK(CorrectUnconvertedPhotonTool.setProperty(
"ConfigFile",configFilePathUnconverted));
 
  117         ANA_CHECK(CorrectUnconvertedPhotonTool.initialize());
 
  119         std::string correctionVariable = CorrectConvertedPhotonTool.getCorrectionVariable();
 
  120         ANA_MSG_INFO(
"Correcting Variable: " << correctionVariable);
 
  126             pers.getEntry(
entry);
 
  132             ANA_CHECK(pers.retrieve(photons, 
"Photons"));
 
  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));
 
  188         ANA_CHECK(CorrectElectronTool.initialize());
 
  190         std::string correctionVariable = CorrectElectronTool.getCorrectionVariable();
 
  191         ANA_MSG_INFO(
"Correcting Variable: " << correctionVariable);
 
  197             pers.getEntry(
entry);
 
  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++)