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 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
42StatusCode TrigTauTrackingHypoTool::decide(std::vector<ITrigTauTrackingHypoTool::ToolInfo>& input) const
43{
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}
#define ATH_MSG_WARNING(x)
#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.