ATLAS Offline Software
Loading...
Searching...
No Matches
JetPileupLabelingTool.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 PARTICLEJETTOOLS_JETPILEUPLABELINGTOOL_H
6#define PARTICLEJETTOOLS_JETPILEUPLABELINGTOOL_H
7
8#include "AsgTools/AsgTool.h"
13
18
19
21 public asg::AsgTool,
22 virtual public IJetDecorator
23{
25
26public:
27
28 // Apparently this defines a constructor
30
31 virtual StatusCode initialize() override;
32
34 StatusCode decorate(const xAOD::JetContainer& jets) const override;
35
37 void print() const override;
38
39private:
40
41 Gaudi::Property<std::string> m_jetContainerName{this, "RecoJetContainer", "AntiKt4EMPFlowJets", "Input reco jet container name"};
42
43 Gaudi::Property<bool> m_suppressOutputDeps{this, "SuppressOutputDependence", false, "Ignore creating the output decoration dependency for data flow; for analysis"};
44
45 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"};
46 Gaudi::Property<float> m_hsMinPt{this, "isHSMinPt", 10e3, "Only consider truth jets above this pT for HS tagging"};
47 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"};
48 Gaudi::Property<float> m_puMinPt{this, "isPUMinPt", 0, "Only consider truth jets above this pT to veto jets for being PU tagged"};
49
50 SG::ReadHandleKey<xAOD::JetContainer> m_truthJetsKey{this, "TruthJetContainer", "AntiKt4TruthDressedWZJets", "SG key for input Truth HS jets"};
51
52 SG::WriteDecorHandleKey<xAOD::JetContainer> m_decIsHSKey{this, "isHSLabel", "isJvtHS", "SG key for label of HS jets"};
53 SG::WriteDecorHandleKey<xAOD::JetContainer> m_decIsPUKey{this, "isPULabel", "isJvtPU", "SG key for label of PU jets"};
54
55};
56
57#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Interface for adding a decoration to a jet container.
Gaudi::Property< float > m_hsMinPt
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
SG::ReadHandleKey< xAOD::JetContainer > m_truthJetsKey
void print() const override
Print configured parameters.
Gaudi::Property< float > m_puMinPt
StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate hard-scatter and pileup labels to a jet collection.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decIsPUKey
Gaudi::Property< float > m_hsMaxDR
Gaudi::Property< float > m_puMinDR
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decIsHSKey
Gaudi::Property< std::string > m_jetContainerName
Gaudi::Property< bool > m_suppressOutputDeps
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition AsgTool.cxx:58
JetContainer_v1 JetContainer
Definition of the current "jet container version".