ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigHypothesis
TrigTauHypo
src
TrigTauTrackingHypoTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigCompositeUtils/TrigCompositeUtils.h
"
6
#include "
xAODTracking/TrackParticleContainer.h
"
7
8
#include "
TrigTauTrackingHypoTool.h
"
9
10
11
using namespace
TrigCompositeUtils
;
12
13
TrigTauTrackingHypoTool::TrigTauTrackingHypoTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent)
14
: base_class(
type
, name, parent),
m_decisionId
(
HLT
::
Identifier
::fromToolName(name))
15
{
16
17
}
18
19
20
StatusCode
TrigTauTrackingHypoTool::initialize
()
21
{
22
ATH_MSG_DEBUG
(
"Tool configured for chain/id: "
<<
m_decisionId
);
23
24
return
StatusCode::SUCCESS;
25
}
26
27
28
bool
TrigTauTrackingHypoTool::decide
(
const
ITrigTauTrackingHypoTool::ToolInfo
& input)
const
29
{
30
// Get RoI descriptor
31
ATH_MSG_DEBUG
(
"Input RoI eta: "
<< input.roi->eta() <<
", phi: "
<< input.roi->phi() <<
", z: "
<< input.roi->zed());
32
33
// Check the input track collection
34
if
(input.trackParticles)
ATH_MSG_DEBUG
(
"Input Tracks collection has size: "
<< input.trackParticles->size());
35
else
ATH_MSG_WARNING
(
"No input Tracks collection!"
);
36
37
// This is (for now) a dummy step, so we return an always passing decision
38
return
true
;
39
}
40
41
42
StatusCode
TrigTauTrackingHypoTool::decide
(std::vector<ITrigTauTrackingHypoTool::ToolInfo>& input)
const
43
{
44
for
(
ITrigTauTrackingHypoTool::ToolInfo
& i : input) {
45
if
(
passed
(
m_decisionId
.numeric(), i.previousDecisionIDs)) {
46
if
(
decide
(i)) {
47
addDecisionID
(
m_decisionId
, i.decision);
48
}
49
}
50
}
51
52
return
StatusCode::SUCCESS;
53
}
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x,...)
Definition
AthMsgStreamMacros.h:43
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x,...)
Definition
AthMsgStreamMacros.h:46
TrackParticleContainer.h
TrigCompositeUtils.h
TrigTauTrackingHypoTool.h
TrigTauTrackingHypoTool::initialize
virtual StatusCode initialize() override
Definition
TrigTauTrackingHypoTool.cxx:20
TrigTauTrackingHypoTool::decide
virtual StatusCode decide(std::vector< ITrigTauTrackingHypoTool::ToolInfo > &input) const override
Definition
TrigTauTrackingHypoTool.cxx:42
TrigTauTrackingHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition
TrigTauTrackingHypoTool.h:30
TrigTauTrackingHypoTool::TrigTauTrackingHypoTool
TrigTauTrackingHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TrigTauTrackingHypoTool.cxx:13
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::passed
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
Definition
TrigCompositeUtilsRoot.cxx:118
TrigCompositeUtils::addDecisionID
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
Definition
TrigCompositeUtilsRoot.cxx:59
ITrigTauTrackingHypoTool::ToolInfo
Definition
ITrigTauTrackingHypoTool.h:23
type
Generated on
for ATLAS Offline Software by
1.17.0