ATLAS Offline Software
corr_HV_EMBPS.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CORR_HV_EMBPS_H
6 #define CORR_HV_EMBPS_H
7 #include "TProfile2D.h"
8 #include "TFile.h"
9 
33 
34  public:
36  corr_HV_EMBPS();
38 
41  float getCorr(int run, float eta, float phi) const;
42 
43  private:
44 
45  // response factor as computed in reconstruction
46  // (E measured = E nominalHV * response factor(HV)
47  static float getRecoCorrection(float hv,float eta) ;
48  // functions to computed scale factor as in reconstruction
49  static float Respo(float e, float e_nominal,float tempe) ;
50  static float InvCharge(float e) ;
51  static float vdrift(float e, float tempe) ;
52 
53  // extra response factor derive from latest data
54  // (E measured data) = (E corrected by reconstruction)* extra response factor (HV) for run >=211670
55  static float getDataCorrection(float hv,float eta) ;
56 
57  // change to extra response factor to apply to data before run 211670 for HV<1600 to account for the fact that
58  // OFC and Mphys/Mcal where changed at run 211670 to be computed with HV=1200 instead of HV=2000
59  static float getExtraScaleFactor() ;
60 
61  // store HV corrections for 6 periods, and 2 sides
62  // each histogram has 8 bins in eta (deltaEta=0.4) and 32 bins in phi (2pi/32)
63  TProfile2D* m_hHV[6][2]{};
64  TFile* m_file;
65 
66 };
67 #endif
corr_HV_EMBPS::getCorr
float getCorr(int run, float eta, float phi) const
get correction factor to apply to raw EMBPS energy : corrected raw EMBPS energy = correction factor *...
Definition: corr_HV_EMBPS.cxx:45
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
corr_HV_EMBPS::~corr_HV_EMBPS
~corr_HV_EMBPS()
Definition: corr_HV_EMBPS.cxx:39
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
corr_HV_EMBPS::m_file
TFile * m_file
Definition: corr_HV_EMBPS.h:64
TProfile2D
Definition: rootspy.cxx:531
corr_HV_EMBPS::Respo
static float Respo(float e, float e_nominal, float tempe)
Definition: corr_HV_EMBPS.cxx:120
corr_HV_EMBPS::getDataCorrection
static float getDataCorrection(float hv, float eta)
Definition: corr_HV_EMBPS.cxx:150
corr_HV_EMBPS::getRecoCorrection
static float getRecoCorrection(float hv, float eta)
Definition: corr_HV_EMBPS.cxx:99
corr_HV_EMBPS::vdrift
static float vdrift(float e, float tempe)
Definition: corr_HV_EMBPS.cxx:139
corr_HV_EMBPS
Correction for time dependent HV effect in barrel presampler scale in 2012.
Definition: corr_HV_EMBPS.h:32
run
Definition: run.py:1
corr_HV_EMBPS::corr_HV_EMBPS
corr_HV_EMBPS()
constructor (initialization done there reading a root file for the HV maps per period
Definition: corr_HV_EMBPS.cxx:19
corr_HV_EMBPS::m_hHV
TProfile2D * m_hHV[6][2]
Definition: corr_HV_EMBPS.h:63
corr_HV_EMBPS::InvCharge
static float InvCharge(float e)
Definition: corr_HV_EMBPS.cxx:130
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
corr_HV_EMBPS::getExtraScaleFactor
static float getExtraScaleFactor()
Definition: corr_HV_EMBPS.cxx:171