ATLAS Offline Software
TrigL1FexJetMonitorTool.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef TRIGJETMONITORING_TRIGL1JETFEXMONITORTOOL_H
8 #define TRIGJETMONITORING_TRIGL1JETFEXMONITORTOOL_H
9 
12 
14 
15 #include <string>
16 
18 
19 // Template paramter must provide a name T::JetContainer
20 template<typename T>
21 class TrigL1FexJetMonitorTool : public extends<AthAlgTool,
22  ITrigJetMonitorTool> {
23 
24 public:
25 
26  typedef typename T::JetContainer JetContainer;
27 
28  TrigL1FexJetMonitorTool(const std::string&,
29  const std::string&,
30  const IInterface*);
31 
32  virtual StatusCode initialize() override;
33 
34  virtual StatusCode
35  getData(const EventContext& ctx,
36  std::vector<JetData>& jetData) const override;
37 
38  virtual StatusCode
39  getMatchData(const EventContext& ctx,
40  MatchToEnum,
41  std::vector<JetMatchData>& jetData) const override;
42 
43 private:
44 
45  // initialisation using an initialise list ie {...}
46  // does not work - sommrthing to do with the template.
47  // intstead use declareProperty in the constructor.
49 
50  // Variables to add matched histograms
51  Gaudi::Property<bool> m_doMatching {
52  this, "do_matching", false,
53  "Plotting response histograms for L1 jets matched to online/offline jets"};
54 
55  Gaudi::Property<std::string> m_offlineJetContainerToMatch {
56  this, "offlineJetsToMatch", "",
57  "Name of matched offline jet collection"};
58 
59  Gaudi::Property<std::string> m_HLTJetContainerToMatch {
60  this, "HLTJetsToMatch", "", "Name of matched HLT jet collection"};
61 
63  this, "offmatched", "offmatched", "SG key for input matched decoration"};
64 
66  this, "offptdiff", "offptdiff",
67  "SG key for input matched ptdiff decoration"};
68 
70  this, "offenergydiff", "offenergydiff",
71  "SG key for input matched energydiff decoration"};
72 
74  this, "offmassdiff", "offmassdiff",
75  "SG key for input matched massdiff decoration"};
76 
78  this, "offptresp", "offptresp",
79  "SG key for input matched ptresp decoration"};
80 
82  this, "offenergyresp", "offenergyresp",
83  "SG key for input matched energyresp decoration"};
84 
86  this, "offmassresp", "offmassresp",
87  "SG key for input matched massresp decoration"};
88 
90  this, "offptref", "offptref",
91  "SG key for input matched ptref decoration"};
92 
94  this, "offetaref", "offetaref",
95  "SG key for input matched etaref decoration"};
96 
98  this, "hltmatched", "hltmatched", "SG key for input matched decoration"};
99 
101  this, "hltptdiff", "hltptdiff",
102  "SG key for input matched ptdiff decoration"};
103 
105  this, "hltenergydiff", "hltenergydiff",
106  "SG key for input matched energydiff decoration"};
107 
109  this, "hltmassdiff", "hltmassdiff",
110  "SG key for input matched massdiff decoration"};
111 
113  this, "hltptresp", "hltptresp",
114  "SG key for input matched ptresp decoration"};
115 
117  this, "hltenergyresp", "hltenergyresp",
118  "SG key for input matched energyresp decoration"};
119 
121  this, "hltmassresp", "hltmassresp",
122  "SG key for input matched massresp decoration"};
123 
125  this, "hltptref", "hltptref",
126  "SG key for input matched ptref decoration"};
127 
129  this, "hltetaref", "hltetaref",
130  "SG key for input matched etaref decoration"};
131 
132 };
133 
134 #endif
135 
TrigL1FexJetMonitorTool::JetContainer
T::JetContainer JetContainer
Definition: TrigL1FexJetMonitorTool.h:26
TrigL1FexJetMonitorTool::m_offmatchedKey
SG::ReadDecorHandleKey< JetContainer > m_offmatchedKey
Definition: TrigL1FexJetMonitorTool.h:62
TrigL1FexJetMonitorTool::m_hltenergydiffKey
SG::ReadDecorHandleKey< JetContainer > m_hltenergydiffKey
Definition: TrigL1FexJetMonitorTool.h:104
TrigL1FexJetMonitorTool::m_hltetarefKey
SG::ReadDecorHandleKey< JetContainer > m_hltetarefKey
Definition: TrigL1FexJetMonitorTool.h:128
TrigL1FexJetMonitorTool::m_l1jetContainerkey
SG::ReadHandleKey< JetContainer > m_l1jetContainerkey
Definition: TrigL1FexJetMonitorTool.h:48
TrigL1FexJetMonitorTool::m_offptrefKey
SG::ReadDecorHandleKey< JetContainer > m_offptrefKey
Definition: TrigL1FexJetMonitorTool.h:89
SG::ReadHandleKey< JetContainer >
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
TrigL1FexJetMonitorTool::m_hltptdiffKey
SG::ReadDecorHandleKey< JetContainer > m_hltptdiffKey
Definition: TrigL1FexJetMonitorTool.h:100
TrigL1FexJetMonitorTool::getMatchData
virtual StatusCode getMatchData(const EventContext &ctx, MatchToEnum, std::vector< JetMatchData > &jetData) const override
Definition: TrigL1FexJetMonitorTool.cxx:182
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrigL1FexJetMonitorTool::m_offmassrespKey
SG::ReadDecorHandleKey< JetContainer > m_offmassrespKey
Definition: TrigL1FexJetMonitorTool.h:85
TrigL1FexJetMonitorTool::m_doMatching
Gaudi::Property< bool > m_doMatching
Definition: TrigL1FexJetMonitorTool.h:51
AthAlgTool.h
TrigL1FexJetMonitorTool::m_hltptrefKey
SG::ReadDecorHandleKey< JetContainer > m_hltptrefKey
Definition: TrigL1FexJetMonitorTool.h:124
TrigL1FexJetMonitorTool::m_hltptrespKey
SG::ReadDecorHandleKey< JetContainer > m_hltptrespKey
Definition: TrigL1FexJetMonitorTool.h:112
ITrigJetMonitorTool.h
TrigL1FexJetMonitorTool
Definition: TrigL1FexJetMonitorTool.h:22
TrigL1FexJetMonitorTool::getData
virtual StatusCode getData(const EventContext &ctx, std::vector< JetData > &jetData) const override
Definition: TrigL1FexJetMonitorTool.cxx:143
TrigL1FexJetMonitorTool::m_offptdiffKey
SG::ReadDecorHandleKey< JetContainer > m_offptdiffKey
Definition: TrigL1FexJetMonitorTool.h:65
TrigL1FexJetMonitorTool::m_hltmatchedKey
SG::ReadDecorHandleKey< JetContainer > m_hltmatchedKey
Definition: TrigL1FexJetMonitorTool.h:97
TrigL1FexJetMonitorTool::initialize
virtual StatusCode initialize() override
Definition: TrigL1FexJetMonitorTool.cxx:31
TrigL1FexJetMonitorTool::m_offetarefKey
SG::ReadDecorHandleKey< JetContainer > m_offetarefKey
Definition: TrigL1FexJetMonitorTool.h:93
TrigL1FexJetMonitorTool::TrigL1FexJetMonitorTool
TrigL1FexJetMonitorTool(const std::string &, const std::string &, const IInterface *)
Definition: TrigL1FexJetMonitorTool.cxx:19
TrigL1FexJetMonitorTool::m_hltmassrespKey
SG::ReadDecorHandleKey< JetContainer > m_hltmassrespKey
Definition: TrigL1FexJetMonitorTool.h:120
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition: JetContainer.h:17
MatchToEnum
MatchToEnum
Definition: ITrigJetMonitorTool.h:17
TrigL1FexJetMonitorTool::m_offptrespKey
SG::ReadDecorHandleKey< JetContainer > m_offptrespKey
Definition: TrigL1FexJetMonitorTool.h:77
SG::ReadDecorHandleKey< JetContainer >
TrigL1FexJetMonitorTool::m_offenergyrespKey
SG::ReadDecorHandleKey< JetContainer > m_offenergyrespKey
Definition: TrigL1FexJetMonitorTool.h:81
TrigL1FexJetMonitorTool::m_hltmassdiffKey
SG::ReadDecorHandleKey< JetContainer > m_hltmassdiffKey
Definition: TrigL1FexJetMonitorTool.h:108
TrigL1FexJetMonitorTool::m_hltenergyrespKey
SG::ReadDecorHandleKey< JetContainer > m_hltenergyrespKey
Definition: TrigL1FexJetMonitorTool.h:116
TrigL1FexJetMonitorTool::m_offenergydiffKey
SG::ReadDecorHandleKey< JetContainer > m_offenergydiffKey
Definition: TrigL1FexJetMonitorTool.h:69
TrigL1FexJetMonitorTool::m_offlineJetContainerToMatch
Gaudi::Property< std::string > m_offlineJetContainerToMatch
Definition: TrigL1FexJetMonitorTool.h:55
TrigL1FexJetMonitorTool::m_offmassdiffKey
SG::ReadDecorHandleKey< JetContainer > m_offmassdiffKey
Definition: TrigL1FexJetMonitorTool.h:73
TrigL1FexJetMonitorTool::m_HLTJetContainerToMatch
Gaudi::Property< std::string > m_HLTJetContainerToMatch
Definition: TrigL1FexJetMonitorTool.h:59