ATLAS Offline Software
BJetCalibrationAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 #ifndef JET_ANALYSIS_ALGORITHMS__BJET_CALIBRATION_ALG_H
8 #define JET_ANALYSIS_ALGORITHMS__BJET_CALIBRATION_ALG_H
9 
16 
20 
21 #include "xAODJet/JetContainer.h"
22 #include "xAODMuon/MuonContainer.h"
23 
24 namespace CP
25 {
27 
28  class BJetCalibrationAlg final : public EL::AnaAlgorithm
29  {
30  public:
33  StatusCode initialize () override;
34  StatusCode execute () override;
35 
36  private:
37 
39  ToolHandle<CP::IMuonSelectionTool> m_muonSelectionTool{this, "muonSelectionTool", "", "tool for muon quality selection"};
40 
42  ToolHandle<IMuonInJetCorrectionTool> m_muonInJetTool {this, "muonInJetTool", "MuonInJetCorrectionTool", "the muon-in-jet correction tool tool we apply"};
43 
45  ToolHandle<IBJetCorrectionTool> m_bJetTool {this, "bJetTool", "", "the b-jet pt correction tool tool we apply"};
46 
48 
50  this, "jets", "", "the jet collection to run on"};
51 
53  this, "jetPreselection", "", "the preselection to apply to jets"};
54 
56  this, "muons", "", "Muon collection to retrieve"};
57 
59  this, "muonPreselection", "", "the preselection to apply to muons"};
60 
62  this, "NMuonsDecorName", "n_muons_%SYS%", "Name of output decorator for n_muons"};
63 
64  };
65 
66 }
67 
68 #endif
CP::BJetCalibrationAlg
an algorithm to apply b-jet specific energy correction
Definition: BJetCalibrationAlg.h:29
CP::BJetCalibrationAlg::m_nmuons
SysWriteDecorHandle< int > m_nmuons
Definition: BJetCalibrationAlg.h:61
CP::BJetCalibrationAlg::m_muonPreselection
SysReadSelectionHandle m_muonPreselection
Definition: BJetCalibrationAlg.h:58
IBJetCorrectionTool.h
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
SysWriteDecorHandle.h
CP::BJetCalibrationAlg::m_bJetTool
ToolHandle< IBJetCorrectionTool > m_bJetTool
the b-jet pt correction tool
Definition: BJetCalibrationAlg.h:45
SysListHandle.h
CP::BJetCalibrationAlg::m_muonSelectionTool
ToolHandle< CP::IMuonSelectionTool > m_muonSelectionTool
the muon-in-jet selection tool, unused if muonPreselection set
Definition: BJetCalibrationAlg.h:39
SysCopyHandle.h
CP::BJetCalibrationAlg::m_jetHandle
SysCopyHandle< xAOD::JetContainer > m_jetHandle
Definition: BJetCalibrationAlg.h:49
CP::BJetCalibrationAlg::m_muonInJetTool
ToolHandle< IMuonInJetCorrectionTool > m_muonInJetTool
the muon-in-jet correction tool
Definition: BJetCalibrationAlg.h:42
CP::SysReadHandle< xAOD::MuonContainer >
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
CP::BJetCalibrationAlg::m_jetPreselection
SysReadSelectionHandle m_jetPreselection
Definition: BJetCalibrationAlg.h:52
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaAlgorithm.cxx:40
SysReadHandle.h
IMuonSelectionTool.h
AnaAlgorithm.h
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
CP::BJetCalibrationAlg::initialize
StatusCode initialize() override
Definition: BJetCalibrationAlg.cxx:22
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::BJetCalibrationAlg::m_systematicsList
SysListHandle m_systematicsList
Definition: BJetCalibrationAlg.h:47
IMuonInJetCorrectionTool.h
SysReadSelectionHandle.h
MuonContainer.h
CP::BJetCalibrationAlg::execute
StatusCode execute() override
Definition: BJetCalibrationAlg.cxx:49
JetContainer.h
CP::SysCopyHandle
a systematics data handle that will either copy the input object or act like an update handle
Definition: SysCopyHandle.h:62
CP::BJetCalibrationAlg::m_muonHandle
SysReadHandle< xAOD::MuonContainer > m_muonHandle
Definition: BJetCalibrationAlg.h:55
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition: SysReadSelectionHandle.h:32
CP::SysWriteDecorHandle< int >