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

#include <TrigTrackPreSelHypoTool.h>

Inheritance diagram for TrigTrackPreSelHypoTool:
Collaboration diagram for TrigTrackPreSelHypoTool:

Public Member Functions

 TrigTrackPreSelHypoTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~TrigTrackPreSelHypoTool ()
 
virtual StatusCode initialize () override
 
virtual StatusCode decide (std::vector< ITrigTrackPreSelHypoTool::TrackingInfo > &input) const override
 
virtual bool decide (const ITrigTrackPreSelHypoTool::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 TrigTrackPreSelHypoTool.h.

Constructor & Destructor Documentation

◆ TrigTrackPreSelHypoTool()

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

Definition at line 38 of file TrigTrackPreSelHypoTool.cxx.

◆ ~TrigTrackPreSelHypoTool()

TrigTrackPreSelHypoTool::~TrigTrackPreSelHypoTool ( )
virtual

Definition at line 46 of file TrigTrackPreSelHypoTool.cxx.

47 {
48 }

Member Function Documentation

◆ decide() [1/2]

bool TrigTrackPreSelHypoTool::decide ( const ITrigTrackPreSelHypoTool::TrackingInfo i) const
overridevirtual

Definition at line 65 of file TrigTrackPreSelHypoTool.cxx.

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

◆ decide() [2/2]

virtual StatusCode TrigTrackPreSelHypoTool::decide ( std::vector< ITrigTrackPreSelHypoTool::TrackingInfo > &  input) const
overridevirtual

◆ initialize()

StatusCode TrigTrackPreSelHypoTool::initialize ( )
overridevirtual

Definition at line 50 of file TrigTrackPreSelHypoTool.cxx.

51 {
52 
53  ATH_MSG_DEBUG( "in initialize()" );
54 
55  if ( !m_monTool.empty() ) CHECK( m_monTool.retrieve() );
56 
57  ATH_MSG_DEBUG( "Tool configured for chain/id: " << m_decisionId );
58 
59  ATH_MSG_DEBUG( " REGTEST: Simple pass-trhough hypo, no selection is applied" );
60 
61  ATH_MSG_DEBUG( "Initialization of TrigTrackPreSelHypoTool completed successfully" );
62  return StatusCode::SUCCESS;
63 }

Member Data Documentation

◆ m_decisionId

HLT::Identifier TrigTrackPreSelHypoTool::m_decisionId
private

Definition at line 41 of file TrigTrackPreSelHypoTool.h.

◆ m_monTool

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

Definition at line 43 of file TrigTrackPreSelHypoTool.h.


The documentation for this class was generated from the following files:
TPConverterConstBase::base_class
TPConverterConstBase base_class
Definition: TPConverter.h:779
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:221
TrigTrackPreSelHypoTool::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: TrigTrackPreSelHypoTool.h:43
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TrigTrackPreSelHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition: TrigTrackPreSelHypoTool.h:41