ATLAS Offline Software
Loading...
Searching...
No Matches
EFMuonMon.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "EFMuonMon.h"
6
7#include "MuonMatchingTool.h"
10
11EFMuonMon::EFMuonMon(const std::string& name, ISvcLocator* pSvcLocator )
12 : TrigMuonMonitorAlgorithm(name, pSvcLocator)
13{}
14
15
18 ATH_CHECK( m_EFSAMuonKey.initialize() );
19 ATH_CHECK( m_EFSAMlbktMuonKey.initialize(!m_EFSAMlbktMuonKey.empty()) );
21 ATH_CHECK( m_EFCBMuonKey.initialize() );
22 ATH_CHECK( m_EFSATrackKey.initialize() );
25 ATH_CHECK( m_EFCBTrackKey.initialize() );
26 ATH_CHECK( m_muonIso30Key.initialize() );
27
28 for( const std::string& chain : m_monitored_chains ){
29 m_doEFSA[chain] = true;
30
31 if(chain.contains("msonly")) m_doEFCB[chain] = false;
32 else m_doEFCB[chain] = true;
33
34 if(chain.contains("ivar")) m_doEFIso[chain] = true;
35 else m_doEFIso[chain] = false;
36 }
37
38 return sc;
39}
40
41
42StatusCode EFMuonMon::fillVariablesPerChain(const EventContext &ctx, const std::string &chain) const {
43
44 ATH_MSG_DEBUG ("Filling histograms for " << name() << "...");
45
46 const float ZERO_LIMIT = 0.00001;
47
48 // EFSA
49 if( m_doEFSA.at(chain) ){
50 std::vector< TrigCompositeUtils::LinkInfo<xAOD::MuonContainer> > featureContSA = getTrigDecisionTool()->features<xAOD::MuonContainer>( chain, TrigDefs::includeFailedDecisions, "HLT_Muons_.*");
51
52 for (const TrigCompositeUtils::LinkInfo<xAOD::MuonContainer>& muSALinkInfo : featureContSA) {
53 ATH_CHECK( muSALinkInfo.isValid() );
54 const ElementLink<xAOD::MuonContainer> muSAEL = muSALinkInfo.link;
55 if ( (*muSAEL)->muonType() != xAOD::Muon::MuonType::MuonStandAlone ) continue;
56
57 auto EFSAPt = Monitored::Scalar<float>(chain+"_EFSA_Pt", -999.);
58 auto EFSAEta = Monitored::Scalar<float>(chain+"_EFSA_Eta", -999.);
59 auto EFSAPhi = Monitored::Scalar<float>(chain+"_EFSA_Phi", -999.);
60
61 EFSAPt = (*muSAEL)->pt()/1e3 * (*muSAEL)->charge();
62 EFSAEta = (*muSAEL)->eta();
63 EFSAPhi = (*muSAEL)->phi();
64
65 fill(m_group+"_"+chain, EFSAPt, EFSAEta, EFSAPhi);
66 }
67 }
68
69
70 // EFCB
71 if( m_doEFCB.at(chain) ){
72 std::vector< TrigCompositeUtils::LinkInfo<xAOD::MuonContainer> > featureContCB = getTrigDecisionTool()->features<xAOD::MuonContainer>( chain, TrigDefs::includeFailedDecisions, "HLT_MuonsCB.*");
73
74 for (const TrigCompositeUtils::LinkInfo<xAOD::MuonContainer>& muCBLinkInfo : featureContCB) {
75 ATH_CHECK( muCBLinkInfo.isValid() );
76 const ElementLink<xAOD::MuonContainer> muCBEL = muCBLinkInfo.link;
77 if ( (*muCBEL)->muonType() != xAOD::Muon::MuonType::Combined ) continue;
78
79 auto EFCBPt = Monitored::Scalar<float>(chain+"_EFCB_Pt", -999.);
80 auto EFCBEta = Monitored::Scalar<float>(chain+"_EFCB_Eta", -999.);
81 auto EFCBPhi = Monitored::Scalar<float>(chain+"_EFCB_Phi", -999.);
82
83 EFCBPt = (*muCBEL)->pt()/1e3 * (*muCBEL)->charge();
84 EFCBEta = (*muCBEL)->eta();
85 EFCBPhi = (*muCBEL)->phi();
86
87 fill(m_group+"_"+chain, EFCBPt, EFCBEta, EFCBPhi);
88 }
89 }
90
91
92 // EFIso
93 if( m_doEFIso.at(chain) ){
94 std::vector< TrigCompositeUtils::LinkInfo<xAOD::MuonContainer> > featureContIso = getTrigDecisionTool()->features<xAOD::MuonContainer>( chain, TrigDefs::includeFailedDecisions, "HLT_MuonsIso");
95 for (const TrigCompositeUtils::LinkInfo<xAOD::MuonContainer>& muIsoLinkInfo : featureContIso) {
96 ATH_CHECK( muIsoLinkInfo.isValid() );
97 const ElementLink<xAOD::MuonContainer> muIsoEL = muIsoLinkInfo.link;
98 if ( (*muIsoEL)->muonType() != xAOD::Muon::MuonType::Combined ) continue;
99
100 // basic variables used decision
101 auto PtCone03 = Monitored::Scalar<float>(chain+"_PtCone03",-999.);
102 auto PtCone03overMuonPt = Monitored::Scalar<float>(chain+"_PtCone03overMuonPt",-999.);
103
105 float ptcone30 = muonIso30(*(*muIsoEL));
106
107 if (ptcone30 > ZERO_LIMIT ){
108 PtCone03 = ptcone30/1e3;
109 PtCone03overMuonPt = ptcone30 / (*muIsoEL)->pt();
110 }
111
112 fill(m_group+"_"+chain, PtCone03, PtCone03overMuonPt);
113 }
114 }
115
116 return StatusCode::SUCCESS;
117}
118
119
120StatusCode EFMuonMon::fillVariablesPerOfflineMuonPerChain(const EventContext &ctx, const xAOD::Muon* mu, const std::string &chain) const {
121
122 ATH_MSG_DEBUG ("Filling histograms for " << name() << "...");
123
124 const float ZERO_LIMIT = 0.00001;
125
126 const xAOD::TrackParticle* OfflineSATrack = mu->trackParticle(xAOD::Muon::TrackParticleType::ExtrapolatedMuonSpectrometerTrackParticle);
127 const xAOD::TrackParticle* OfflineCBTrack = mu->trackParticle(xAOD::Muon::TrackParticleType::CombinedTrackParticle);
128
129
130 // OfflineSA
131 if( m_doEFSA.at(chain) && OfflineSATrack ){
132 auto OfflineSAPt = Monitored::Scalar<float>(chain+"_OfflineSA_Pt",-999.);
133 auto OfflineSAEta = Monitored::Scalar<float>(chain+"_OfflineSA_Eta",-999.);
134 auto OfflineSAPhi = Monitored::Scalar<float>(chain+"_OfflineSA_Phi",-999.);
135
136 auto matchedEFSA = Monitored::Scalar<bool>(chain+"_matchedEFSA",false);
137 auto matchedL2SA = Monitored::Scalar<bool>(chain+"_matchedL2SA",false);
138
139 auto OfflineSAmatchedL2SAPt = Monitored::Scalar<float>(chain+"_OfflineSAmatchedL2SA_Pt",-999.);
140 auto OfflineSAmatchedL2SAEta = Monitored::Scalar<float>(chain+"_OfflineSAmatchedL2SA_Eta",-999.);
141 auto OfflineSAmatchedL2SAPhi = Monitored::Scalar<float>(chain+"_OfflineSAmatchedL2SA_Phi",-999.);
142
143 auto MatchedEFSAPt = Monitored::Scalar<float>(chain+"_MatchedEFSA_Pt",-999.);
144 auto MatchedEFSAEta = Monitored::Scalar<float>(chain+"_MatchedEFSA_Eta",-999.);
145 auto MatchedEFSAPhi = Monitored::Scalar<float>(chain+"_MatchedEFSA_Phi",-999.);
146
147 auto SAdR = Monitored::Scalar<float>(chain+"_SAdR",1000.);
148 auto SAdPt = Monitored::Scalar<float>(chain+"_SAdPt",-999.);
149 auto SAdEta = Monitored::Scalar<float>(chain+"_SAdEta",-999.);
150 auto SAdPhi = Monitored::Scalar<float>(chain+"_SAdPhi",-999.);
151
152 // basic EDM variables
153 OfflineSAPt = OfflineSATrack->pt()/1e3 * OfflineSATrack->charge(); // convert to GeV
154 OfflineSAEta = OfflineSATrack->eta();
155 OfflineSAPhi = OfflineSATrack->phi();
156
157 // correlation histograms EFSA vs. OfflineSA
158 // get the EFSA muon matched to offlineSA muon
159 const TrigCompositeUtils::LinkInfo<xAOD::MuonContainer> EFSAMuonLinkInfo = m_matchTool->matchEFSALinkInfo(mu, chain);
160 if( EFSAMuonLinkInfo.isValid() ){
161 const auto& trkReadHandleKey {chain.contains("newFast") ? m_EFSANewFastTrackKey
162 : (chain.contains("mlbkt") ? m_EFSAMlbktTrackKey : m_EFSATrackKey)};
163 const xAOD::TrackParticle* EFSATrack = m_matchTool->SearchEFTrack(ctx, EFSAMuonLinkInfo, trkReadHandleKey);
164 if ( EFSATrack ){
165 matchedEFSA = true;
166
167 MatchedEFSAPt = EFSATrack->pt()/1e3 * EFSATrack->charge(); // convert to GeV
168 MatchedEFSAEta = EFSATrack->eta();
169 MatchedEFSAPhi = EFSATrack->phi();
170
171 SAdR = xAOD::P4Helpers::deltaR(OfflineSATrack, EFSATrack, false);
172 SAdPt = std::abs(OfflineSAPt) - std::abs(MatchedEFSAPt);
173 SAdEta = OfflineSAEta - MatchedEFSAEta;
174 SAdPhi = OfflineSAPhi - MatchedEFSAPhi;
175
176
177 // correlation histograms offlineSA (matched to EFSA) vs. offlineSA (matched to L2SA)
178 // get L2SA feature
179 const xAOD::Muon *OfflineSAmatchedL2SA {nullptr};
180 if (chain.contains("newFast")) {
181
182 const TrigCompositeUtils::LinkInfo<xAOD::MuonContainer> L2SALinkInfo = m_matchTool->searchFastRecoSALinkInfo(mu, chain);
183 ATH_CHECK( L2SALinkInfo.isValid());
184
185 // get offline muon matched to L2SA
186 const ElementLink<xAOD::MuonContainer> L2SAEL = L2SALinkInfo.link;
187 OfflineSAmatchedL2SA = m_matchTool->matchFastRecoSAtoOff(ctx, (*L2SAEL));
188 } else {
189
190 const TrigCompositeUtils::LinkInfo<xAOD::L2StandAloneMuonContainer> L2SALinkInfo = m_matchTool->searchL2SALinkInfo(mu, chain);
191 ATH_CHECK( L2SALinkInfo.isValid());
192
193 // get offline muon matched to L2SA
194 const ElementLink<xAOD::L2StandAloneMuonContainer> L2SAEL = L2SALinkInfo.link;
195 OfflineSAmatchedL2SA = m_matchTool->matchL2SAtoOff(ctx, (*L2SAEL));
196 }
197
198 if (OfflineSAmatchedL2SA){
199 const xAOD::TrackParticle* OfflineSATrackmatchedL2SA = OfflineSAmatchedL2SA->trackParticle(xAOD::Muon::TrackParticleType::ExtrapolatedMuonSpectrometerTrackParticle);
200 if ( OfflineSATrackmatchedL2SA ){
201 matchedL2SA = true;
202 OfflineSAmatchedL2SAPt = OfflineSATrackmatchedL2SA->pt()/1e3 * OfflineSATrackmatchedL2SA->charge(); // convert to GeV
203 OfflineSAmatchedL2SAEta = OfflineSATrackmatchedL2SA->eta();
204 OfflineSAmatchedL2SAPhi = OfflineSATrackmatchedL2SA->phi();
205 }
206 }
207 }
208 }
209 fill(m_group+"_"+chain, OfflineSAPt, OfflineSAEta, OfflineSAPhi, OfflineSAmatchedL2SAPt, OfflineSAmatchedL2SAEta, OfflineSAmatchedL2SAPhi,
210 MatchedEFSAPt, MatchedEFSAEta, MatchedEFSAPhi, SAdPt, SAdEta, SAdPhi, SAdR, matchedEFSA, matchedL2SA);
211 }
212
213
214 // OfflineCB
215 if( m_doEFCB.at(chain) && OfflineCBTrack ){
216 auto OfflineCBPt = Monitored::Scalar<float>(chain+"_OfflineCB_Pt",-999.);
217 auto OfflineCBEta = Monitored::Scalar<float>(chain+"_OfflineCB_Eta",-999.);
218 auto OfflineCBPhi = Monitored::Scalar<float>(chain+"_OfflineCB_Phi",-999.);
219
220 auto matchedEFCB = Monitored::Scalar<bool>(chain+"_matchedEFCB",false);
221 auto matchedL2CB = Monitored::Scalar<bool>(chain+"_matchedL2CB",false);
222
223 auto OfflineCBmatchedL2CBPt = Monitored::Scalar<float>(chain+"_OfflineCBmatchedL2CB_Pt",-999.);
224 auto OfflineCBmatchedL2CBEta = Monitored::Scalar<float>(chain+"_OfflineCBmatchedL2CB_Eta",-999.);
225 auto OfflineCBmatchedL2CBPhi = Monitored::Scalar<float>(chain+"_OfflineCBmatchedL2CB_Phi",-999.);
226
227 auto MatchedEFCBPt = Monitored::Scalar<float>(chain+"_MatchedEFCB_Pt",-999.);
228 auto MatchedEFCBEta = Monitored::Scalar<float>(chain+"_MatchedEFCB_Eta",-999.);
229 auto MatchedEFCBPhi = Monitored::Scalar<float>(chain+"_MatchedEFCB_Phi",-999.);
230
231 auto CBdR = Monitored::Scalar<float>(chain+"_CBdR",1000.);
232 auto CBdPt = Monitored::Scalar<float>(chain+"_CBdPt",-999.);
233 auto CBdEta = Monitored::Scalar<float>(chain+"_CBdEta",-999.);
234 auto CBdPhi = Monitored::Scalar<float>(chain+"_CBdPhi",-999.);
235
236 // basic EDM variables
237 OfflineCBPt = OfflineCBTrack->pt()/1e3 * OfflineCBTrack->charge(); // convert to GeV
238 OfflineCBEta = OfflineCBTrack->eta();
239 OfflineCBPhi = OfflineCBTrack->phi();
240
241 // correlation histograms EFCB vs. OfflineCB
242 // get the closest EFCB muon
243 const TrigCompositeUtils::LinkInfo<xAOD::MuonContainer> EFCBMuonLinkInfo = m_matchTool->matchEFCBLinkInfo(mu, chain);
244 if( EFCBMuonLinkInfo.isValid() ){
245 const xAOD::TrackParticle* EFCBTrack = m_matchTool->SearchEFTrack(ctx, EFCBMuonLinkInfo, m_EFCBTrackKey);
246 if ( EFCBTrack ){
247 matchedEFCB = true;
248
249 MatchedEFCBPt = EFCBTrack->pt()/1e3 * EFCBTrack->charge(); // convert to GeV
250 MatchedEFCBEta = EFCBTrack->eta();
251 MatchedEFCBPhi = EFCBTrack->phi();
252
253 CBdR = xAOD::P4Helpers::deltaR(OfflineCBTrack, EFCBTrack, false);
254 CBdPt = std::abs(OfflineCBPt) - std::abs(MatchedEFCBPt);
255 CBdEta = OfflineCBEta - MatchedEFCBEta;
256 CBdPhi = OfflineCBPhi - MatchedEFCBPhi;
257
258
259 // correlation histograms offlineCB (matched to EFCB) vs. offlineCB (matched to L2CB)
260 // get L2CB feature
261 const TrigCompositeUtils::Decision* EFCBMuonDecision = EFCBMuonLinkInfo.source;
262 const std::vector<TrigCompositeUtils::LinkInfo<xAOD::L2CombinedMuonContainer>>L2CBLinkInfo = TrigCompositeUtils::findLinks<xAOD::L2CombinedMuonContainer>(ctx, EFCBMuonDecision, "feature");
263 if(L2CBLinkInfo.size() >1) {
264 ATH_MSG_DEBUG("More than one L2CB muon associated to EFCBMuon");
265 }
266 ATH_CHECK( L2CBLinkInfo.at(0).isValid() );
267 const ElementLink<xAOD::L2CombinedMuonContainer> L2CBEL = L2CBLinkInfo.at(0).link;
268
269 // get offline muon matched to L2CB
270 const xAOD::Muon *OfflineCBmatchedL2CB = m_matchTool->matchL2CBtoOff(ctx, (*L2CBEL));
271 if (OfflineCBmatchedL2CB){
272 const xAOD::TrackParticle* OfflineCBTrackmatchedL2CB = OfflineCBmatchedL2CB->trackParticle(xAOD::Muon::TrackParticleType::CombinedTrackParticle);
273 if ( OfflineCBTrackmatchedL2CB ){
274 matchedL2CB = true;
275 OfflineCBmatchedL2CBPt = OfflineCBTrackmatchedL2CB->pt()/1e3 * OfflineCBTrackmatchedL2CB->charge(); // convert to GeV
276 OfflineCBmatchedL2CBEta = OfflineCBTrackmatchedL2CB->eta();
277 OfflineCBmatchedL2CBPhi = OfflineCBTrackmatchedL2CB->phi();
278 }
279 }
280 }
281 }
282 fill(m_group+"_"+chain, OfflineCBPt, OfflineCBEta, OfflineCBPhi, OfflineCBmatchedL2CBPt, OfflineCBmatchedL2CBEta, OfflineCBmatchedL2CBPhi,
283 MatchedEFCBPt, MatchedEFCBEta, MatchedEFCBPhi, CBdPt, CBdEta, CBdPhi, CBdR, matchedEFCB, matchedL2CB);
284 }
285
286
287 // offoine isolation variable
288 float OfflineIsoptcone30=-1.;
289 mu->isolation(OfflineIsoptcone30, xAOD::Iso::IsolationType::ptvarcone30);
290 if ( m_doEFIso.at(chain) && OfflineIsoptcone30 > ZERO_LIMIT ){
291
292 auto OfflineIsoPtCone03 = Monitored::Scalar<float>(chain+"_OfflineIsoPtCone03",-999.);
293 auto OfflineIsoPtCone03overMuonPt = Monitored::Scalar<float>(chain+"_OfflineIsoPtCone03overMuonPt",-999.);
294 auto MatchedEFIsoPtCone03 = Monitored::Scalar<float>(chain+"_MatchedEFPIsotCone03",-999.);
295 auto MatchedEFIsoPtCone03overMuonPt = Monitored::Scalar<float>(chain+"_MatchedEFIsoPtCone03overMuonPt",-999.);
296
297 OfflineIsoPtCone03 = OfflineIsoptcone30/1e3;
298 OfflineIsoPtCone03overMuonPt = OfflineIsoptcone30 / mu->pt();
299
300 // get the closest EFIso muon
301 const TrigCompositeUtils::LinkInfo<xAOD::MuonContainer> EFIsoMuonLinkInfo = m_matchTool->matchEFIsoLinkInfo(mu, chain);
302 if( EFIsoMuonLinkInfo.isValid() ){
303 const ElementLink<xAOD::MuonContainer> EFIsoMuon = EFIsoMuonLinkInfo.link;
304
306 float EFIsoptcone30 = muonIso30(*(*EFIsoMuon));
307
308 if ( EFIsoptcone30 > ZERO_LIMIT ){
309 MatchedEFIsoPtCone03 = EFIsoptcone30/1e3;
310 MatchedEFIsoPtCone03overMuonPt = EFIsoptcone30 / (*EFIsoMuon)->pt();
311 }
312 }
313 fill(m_group+"_"+chain, OfflineIsoPtCone03, OfflineIsoPtCone03overMuonPt, MatchedEFIsoPtCone03, MatchedEFIsoPtCone03overMuonPt);
314 }
315
316 return StatusCode::SUCCESS;
317}
318
319
320StatusCode EFMuonMon::fillVariables(const EventContext &ctx) const {
321
322 ATH_MSG_DEBUG ("Filling histograms for " << name() << "...");
323
325
326 if (!m_EFSAMlbktMuonKey.empty()) {
328 }
329
330 if (!m_EFSANewFastMuonKey.empty()) {
332 }
333
335 return StatusCode::SUCCESS;
336}
337
338
339StatusCode EFMuonMon::fillVariablesPerOfflineMuon(const EventContext &ctx, const xAOD::Muon* mu) const {
340
341 ATH_CHECK( fillVariablesRatioPlots<xAOD::Muon>(ctx, mu, "EFSA", xAOD::Muon::TrackParticleType::ExtrapolatedMuonSpectrometerTrackParticle,
342 [this](const EventContext &c, const xAOD::Muon *m){ return m_matchTool->matchEFSAReadHandle(c,m); }
343 ));
344
345 ATH_CHECK( fillVariablesRatioPlots<xAOD::Muon>(ctx, mu, "EFCB", xAOD::Muon::TrackParticleType::CombinedTrackParticle,
346 [this](const EventContext &c, const xAOD::Muon *m){ return m_matchTool->matchEFCBReadHandle(c,m); }
347 ));
348
349 return StatusCode::SUCCESS;
350}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
static Double_t sc
static const double ZERO_LIMIT
Handle class for reading a decoration on an object.
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool() const
Get the trigger decision tool member.
std::map< std::string, bool > m_doEFCB
Definition EFMuonMon.h:39
virtual StatusCode fillVariablesPerOfflineMuonPerChain(const EventContext &ctx, const xAOD::Muon *mu, const std::string &chain) const override
Function that fills variables of trigger objects associated to specified trigger chains comparing off...
virtual StatusCode fillVariables(const EventContext &ctx) const override
Function that fills variables by just retrieving containers of trigger objects.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_EFSAMlbktTrackKey
Definition EFMuonMon.h:33
SG::ReadHandleKey< xAOD::MuonContainer > m_EFSANewFastMuonKey
Definition EFMuonMon.h:30
SG::ReadHandleKey< xAOD::MuonContainer > m_EFSAMlbktMuonKey
Definition EFMuonMon.h:29
SG::ReadHandleKey< xAOD::MuonContainer > m_EFSAMuonKey
Definition EFMuonMon.h:28
SG::ReadHandleKey< xAOD::MuonContainer > m_EFCBMuonKey
Definition EFMuonMon.h:31
virtual StatusCode fillVariablesPerOfflineMuon(const EventContext &ctx, const xAOD::Muon *mu) const override
Function that fills variables that are compared to offline muons but the trigger chains are not speci...
SG::ReadDecorHandleKey< xAOD::MuonContainer > m_muonIso30Key
Definition EFMuonMon.h:36
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_EFCBTrackKey
Definition EFMuonMon.h:35
EFMuonMon(const std::string &name, ISvcLocator *pSvcLocator)
Definition EFMuonMon.cxx:11
virtual StatusCode fillVariablesPerChain(const EventContext &ctx, const std::string &chain) const override
Function that fills variables of trigger objects associated to specified trigger chains.
Definition EFMuonMon.cxx:42
std::map< std::string, bool > m_doEFIso
Definition EFMuonMon.h:40
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_EFSATrackKey
Definition EFMuonMon.h:32
std::map< std::string, bool > m_doEFSA
Definition EFMuonMon.h:38
virtual StatusCode initialize() override
initialize
Definition EFMuonMon.cxx:16
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_EFSANewFastTrackKey
Definition EFMuonMon.h:34
Declare a monitored scalar variable.
static std::tuple< bool, double, double > trigPosForMatchSATrack(const xAOD::Muon *mu)
static std::tuple< bool, double, double > trigPosForMatchCBTrack(const xAOD::Muon *mu)
Handle class for reading a decoration on an object.
StatusCode fillVariableEtaPhi(const EventContext &ctx, const SG::ReadHandleKey< DataVector< T > > &ReadHandleKey, std::string &&trigstep, std::tuple< bool, double, double >(*PosFunc)(const T *)=&TrigMuonMonitorAlgorithm::defaultPosFunc< T >) const
Function that fills variables of etaphi2D plots.
StatusCode fillVariablesRatioPlots(const EventContext &ctx, const xAOD::Muon *mu, std::string &&trigstep, xAOD::Muon::TrackParticleType type, FUNCT matchFunc) const
Function that fills variables of ratio plots.
Gaudi::Property< std::string > m_group
Name of monitored group.
TrigMuonMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::vector< std::string > > m_monitored_chains
List of trigger chains that are monitored in fillVariablesPerChain and fillVariablesPerOfflineMuonPer...
virtual StatusCode initialize() override
initialize
ToolHandle< MuonMatchingTool > m_matchTool
const TrackParticle * trackParticle(TrackParticleType type) const
Returns a pointer (which can be a nullptr) to the TrackParticle used in identification of this muon.
Definition Muon_v1.cxx:422
virtual double phi() const override final
The azimuthal angle ( ) of the particle (has range to .).
virtual double pt() const override final
The transverse momentum ( ) of the particle.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
float charge() const
Returns the charge.
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > &&variables) const
Fills a vector of variables to a group by reference.
xAOD::TrigComposite Decision
void findLinks(const EventContext &ctx, const Decision *start, const std::string &linkName, std::vector< LinkInfo< T > > &links, unsigned int behaviour=TrigDefs::allFeaturesOfType, std::set< const xAOD::TrigComposite * > *fullyExploredFrom=nullptr)
search back the TC links for the object of type T linked to the one of TC (recursively) Populates pro...
static const unsigned int includeFailedDecisions
Run3 synonym of alsoDeactivateTEs.
double deltaR(double rapidity1, double phi1, double rapidity2, double phi2)
from bare bare rapidity,phi
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Muon_v1 Muon
Reference the current persistent version:
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".
Helper to keep a Decision object, ElementLink and ActiveState (with respect to some requested ChainGr...
Definition LinkInfo.h:22
const Decision * source
The node in the NavGraph for this feature.
Definition LinkInfo.h:53
ElementLink< T > link
Link to the feature.
Definition LinkInfo.h:55