ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigHypothesis
TrigLongLivedParticlesHypo
src
MlMuonDVtxHypoTool.cxx
Go to the documentation of this file.
1
2
/*
3
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
4
*/
5
6
#include "
MlMuonDVtxHypoTool.h
"
7
8
9
#include "
TrigCompositeUtils/TrigCompositeUtils.h
"
10
11
using namespace
TrigCompositeUtils
;
12
13
MlMuonDVtxHypoTool::MlMuonDVtxHypoTool
(
const
std::string&
type
,
14
const
std::string& name,
15
const
IInterface* parent )
16
:
AthAlgTool
(
type
, name, parent ),
17
m_decisionId
(
HLT
::
Identifier
::fromToolName( name ) ) {}
18
19
StatusCode
MlMuonDVtxHypoTool::decide
(
Info
& info)
const
{
20
21
if
(info.activeChainIDs.count(
m_decisionId
.numeric()) == 0) {
22
ATH_MSG_DEBUG
(
"Chain ID "
<<
m_decisionId
.numeric() <<
" not active for this event, skipping"
);
23
return
StatusCode::SUCCESS;
24
}
25
26
if
(info.score <
m_scoreCut
) {
27
ATH_MSG_DEBUG
(
"Failing score cut: "
<< info.score <<
" < "
<<
m_scoreCut
);
28
return
StatusCode::SUCCESS;
29
}
30
ATH_MSG_DEBUG
(
"Passing score cut: "
<< info.score <<
" >= "
<<
m_scoreCut
);
31
addDecisionID
(
m_decisionId
.numeric(), info.outDecision);
32
33
return
StatusCode::SUCCESS;
34
}
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x,...)
Definition
AthMsgStreamMacros.h:43
MlMuonDVtxHypoTool.h
TrigCompositeUtils.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
MlMuonDVtxHypoTool::MlMuonDVtxHypoTool
MlMuonDVtxHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
MlMuonDVtxHypoTool.cxx:13
MlMuonDVtxHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition
MlMuonDVtxHypoTool.h:33
MlMuonDVtxHypoTool::m_scoreCut
Gaudi::Property< float > m_scoreCut
Definition
MlMuonDVtxHypoTool.h:34
MlMuonDVtxHypoTool::decide
StatusCode decide(Info &info) const
Definition
MlMuonDVtxHypoTool.cxx:19
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition
HLTResultReader.h:26
Identifier
Definition
IdentifierFieldParser.cxx:14
TrigCompositeUtils
Definition
TrigComposite.h:19
TrigCompositeUtils::addDecisionID
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
Definition
TrigCompositeUtilsRoot.cxx:59
MlMuonDVtxHypoTool::Info
Definition
MlMuonDVtxHypoTool.h:24
type
Generated on
for ATLAS Offline Software by
1.17.0