ATLAS Offline Software
Namespaces | Macros | Functions | Variables
EgammaCalibrationAndSmearingTool.cxx File Reference
#include <AsgServices/AsgServiceConfig.h>
#include <AsgTools/AsgToolConfig.h>
#include <algorithm>
#include <format>
#include <memory>
#include <string>
#include <utility>
#include "AthContainers/ConstAccessor.h"
#include "PATInterfaces/SystematicRegistry.h"
#include "PathResolver/PathResolver.h"
#include "xAODCaloEvent/CaloCluster.h"
#include "xAODEgamma/Egamma.h"
#include "xAODEgamma/EgammaDefs.h"
#include "xAODEgamma/EgammaxAODHelpers.h"
#include "xAODEventInfo/EventInfo.h"
#include "xAODTracking/TrackParticle.h"
#include "xAODTracking/TrackingPrimitives.h"
#include "xAODTracking/Vertex.h"
#include "AthAnalysisBaseComps/AthAnalysisHelper.h"
#include <cmath>
#include "ElectronPhotonFourMomentumCorrection/EgammaCalibrationAndSmearingTool.h"
#include "ElectronPhotonFourMomentumCorrection/GainTool.h"
#include "ElectronPhotonFourMomentumCorrection/GainUncertainty.h"
#include "ElectronPhotonFourMomentumCorrection/LinearityADC.h"
#include "ElectronPhotonFourMomentumCorrection/egammaEnergyCorrectionTool.h"
#include "egammaLayerRecalibTool/egammaLayerRecalibTool.h"
#include "ElectronPhotonFourMomentumCorrection/systematics_S12_2022.def"
#include "ElectronPhotonFourMomentumCorrection/systematics_1NPCOR_PLUS_UNCOR.def"
#include "ElectronPhotonFourMomentumCorrection/systematics.def"
#include "ElectronPhotonFourMomentumCorrection/systematics_S12.def"

Go to the source code of this file.

Namespaces

 CP
 Select isolated Photons, Electrons and Muons.
 

Macros

#define SYSMACRO(name, fullcorrelated, decorrelation, flagup, flagdown)
 
#define SYSMACRO(name, fullcorrelated, decorrelation, flagup, flagdown)
 
#define SYSMACRO(name, fullcorrelated, decorrelation, flagup, flagdown)
 
#define SYSMACRO(name, fullcorrelated, decorrelation, flagup, flagdown)
 
#define SYSMACRO(name, fullcorrelated, decorrelation, flagup, flagdown)
 

Functions

std::unique_ptr< egGain::GainToolCP::gainToolFactory (egEnergyCorr::ESModel model)
 
std::string CP::egammaMVAToolFolder (egEnergyCorr::ESModel model)
 
std::unique_ptr< egammaLayerRecalibToolCP::egammaLayerRecalibToolFactory (egEnergyCorr::ESModel model, int enableSacc)
 
bool CP::use_intermodule_correction (egEnergyCorr::ESModel model)
 
bool CP::use_phi_uniform_correction (egEnergyCorr::ESModel model)
 
bool CP::is_run2 (egEnergyCorr::ESModel model)
 

Variables

const double CP::GeV = 1000.
 

Macro Definition Documentation

◆ SYSMACRO [1/5]

#define SYSMACRO (   name,
  fullcorrelated,
  decorrelation,
  flagup,
  flagdown 
)
Value:
m_syst_description[CP::SystematicVariation(#name, +1)] = \
SysInfo{always, flagup}; \
m_syst_description[CP::SystematicVariation(#name, -1)] = \
SysInfo{always, flagdown};

◆ SYSMACRO [2/5]

#define SYSMACRO (   name,
  fullcorrelated,
  decorrelation,
  flagup,
  flagdown 
)
Value:
m_syst_description[CP::SystematicVariation(#name, +1)] = \
SysInfo{always, flagup}; \
m_syst_description[CP::SystematicVariation(#name, -1)] = \
SysInfo{always, flagdown};

◆ SYSMACRO [3/5]

#define SYSMACRO (   name,
  fullcorrelated,
  decorrelation,
  flagup,
  flagdown 
)
Value:
if (bool(fullcorrelated)) { \
m_syst_description[CP::SystematicVariation(#name, +1)] = \
SysInfo{always, flagup}; \
m_syst_description[CP::SystematicVariation(#name, -1)] = \
SysInfo{always, flagdown}; \
} else { \
int i = 0; \
for (const auto& p : AbsEtaCaloPredicatesFactory(decorrelation)) { \
m_syst_description[CP::SystematicVariation( \
#name "__ETABIN" + std::to_string(i), +1)] = SysInfo{p, flagup}; \
m_syst_description[CP::SystematicVariation( \
#name "__ETABIN" + std::to_string(i), -1)] = SysInfo{p, flagdown}; \
i += 1; \
} \
}

◆ SYSMACRO [4/5]

#define SYSMACRO (   name,
  fullcorrelated,
  decorrelation,
  flagup,
  flagdown 
)
Value:
if (bool(fullcorrelated)) { \
m_syst_description[CP::SystematicVariation(#name, +1)] = \
SysInfo{always, flagup}; \
m_syst_description[CP::SystematicVariation(#name, -1)] = \
SysInfo{always, flagdown}; \
} else { \
int i = 0; \
for (const auto& p : AbsEtaCaloPredicatesFactory(decorrelation)) { \
m_syst_description[CP::SystematicVariation( \
#name "__ETABIN" + std::to_string(i), +1)] = SysInfo{p, flagup}; \
m_syst_description[CP::SystematicVariation( \
#name "__ETABIN" + std::to_string(i), -1)] = SysInfo{p, flagdown}; \
i += 1; \
} \
}

◆ SYSMACRO [5/5]

#define SYSMACRO (   name,
  fullcorrelated,
  decorrelation,
  flagup,
  flagdown 
)
Value:
if (bool(fullcorrelated)) { \
m_syst_description[CP::SystematicVariation(#name, +1)] = \
SysInfo{always, flagup}; \
m_syst_description[CP::SystematicVariation(#name, -1)] = \
SysInfo{always, flagdown}; \
} else { \
int i = 0; \
for (const auto& p : AbsEtaCaloPredicatesFactory(decorrelation)) { \
m_syst_description[CP::SystematicVariation( \
#name "__ETABIN" + std::to_string(i), +1)] = SysInfo{p, flagup}; \
m_syst_description[CP::SystematicVariation( \
#name "__ETABIN" + std::to_string(i), -1)] = SysInfo{p, flagdown}; \
i += 1; \
} \
}
CP::SystematicVariation
Definition: SystematicVariation.h:47
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
lumiFormat.i
int i
Definition: lumiFormat.py:85
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34