ATLAS Offline Software
Loading...
Searching...
No Matches
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
7
9
10
11using namespace TrigCompositeUtils;
12
13TrigTauTrackingHypoTool::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
21{
22 ATH_MSG_DEBUG("Tool configured for chain/id: " << m_decisionId);
23
24 return StatusCode::SUCCESS;
25}
26
27
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 ATH_MSG_DEBUG("Input Tracks collection has size: " << input.trackParticles->size());
35
36 // This is (for now) a dummy step, so we return an always passing decision
37 return true;
38}
39
40
41StatusCode TrigTauTrackingHypoTool::decide(std::vector<ITrigTauTrackingHypoTool::ToolInfo>& input) const
42{
44 if(passed(m_decisionId.numeric(), i.previousDecisionIDs)) {
45 if(decide(i)) {
46 addDecisionID(m_decisionId, i.decision);
47 }
48 }
49 }
50
51 return StatusCode::SUCCESS;
52}
#define ATH_MSG_DEBUG(x)
virtual StatusCode initialize() override
virtual StatusCode decide(std::vector< ITrigTauTrackingHypoTool::ToolInfo > &input) const override
TrigTauTrackingHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.