ATLAS Offline Software
JetPileupCorrection.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JETCALIBTOOLS_JETPILEUPCORRECTION_H
6 #define JETCALIBTOOLS_JETPILEUPCORRECTION_H 1
7 
8 /* Implementation of JetAreaSubtraction class
9  * This class will apply the jet area pile up correction
10  *
11  * Author: Joe Taenzer (joseph.taenzer@cern.ch)
12  * Date: June 27 2013
13  */
14 
15 
17 #include "TString.h"
18 #include <string>
19 #include <memory>
20 class TEnv;
22 
23 namespace PUCorrection {
24  struct PU3DCorrectionHelper;
25 }
26 
28  : virtual public ::JetCalibrationStep
29 {
30 
31  public:
33  JetPileupCorrection(const std::string& name, TEnv * config, TString jetAlgo, TString calibAreaTag, bool doResidual, bool doJetArea, bool doOrigin, const std::string& originScale, bool isData, bool dev);
34  virtual ~JetPileupCorrection();
35 
36  virtual StatusCode initialize() override;
37  virtual StatusCode calibrate(xAOD::Jet& jet, JetEventInfo& jetEventInfo) const override;
38 
39  private:
40  TEnv * m_config{};
41  TString m_jetAlgo;
42  TString m_calibAreaTag;
43  bool m_dev{};
44  bool m_doResidual{};
45  bool m_doJetArea{};
46  bool m_doOrigin{};
47  bool m_isData{};
48  bool m_doMuOnly{};
49  bool m_doNPVOnly{};
50  bool m_doNJetOnly{};
52 
54 
57 
58  std::unique_ptr<PUCorrection::PU3DCorrectionHelper> m_residual3DCorr;
59 
61 
62  std::string m_originScale;
63 
64 };
65 
66 #endif
PUCorrection
Definition: JetPileupCorrection.h:23
JetPileupCorrection::JetPileupCorrection
JetPileupCorrection()
Definition: JetPileupCorrection.cxx:17
ResidualOffsetCorrection
Definition: ResidualOffsetCorrection.h:27
JetPileupCorrection::m_doJetArea
bool m_doJetArea
Definition: JetPileupCorrection.h:45
JetPileupCorrection::m_isData
bool m_isData
Definition: JetPileupCorrection.h:47
config
Definition: PhysicsAnalysis/AnalysisCommon/AssociationUtils/python/config.py:1
JetEventInfo
Definition: JetEventInfo.h:8
JetPileupCorrection::m_calibAreaTag
TString m_calibAreaTag
Definition: JetPileupCorrection.h:42
PUCorrection::PU3DCorrectionHelper
Definition: PUResidual3DCorrection.h:28
JetPileupCorrection::m_residual3DCorr
std::unique_ptr< PUCorrection::PU3DCorrectionHelper > m_residual3DCorr
Definition: JetPileupCorrection.h:58
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
JetPileupCorrection::m_doNJetOnly
bool m_doNJetOnly
Definition: JetPileupCorrection.h:50
JetPileupCorrection
Definition: JetPileupCorrection.h:29
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
JetPileupCorrection::m_originScale
std::string m_originScale
Definition: JetPileupCorrection.h:62
JetPileupCorrection::~JetPileupCorrection
virtual ~JetPileupCorrection()
Definition: JetPileupCorrection.cxx:33
JetPileupCorrection::m_doResidual
bool m_doResidual
Definition: JetPileupCorrection.h:44
JetPileupCorrection::m_residualOffsetCorr
ResidualOffsetCorrection * m_residualOffsetCorr
Definition: JetPileupCorrection.h:56
JetPileupCorrection::m_doMuOnly
bool m_doMuOnly
Definition: JetPileupCorrection.h:48
JetPileupCorrection::m_doNPVOnly
bool m_doNPVOnly
Definition: JetPileupCorrection.h:49
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
JetPileupCorrection::m_doSequentialResidual
bool m_doSequentialResidual
Definition: JetPileupCorrection.h:51
JetPileupCorrection::m_useFull4vectorArea
bool m_useFull4vectorArea
Definition: JetPileupCorrection.h:55
JetPileupCorrection::initialize
virtual StatusCode initialize() override
Definition: JetPileupCorrection.cxx:40
JetPileupCorrection::m_doOrigin
bool m_doOrigin
Definition: JetPileupCorrection.h:46
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
JetPileupCorrection::m_do3Dcorrection
bool m_do3Dcorrection
Definition: JetPileupCorrection.h:53
JetPileupCorrection::m_config
TEnv * m_config
Definition: JetPileupCorrection.h:40
JetPileupCorrection::m_jetAlgo
TString m_jetAlgo
Definition: JetPileupCorrection.h:41
JetPileupCorrection::m_doOnlyResidual
bool m_doOnlyResidual
Definition: JetPileupCorrection.h:60
JetCalibrationStep.h
JetPileupCorrection::m_dev
bool m_dev
Definition: JetPileupCorrection.h:43
JetPileupCorrection::calibrate
virtual StatusCode calibrate(xAOD::Jet &jet, JetEventInfo &jetEventInfo) const override
Definition: JetPileupCorrection.cxx:160
JetCalibrationStep
Definition: JetCalibrationStep.h:20