ATLAS Offline Software
Loading...
Searching...
No Matches
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
20template<typename T>
21class TrigL1FexJetMonitorTool : public extends<AthAlgTool,
22 ITrigJetMonitorTool> {
23
24public:
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,
41 std::vector<JetMatchData>& jetData) const override;
42
43private:
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
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
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.
Gaudi::Property< std::string > m_offlineJetContainerToMatch
SG::ReadDecorHandleKey< JetContainer > m_hltmassrespKey
SG::ReadDecorHandleKey< JetContainer > m_offmatchedKey
SG::ReadDecorHandleKey< JetContainer > m_offptrefKey
Gaudi::Property< std::string > m_HLTJetContainerToMatch
SG::ReadDecorHandleKey< JetContainer > m_offetarefKey
SG::ReadDecorHandleKey< JetContainer > m_hltptdiffKey
SG::ReadDecorHandleKey< JetContainer > m_hltmassdiffKey
SG::ReadDecorHandleKey< JetContainer > m_hltptrespKey
virtual StatusCode getData(const EventContext &ctx, std::vector< JetData > &jetData) const override
SG::ReadDecorHandleKey< JetContainer > m_hltenergyrespKey
SG::ReadDecorHandleKey< JetContainer > m_hltenergydiffKey
SG::ReadDecorHandleKey< JetContainer > m_offptrespKey
virtual StatusCode initialize() override
SG::ReadDecorHandleKey< JetContainer > m_offmassdiffKey
SG::ReadDecorHandleKey< JetContainer > m_hltmatchedKey
SG::ReadDecorHandleKey< JetContainer > m_hltetarefKey
virtual StatusCode getMatchData(const EventContext &ctx, MatchToEnum, std::vector< JetMatchData > &jetData) const override
TrigL1FexJetMonitorTool(const std::string &, const std::string &, const IInterface *)
SG::ReadDecorHandleKey< JetContainer > m_offenergyrespKey
SG::ReadDecorHandleKey< JetContainer > m_offmassrespKey
SG::ReadDecorHandleKey< JetContainer > m_offenergydiffKey
SG::ReadDecorHandleKey< JetContainer > m_offptdiffKey
SG::ReadDecorHandleKey< JetContainer > m_hltptrefKey
SG::ReadHandleKey< JetContainer > m_l1jetContainerkey
Gaudi::Property< bool > m_doMatching