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

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)
 
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/4]

#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/4]

#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/4]

#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/4]

#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; \
} \
}
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
CP::SystematicVariation
Definition: SystematicVariation.h:47
lumiFormat.i
int i
Definition: lumiFormat.py:92
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34