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

#include <TrigTauPrecTrackHypoTool.h>

Inheritance diagram for TrigTauPrecTrackHypoTool:
Collaboration diagram for TrigTauPrecTrackHypoTool:

Public Member Functions

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

Private Attributes

HLT::Identifier m_decisionId
 

Detailed Description

Definition at line 19 of file TrigTauPrecTrackHypoTool.h.

Constructor & Destructor Documentation

◆ TrigTauPrecTrackHypoTool()

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

Definition at line 13 of file TrigTauPrecTrackHypoTool.cxx.

15 {
16 
17 }

Member Function Documentation

◆ decide() [1/2]

bool TrigTauPrecTrackHypoTool::decide ( const ITrigTauPrecTrackHypoTool::ToolInfo i) const
overridevirtual

Definition at line 28 of file TrigTauPrecTrackHypoTool.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 xAOD::TrackParticleContainer* tracks = input.trackParticles;
35  if(!tracks->empty()){
36  ATH_MSG_DEBUG("Input Precision 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 TrigTauPrecTrackHypoTool::decide ( std::vector< ITrigTauPrecTrackHypoTool::ToolInfo > &  input) const
overridevirtual

Definition at line 46 of file TrigTauPrecTrackHypoTool.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 TrigTauPrecTrackHypoTool::initialize ( )
overridevirtual

Definition at line 20 of file TrigTauPrecTrackHypoTool.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 TrigTauPrecTrackHypoTool::m_decisionId
private

Definition at line 30 of file TrigTauPrecTrackHypoTool.h.


The documentation for this class was generated from the following files:
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
TrigTauPrecTrackHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition: TrigTauPrecTrackHypoTool.h:30
lumiFormat.i
int i
Definition: lumiFormat.py:85
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
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
TrigTauPrecTrackHypoTool::decide
virtual StatusCode decide(std::vector< ITrigTauPrecTrackHypoTool::ToolInfo > &input) const override
Definition: TrigTauPrecTrackHypoTool.cxx:46
DataVector::empty
bool empty() const noexcept
Returns true if the collection is empty.