ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
TrigTauFastTrackHypoTool Class Reference

Hypothesis tool for the fast tracking steps. More...

#include <TrigTauFastTrackHypoTool.h>

Inheritance diagram for TrigTauFastTrackHypoTool:
Collaboration diagram for TrigTauFastTrackHypoTool:

Public Member Functions

 TrigTauFastTrackHypoTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual StatusCode initialize () override
 
virtual StatusCode decide (std::vector< ITrigTauFastTrackHypoTool::ToolInfo > &input) const override
 
virtual bool decide (const ITrigTauFastTrackHypoTool::ToolInfo &i) const override
 

Private Attributes

HLT::Identifier m_decisionId
 

Detailed Description

Hypothesis tool for the fast tracking steps.

Definition at line 19 of file TrigTauFastTrackHypoTool.h.

Constructor & Destructor Documentation

◆ TrigTauFastTrackHypoTool()

TrigTauFastTrackHypoTool::TrigTauFastTrackHypoTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 13 of file TrigTauFastTrackHypoTool.cxx.

15 {
16 
17 }

Member Function Documentation

◆ decide() [1/2]

bool TrigTauFastTrackHypoTool::decide ( const ITrigTauFastTrackHypoTool::ToolInfo i) const
overridevirtual

Definition at line 28 of file TrigTauFastTrackHypoTool.cxx.

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 TrackCollection
34  const TrackCollection* tracks = input.trackCollection;
35  if(!tracks->empty()){
36  ATH_MSG_DEBUG("Input Fast Tracks collection has size: " << tracks->size());
37  }
38 
39  // This is (for now) a dummy step, so we won't be applying any decision here
40  bool pass = true;
41 
42  return pass;
43 }

◆ decide() [2/2]

StatusCode TrigTauFastTrackHypoTool::decide ( std::vector< ITrigTauFastTrackHypoTool::ToolInfo > &  input) const
overridevirtual

Definition at line 46 of file TrigTauFastTrackHypoTool.cxx.

47 {
48  for(auto& i : input) {
49  if(passed(m_decisionId.numeric(), i.previousDecisionIDs)) {
50  if(decide(i)) {
51  addDecisionID(m_decisionId, i.decision);
52  }
53  }
54  }
55 
56  return StatusCode::SUCCESS;
57 }

◆ initialize()

StatusCode TrigTauFastTrackHypoTool::initialize ( )
overridevirtual

Definition at line 20 of file TrigTauFastTrackHypoTool.cxx.

21 {
22  ATH_MSG_DEBUG("Tool configured for chain/id: " << m_decisionId);
23 
24  return StatusCode::SUCCESS;
25 }

Member Data Documentation

◆ m_decisionId

HLT::Identifier TrigTauFastTrackHypoTool::m_decisionId
private

Definition at line 30 of file TrigTauFastTrackHypoTool.h.


The documentation for this class was generated from the following files:
TrigTauFastTrackHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition: TrigTauFastTrackHypoTool.h:30
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:117
HLT::Identifier::numeric
TrigCompositeUtils::DecisionID numeric() const
numeric ID
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:47
TrigCompositeUtils::addDecisionID
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
Definition: TrigCompositeUtilsRoot.cxx:61
HLT::Identifier::fromToolName
static HLT::Identifier fromToolName(const std::string &tname)
Definition: HLTIdentifier.cxx:31
lumiFormat.i
int i
Definition: lumiFormat.py:85
TrackCollection
DataVector< Trk::Track > TrackCollection
This typedef represents a collection of Trk::Track objects.
Definition: TrackCollection.h:19
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
test_pyathena.parent
parent
Definition: test_pyathena.py:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TrigTauFastTrackHypoTool::decide
virtual StatusCode decide(std::vector< ITrigTauFastTrackHypoTool::ToolInfo > &input) const override
Definition: TrigTauFastTrackHypoTool.cxx:46