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

#include <TrigTrkPrecHypoTool.h>

Inheritance diagram for TrigTrkPrecHypoTool:
Collaboration diagram for TrigTrkPrecHypoTool:

Public Member Functions

 TrigTrkPrecHypoTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~TrigTrkPrecHypoTool ()
 
virtual StatusCode initialize () override
 
virtual StatusCode decide (std::vector< ITrigTrkPrecHypoTool::TrackingInfo > &input) const override
 
virtual bool decide (const ITrigTrkPrecHypoTool::TrackingInfo &i) const override
 

Private Attributes

HLT::Identifier m_decisionId
 
ToolHandle< GenericMonitoringToolm_monTool { this, "MonTool", "", "Monitoring tool" }
 

Detailed Description

Definition at line 25 of file TrigTrkPrecHypoTool.h.

Constructor & Destructor Documentation

◆ TrigTrkPrecHypoTool()

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

Definition at line 29 of file TrigTrkPrecHypoTool.cxx.

32  : base_class( type, name, parent ),
34 {
35 }

◆ ~TrigTrkPrecHypoTool()

TrigTrkPrecHypoTool::~TrigTrkPrecHypoTool ( )
virtual

Definition at line 37 of file TrigTrkPrecHypoTool.cxx.

38 {
39 }

Member Function Documentation

◆ decide() [1/2]

bool TrigTrkPrecHypoTool::decide ( const ITrigTrkPrecHypoTool::TrackingInfo i) const
overridevirtual

Definition at line 57 of file TrigTrkPrecHypoTool.cxx.

57  {
58 
59  // Get the messaging service, print where you are
60  ATH_MSG_DEBUG( "REGTEST:"<< name() << ": in execute()" );
61 
62  bool pass = false;
63 
64  //get RoI descriptor
65  auto roiDescriptor = input.roi;
66  float roIEta = roiDescriptor->eta();
67  float roIPhi = roiDescriptor->phi();
68  float roIZ = roiDescriptor->zed();
69 
70  ATH_MSG_DEBUG( "Input RoI eta: " << roIEta << " Input RoI phi: " << roIPhi << " Input RoI z: " << roIZ);
71 
72  // get the tracks collection
73  // Retrieve Input TrackCollection
74  auto foundTracks = input.trackparticles;
75 
76  if(!foundTracks->empty()){
77  ATH_MSG_DEBUG( " Input track collection has size " << foundTracks->size() );
78  }
79 
80  pass = true;
81 
82  ATH_MSG_DEBUG( " REGTEST: TE accepted !! " );
83 
84  return pass;
85 }

◆ decide() [2/2]

virtual StatusCode TrigTrkPrecHypoTool::decide ( std::vector< ITrigTrkPrecHypoTool::TrackingInfo > &  input) const
overridevirtual

◆ initialize()

StatusCode TrigTrkPrecHypoTool::initialize ( )
overridevirtual

Definition at line 41 of file TrigTrkPrecHypoTool.cxx.

42 {
43 
44  ATH_MSG_DEBUG( "in initialize()" );
45 
46  if ( !m_monTool.empty() ) CHECK( m_monTool.retrieve() );
47 
48  ATH_MSG_DEBUG( "Tool configured for chain/id: " << m_decisionId );
49 
50  ATH_MSG_DEBUG( " REGTEST: Simple pass-trhough hypo, no selection is applied" );
51 
52 
53  ATH_MSG_DEBUG( "Initialization of TrigTrkPrecHypoTool completed successfully" );
54  return StatusCode::SUCCESS;
55 }

Member Data Documentation

◆ m_decisionId

HLT::Identifier TrigTrkPrecHypoTool::m_decisionId
private

Definition at line 41 of file TrigTrkPrecHypoTool.h.

◆ m_monTool

ToolHandle<GenericMonitoringTool> TrigTrkPrecHypoTool::m_monTool { this, "MonTool", "", "Monitoring tool" }
private

Definition at line 43 of file TrigTrkPrecHypoTool.h.


The documentation for this class was generated from the following files:
TrigTrkPrecHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition: TrigTrkPrecHypoTool.h:41
TrigTrkPrecHypoTool::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: TrigTrkPrecHypoTool.h:43
HLT::Identifier::fromToolName
static HLT::Identifier fromToolName(const std::string &tname)
Definition: HLTIdentifier.cxx:31
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
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78