ATLAS Offline Software
JetTruthTagAlg.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 JETANALYSISALGORITHMS_JETTRUTHTAGALG_H
6 #define JETANALYSISALGORITHMS_JETTRUTHTAGALG_H
7 
14 #include "xAODJet/JetContainer.h"
15 
16 #include <optional>
17 
18 namespace CP {
20  class JetTruthTagAlg final : public EL::AnaAlgorithm {
21  public:
23  virtual ~JetTruthTagAlg() override = default;
24 
25  virtual StatusCode initialize() override;
26  virtual StatusCode execute() override;
27 
28  private:
30  SysReadHandle<xAOD::JetContainer> m_jets{this, "jets", "", "The input reco jet collection"};
31  SG::ReadHandleKey<xAOD::JetContainer> m_truthJets{this, "truthJets", "AntiKt4TruthDressedWZJets", "The input truth jet collection"};
32  Gaudi::Property<std::string> m_isHS{this, "isHSLabel", "isJvtHS", "The label to apply to HS-tagged jets"};
33  Gaudi::Property<std::string> m_isPU{this, "isPULabel", "isJvtPU", "The label to apply to PU-tagged jets"};
34  Gaudi::Property<float> m_hsMaxDR{this, "isHSMaxDR", 0.3, "Tag a reco jet as HS if it is at most this distance from a truth jet"};
35  Gaudi::Property<float> m_hsMinPt{this, "isHSMinPt", 10e3, "Only consider truth jets above this pT for HS tagging"};
36  Gaudi::Property<float> m_puMinDR{this, "isPUMinDR", 0.6, "Tag a reco jet as PU if it is at least this distance from any truth jet"};
37  Gaudi::Property<float> m_puMinPt{this, "isPUMinPt", 0, "Only consider truth jets above this pT for HS tagging"};
38 
39  std::optional<SG::AuxElement::Decorator<char>> m_decIsHS;
40  std::optional<SG::AuxElement::Decorator<char>> m_decIsPU;
41  };
42 }
43 
44 #endif //> !JETANALYSISALGORITHMS_JETTRUTHTAGALG_H
CP::JetTruthTagAlg::m_hsMinPt
Gaudi::Property< float > m_hsMinPt
Definition: JetTruthTagAlg.h:35
PropertyWrapper.h
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
SysListHandle.h
CP::JetTruthTagAlg::m_puMinPt
Gaudi::Property< float > m_puMinPt
Definition: JetTruthTagAlg.h:37
CP::JetTruthTagAlg::m_hsMaxDR
Gaudi::Property< float > m_hsMaxDR
Definition: JetTruthTagAlg.h:34
CP::JetTruthTagAlg::m_isPU
Gaudi::Property< std::string > m_isPU
Definition: JetTruthTagAlg.h:33
CP::JetTruthTagAlg::m_decIsPU
std::optional< SG::AuxElement::Decorator< char > > m_decIsPU
Definition: JetTruthTagAlg.h:40
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
CP::SysReadHandle< xAOD::JetContainer >
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaAlgorithm.cxx:40
CP::JetTruthTagAlg::execute
virtual StatusCode execute() override
Definition: JetTruthTagAlg.cxx:22
SysReadHandle.h
AnaAlgorithm.h
CP::JetTruthTagAlg::m_systematicsList
SysListHandle m_systematicsList
Definition: JetTruthTagAlg.h:29
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
CheckAppliedSFs.e3
e3
Definition: CheckAppliedSFs.py:264
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
CP::JetTruthTagAlg::m_isHS
Gaudi::Property< std::string > m_isHS
Definition: JetTruthTagAlg.h:32
CP::JetTruthTagAlg::~JetTruthTagAlg
virtual ~JetTruthTagAlg() override=default
CP::JetTruthTagAlg::m_jets
SysReadHandle< xAOD::JetContainer > m_jets
Definition: JetTruthTagAlg.h:30
CP::JetTruthTagAlg
An algorithm for tagging reco-jets if they are close enough to a truth jet.
Definition: JetTruthTagAlg.h:20
CP::JetTruthTagAlg::m_decIsHS
std::optional< SG::AuxElement::Decorator< char > > m_decIsHS
Definition: JetTruthTagAlg.h:39
WriteDecorHandleKey.h
JetContainer.h
CP::JetTruthTagAlg::m_puMinDR
Gaudi::Property< float > m_puMinDR
Definition: JetTruthTagAlg.h:36
CP::JetTruthTagAlg::initialize
virtual StatusCode initialize() override
Definition: JetTruthTagAlg.cxx:10
CP::JetTruthTagAlg::m_truthJets
SG::ReadHandleKey< xAOD::JetContainer > m_truthJets
Definition: JetTruthTagAlg.h:31