ATLAS Offline Software
Loading...
Searching...
No Matches
MlMuonDVtxHypoTool.cxx
Go to the documentation of this file.
1
2/*
3Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
4*/
5
7
8
10
11using namespace TrigCompositeUtils;
12
14 const std::string& name,
15 const IInterface* parent )
16 : AthAlgTool( type, name, parent ),
17 m_decisionId( HLT::Identifier::fromToolName( name ) ) {}
18
19StatusCode 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}
#define ATH_MSG_DEBUG(x,...)
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
MlMuonDVtxHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
HLT::Identifier m_decisionId
Gaudi::Property< float > m_scoreCut
StatusCode decide(Info &info) const
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.