20 const std::string&
name,
33 ATH_CHECK(m_l1jetContainerkey.initialize());
37 m_l1jetContainerkey.key() +
".matched_" + m_offlineJetContainerToMatch;
40 m_l1jetContainerkey.key() +
".ptdiff_" + m_offlineJetContainerToMatch;
43 m_l1jetContainerkey.key() +
".energydiff_" + m_offlineJetContainerToMatch;
46 m_l1jetContainerkey.key() +
".massdiff_" + m_offlineJetContainerToMatch;
49 m_l1jetContainerkey.key() +
".ptresp_" + m_offlineJetContainerToMatch;
52 m_l1jetContainerkey.key() +
".energyresp_" + m_offlineJetContainerToMatch;
55 m_l1jetContainerkey.key() +
".massresp_" + m_offlineJetContainerToMatch;
58 m_l1jetContainerkey.key() +
".ptRef_" + m_offlineJetContainerToMatch;
61 m_l1jetContainerkey.key() +
".etaRef_" + m_offlineJetContainerToMatch;
65 ATH_CHECK(m_offenergydiffKey.initialize() );
66 ATH_CHECK(m_offmassdiffKey.initialize() );
68 ATH_CHECK(m_offenergyrespKey.initialize() );
69 ATH_CHECK(m_offmassrespKey.initialize() );
74 m_l1jetContainerkey.key() +
".matched_" + m_HLTJetContainerToMatch;
77 m_l1jetContainerkey.key() +
".ptdiff_" + m_HLTJetContainerToMatch;
80 m_l1jetContainerkey.key() +
".energydiff_" + m_HLTJetContainerToMatch;
83 m_l1jetContainerkey.key() +
".massdiff_" + m_HLTJetContainerToMatch;
86 m_l1jetContainerkey.key() +
".ptresp_" + m_HLTJetContainerToMatch;
89 m_l1jetContainerkey.key() +
".energyresp_" + m_HLTJetContainerToMatch;
92 m_l1jetContainerkey.key() +
".massresp_" + m_HLTJetContainerToMatch;
95 m_l1jetContainerkey.key() +
".ptRef_" + m_HLTJetContainerToMatch;
98 m_l1jetContainerkey.key() +
".etaRef_" + m_HLTJetContainerToMatch;
102 ATH_CHECK(m_hltenergydiffKey.initialize());
103 ATH_CHECK(m_hltmassdiffKey.initialize());
105 ATH_CHECK(m_hltenergyrespKey.initialize());
106 ATH_CHECK(m_hltmassrespKey.initialize());
114 ATH_CHECK(m_offmatchedKey.initialize(
false));
115 ATH_CHECK(m_offptdiffKey.initialize(
false));
116 ATH_CHECK(m_offenergydiffKey.initialize(
false));
117 ATH_CHECK(m_offmassdiffKey.initialize(
false));
118 ATH_CHECK(m_offptrespKey.initialize(
false));
119 ATH_CHECK(m_offenergyrespKey.initialize(
false));
120 ATH_CHECK(m_offmassrespKey.initialize(
false));
121 ATH_CHECK(m_offptrefKey.initialize(
false));
122 ATH_CHECK(m_offetarefKey.initialize(
false));
125 ATH_CHECK(m_hltmatchedKey.initialize(
false));
126 ATH_CHECK(m_hltptdiffKey.initialize(
false));
127 ATH_CHECK(m_hltenergydiffKey.initialize(
false));
128 ATH_CHECK(m_hltmassdiffKey.initialize(
false));
129 ATH_CHECK(m_hltptrespKey.initialize(
false));
130 ATH_CHECK(m_hltenergyrespKey.initialize(
false));
131 ATH_CHECK(m_hltmassrespKey.initialize(
false));
132 ATH_CHECK(m_hltptrefKey.initialize(
false));
133 ATH_CHECK(m_hltetarefKey.initialize(
false));
136 return StatusCode::SUCCESS;
144 std::vector<JetData>& jetData
150 if( !
jets.isValid() ){
152 ATH_MSG_WARNING(
"evtStore() does not contain the L1 jet collection with name "
153 << m_l1jetContainerkey);
154 return StatusCode::SUCCESS;
169 jetData.emplace_back(
et(
jet)*0.001,
175 return StatusCode::SUCCESS;
184 std::vector<JetMatchData>& jetMatchData
188 return StatusCode::SUCCESS;
191 std::unique_ptr<SG::ReadDecorHandle<JetContainer, char>> matchedHandle;
192 std::unique_ptr<SG::ReadDecorHandle<JetContainer, double>> ptdiffHandle;
193 std::unique_ptr<SG::ReadDecorHandle<JetContainer, double>> energydiffHandle;
194 std::unique_ptr<SG::ReadDecorHandle<JetContainer, double>> massdiffHandle;
195 std::unique_ptr<SG::ReadDecorHandle<JetContainer, double>> ptrespHandle;
196 std::unique_ptr<SG::ReadDecorHandle<JetContainer, double>> energyrespHandle;
197 std::unique_ptr<SG::ReadDecorHandle<JetContainer, double>> massrespHandle;
198 std::unique_ptr<SG::ReadDecorHandle<JetContainer, double>> ptrefHandle;
199 std::unique_ptr<SG::ReadDecorHandle<JetContainer, double>> etarefHandle;
224 return StatusCode::FAILURE;
227 ATH_CHECK((*matchedHandle).initialize());
229 ATH_CHECK((*energydiffHandle).initialize());
230 ATH_CHECK((*massdiffHandle).initialize());
232 ATH_CHECK((*energyrespHandle).initialize());
233 ATH_CHECK((*massrespHandle).initialize());
245 ATH_MSG_WARNING(
"evtStore() does not contain the L1 jet collection with name "
246 << m_l1jetContainerkey);
247 return StatusCode::SUCCESS;
251 bool matched = (*matchedHandle)(*jet);
254 jetMatchData.emplace_back((*ptdiffHandle)(*
jet),
255 (*energydiffHandle)(*
jet),
256 (*massdiffHandle)(*
jet),
257 (*ptrespHandle)(*
jet),
258 (*energyrespHandle)(*
jet),
259 (*massrespHandle)(*
jet),
260 (*ptrefHandle)(*
jet),
261 (*etarefHandle)(*
jet));
265 return StatusCode::SUCCESS;