ATLAS Offline Software
TrigL1FexJetMonitorTool.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2022 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 : virtual public AthAlgTool,
22  virtual public 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
33  queryInterface( const InterfaceID& riid, void** ppvIf ) override;
34 
35 
36  virtual StatusCode initialize() override;
37 
38  virtual StatusCode
39  getData(const EventContext& ctx,
40  std::vector<JetData>& jetData) const override;
41 
42  virtual StatusCode
43  getMatchData(const EventContext& ctx,
44  MatchToEnum,
45  std::vector<JetMatchData>& jetData) const override;
46 
47 private:
48 
49  // initialisation using an initialise list ie {...}
50  // does not work - sommrthing to do with the template.
51  // intstead use declareProperty in the constructor.
53 
54  // Variables to add matched histograms
55  Gaudi::Property<bool> m_doMatching {
56  this, "do_matching", false,
57  "Plotting response histograms for L1 jets matched to online/offline jets"};
58 
59  Gaudi::Property<std::string> m_offlineJetContainerToMatch {
60  this, "offlineJetsToMatch", "",
61  "Name of matched offline jet collection"};
62 
63  Gaudi::Property<std::string> m_HLTJetContainerToMatch {
64  this, "HLTJetsToMatch", "", "Name of matched HLT jet collection"};
65 
67  this, "offmatched", "offmatched", "SG key for input matched decoration"};
68 
70  this, "offptdiff", "offptdiff",
71  "SG key for input matched ptdiff decoration"};
72 
74  this, "offenergydiff", "offenergydiff",
75  "SG key for input matched energydiff decoration"};
76 
78  this, "offmassdiff", "offmassdiff",
79  "SG key for input matched massdiff decoration"};
80 
82  this, "offptresp", "offptresp",
83  "SG key for input matched ptresp decoration"};
84 
86  this, "offenergyresp", "offenergyresp",
87  "SG key for input matched energyresp decoration"};
88 
90  this, "offmassresp", "offmassresp",
91  "SG key for input matched massresp decoration"};
92 
94  this, "offptref", "offptref",
95  "SG key for input matched ptref decoration"};
96 
98  this, "offetaref", "offetaref",
99  "SG key for input matched etaref decoration"};
100 
102  this, "hltmatched", "hltmatched", "SG key for input matched decoration"};
103 
105  this, "hltptdiff", "hltptdiff",
106  "SG key for input matched ptdiff decoration"};
107 
109  this, "hltenergydiff", "hltenergydiff",
110  "SG key for input matched energydiff decoration"};
111 
113  this, "hltmassdiff", "hltmassdiff",
114  "SG key for input matched massdiff decoration"};
115 
117  this, "hltptresp", "hltptresp",
118  "SG key for input matched ptresp decoration"};
119 
121  this, "hltenergyresp", "hltenergyresp",
122  "SG key for input matched energyresp decoration"};
123 
125  this, "hltmassresp", "hltmassresp",
126  "SG key for input matched massresp decoration"};
127 
129  this, "hltptref", "hltptref",
130  "SG key for input matched ptref decoration"};
131 
133  this, "hltetaref", "hltetaref",
134  "SG key for input matched etaref decoration"};
135 
136 };
137 
138 #endif
139 
TrigL1FexJetMonitorTool::JetContainer
T::JetContainer JetContainer
Definition: TrigL1FexJetMonitorTool.h:26
TrigL1FexJetMonitorTool::m_offmatchedKey
SG::ReadDecorHandleKey< JetContainer > m_offmatchedKey
Definition: TrigL1FexJetMonitorTool.h:66
TrigL1FexJetMonitorTool::m_hltenergydiffKey
SG::ReadDecorHandleKey< JetContainer > m_hltenergydiffKey
Definition: TrigL1FexJetMonitorTool.h:108
TrigL1FexJetMonitorTool::m_hltetarefKey
SG::ReadDecorHandleKey< JetContainer > m_hltetarefKey
Definition: TrigL1FexJetMonitorTool.h:132
TrigL1FexJetMonitorTool::m_l1jetContainerkey
SG::ReadHandleKey< JetContainer > m_l1jetContainerkey
Definition: TrigL1FexJetMonitorTool.h:52
TrigL1FexJetMonitorTool::m_offptrefKey
SG::ReadDecorHandleKey< JetContainer > m_offptrefKey
Definition: TrigL1FexJetMonitorTool.h:93
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:104
TrigL1FexJetMonitorTool::getMatchData
virtual StatusCode getMatchData(const EventContext &ctx, MatchToEnum, std::vector< JetMatchData > &jetData) const override
Definition: TrigL1FexJetMonitorTool.cxx:196
TrigL1FexJetMonitorTool::queryInterface
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvIf) override
Definition: TrigL1FexJetMonitorTool.cxx:31
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:89
TrigL1FexJetMonitorTool::m_doMatching
Gaudi::Property< bool > m_doMatching
Definition: TrigL1FexJetMonitorTool.h:55
AthAlgTool.h
TrigL1FexJetMonitorTool::m_hltptrefKey
SG::ReadDecorHandleKey< JetContainer > m_hltptrefKey
Definition: TrigL1FexJetMonitorTool.h:128
TrigL1FexJetMonitorTool::m_hltptrespKey
SG::ReadDecorHandleKey< JetContainer > m_hltptrespKey
Definition: TrigL1FexJetMonitorTool.h:116
ITrigJetMonitorTool.h
TrigL1FexJetMonitorTool
Definition: TrigL1FexJetMonitorTool.h:22
TrigL1FexJetMonitorTool::getData
virtual StatusCode getData(const EventContext &ctx, std::vector< JetData > &jetData) const override
Definition: TrigL1FexJetMonitorTool.cxx:157
TrigL1FexJetMonitorTool::m_offptdiffKey
SG::ReadDecorHandleKey< JetContainer > m_offptdiffKey
Definition: TrigL1FexJetMonitorTool.h:69
TrigL1FexJetMonitorTool::m_hltmatchedKey
SG::ReadDecorHandleKey< JetContainer > m_hltmatchedKey
Definition: TrigL1FexJetMonitorTool.h:101
TrigL1FexJetMonitorTool::initialize
virtual StatusCode initialize() override
Definition: TrigL1FexJetMonitorTool.cxx:45
TrigL1FexJetMonitorTool::m_offetarefKey
SG::ReadDecorHandleKey< JetContainer > m_offetarefKey
Definition: TrigL1FexJetMonitorTool.h:97
ITrigJetMonitorTool
Definition: ITrigJetMonitorTool.h:22
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:124
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:81
AthAlgTool
Definition: AthAlgTool.h:26
SG::ReadDecorHandleKey< JetContainer >
TrigL1FexJetMonitorTool::m_offenergyrespKey
SG::ReadDecorHandleKey< JetContainer > m_offenergyrespKey
Definition: TrigL1FexJetMonitorTool.h:85
TrigL1FexJetMonitorTool::m_hltmassdiffKey
SG::ReadDecorHandleKey< JetContainer > m_hltmassdiffKey
Definition: TrigL1FexJetMonitorTool.h:112
TrigL1FexJetMonitorTool::m_hltenergyrespKey
SG::ReadDecorHandleKey< JetContainer > m_hltenergyrespKey
Definition: TrigL1FexJetMonitorTool.h:120
TrigL1FexJetMonitorTool::m_offenergydiffKey
SG::ReadDecorHandleKey< JetContainer > m_offenergydiffKey
Definition: TrigL1FexJetMonitorTool.h:73
TrigL1FexJetMonitorTool::m_offlineJetContainerToMatch
Gaudi::Property< std::string > m_offlineJetContainerToMatch
Definition: TrigL1FexJetMonitorTool.h:59
TrigL1FexJetMonitorTool::m_offmassdiffKey
SG::ReadDecorHandleKey< JetContainer > m_offmassdiffKey
Definition: TrigL1FexJetMonitorTool.h:77
TrigL1FexJetMonitorTool::m_HLTJetContainerToMatch
Gaudi::Property< std::string > m_HLTJetContainerToMatch
Definition: TrigL1FexJetMonitorTool.h:63