ATLAS Offline Software
get_MaterialResolutionEffect.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef get_MaterialResolutionEffect_H
6 #define get_MaterialResolutionEffect_H
7 #include <array>
8 #include <cmath>
9 #include <cstdlib>
10 #include <memory>
11 
13 
24 class TH1;
25 class TH2;
26 class TArrayD;
27 
29 
30  public:
35 
46  double getDelta(int particle_type, double energy, double eta,
47  int response_type, int isyst) const;
48 
49  private:
50  // histograms to store resolution parameters
51  static const int s_nEtaBins = 8;
52  static const int s_nSys = 4;
53  std::array<std::array<std::array<std::unique_ptr<TH1>, 3>, s_nEtaBins>,
54  s_nSys>
56  std::array<std::array<std::array<std::unique_ptr<TH1>, 3>, s_nEtaBins>,
57  s_nSys>
59  std::array<std::unique_ptr<TH2>, 3> m_hsyst_IBL_PP0;
60  const TArrayD* m_etBins; // A xistogram will own this
61 };
62 
63 #endif
get_MaterialResolutionEffect::~get_MaterialResolutionEffect
~get_MaterialResolutionEffect()
Definition: get_MaterialResolutionEffect.h:34
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
EgammaARTmonitoring_plotsMaker.particle_type
particle_type
Definition: EgammaARTmonitoring_plotsMaker.py:633
get_MaterialResolutionEffect::getDelta
double getDelta(int particle_type, double energy, double eta, int response_type, int isyst) const
get material effect on resolution from distorted geometry as difference to 40 GeV Et electrons smeari...
Definition: get_MaterialResolutionEffect.cxx:92
get_MaterialResolutionEffect::s_nSys
static const int s_nSys
Definition: get_MaterialResolutionEffect.h:52
AsgMessaging.h
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
get_MaterialResolutionEffect::get_MaterialResolutionEffect
get_MaterialResolutionEffect()
constructor (initialization done there reading root files with resolution fit parameters
Definition: get_MaterialResolutionEffect.cxx:34
TH2
Definition: rootspy.cxx:373
get_MaterialResolutionEffect::m_etBins
const TArrayD * m_etBins
Definition: get_MaterialResolutionEffect.h:60
asg::AsgMessaging
Class mimicking the AthMessaging class from the offline software.
Definition: AsgMessaging.h:40
get_MaterialResolutionEffect::m_hSystPeak
std::array< std::array< std::array< std::unique_ptr< TH1 >, 3 >, s_nEtaBins >, s_nSys > m_hSystPeak
Definition: get_MaterialResolutionEffect.h:55
TH1
Definition: rootspy.cxx:268
get_MaterialResolutionEffect::m_hSystResol
std::array< std::array< std::array< std::unique_ptr< TH1 >, 3 >, s_nEtaBins >, s_nSys > m_hSystResol
Definition: get_MaterialResolutionEffect.h:58
get_MaterialResolutionEffect::m_hsyst_IBL_PP0
std::array< std::unique_ptr< TH2 >, 3 > m_hsyst_IBL_PP0
Definition: get_MaterialResolutionEffect.h:59
get_MaterialResolutionEffect::s_nEtaBins
static const int s_nEtaBins
Definition: get_MaterialResolutionEffect.h:51
get_MaterialResolutionEffect
get resolution systematics from material effect (mc12c setup, MVA calibration)
Definition: get_MaterialResolutionEffect.h:28