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

#include <TrigMissingETHypoTool.h>

Inheritance diagram for TrigMissingETHypoTool:
Collaboration diagram for TrigMissingETHypoTool:

Public Member Functions

 TrigMissingETHypoTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~TrigMissingETHypoTool ()
 
virtual StatusCode initialize () override
 
virtual StatusCode finalize () override
 
virtual StatusCode decide (const xAOD::TrigMissingETContainer *, bool &pass) const override
 
virtual const HLT::IdentifiergetId () const override
 

Private Attributes

HLT::Identifier m_decisionId
 
Gaudi::Property< float > m_metThreshold {this, "metThreshold", 50, "MET threshold [GeV]" }
 

Detailed Description

Definition at line 24 of file TrigMissingETHypoTool.h.

Constructor & Destructor Documentation

◆ TrigMissingETHypoTool()

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

Definition at line 16 of file TrigMissingETHypoTool.cxx.

18  :
19  base_class(type, name, parent),

◆ ~TrigMissingETHypoTool()

TrigMissingETHypoTool::~TrigMissingETHypoTool ( )
virtual

Definition at line 23 of file TrigMissingETHypoTool.cxx.

23 {}

Member Function Documentation

◆ decide()

StatusCode TrigMissingETHypoTool::decide ( const xAOD::TrigMissingETContainer metContainer,
bool &  pass 
) const
overridevirtual

Definition at line 36 of file TrigMissingETHypoTool.cxx.

37 {
38  ATH_MSG_DEBUG("Executing decide() of " << name());
39  float ex = (*metContainer)[0]->ex();
40  float ey = (*metContainer)[0]->ey();
41  float met = std::hypot(ex,ey)/1000.;
42  pass = met > m_metThreshold;
43 
44  ATH_MSG_VERBOSE("in " << name() << ": MET = " << met);
45  if (pass)
46  ATH_MSG_VERBOSE("Event passes the " << m_metThreshold << " GeV cut");
47  else
48  ATH_MSG_VERBOSE("Event fails the " << m_metThreshold << " GeV cut");
49 
50  return StatusCode::SUCCESS;
51 
52 }

◆ finalize()

StatusCode TrigMissingETHypoTool::finalize ( )
overridevirtual

Definition at line 32 of file TrigMissingETHypoTool.cxx.

32  {
33  return StatusCode::SUCCESS;
34 }

◆ getId()

const HLT::Identifier & TrigMissingETHypoTool::getId ( ) const
overridevirtual

Definition at line 54 of file TrigMissingETHypoTool.cxx.

54  {
55  return m_decisionId;
56 }

◆ initialize()

StatusCode TrigMissingETHypoTool::initialize ( )
overridevirtual

Definition at line 26 of file TrigMissingETHypoTool.cxx.

26  {
27  ATH_MSG_DEBUG("Initializing TrigMissingETHypoTool");
28  ATH_MSG_DEBUG("MET threshold set to " << m_metThreshold );
29  return StatusCode::SUCCESS;
30 }

Member Data Documentation

◆ m_decisionId

HLT::Identifier TrigMissingETHypoTool::m_decisionId
private

Definition at line 48 of file TrigMissingETHypoTool.h.

◆ m_metThreshold

Gaudi::Property<float> TrigMissingETHypoTool::m_metThreshold {this, "metThreshold", 50, "MET threshold [GeV]" }
private

Definition at line 53 of file TrigMissingETHypoTool.h.


The documentation for this class was generated from the following files:
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
TrigMissingETHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition: TrigMissingETHypoTool.h:48
HLT::Identifier::fromToolName
static HLT::Identifier fromToolName(const std::string &tname)
Definition: HLTIdentifier.cxx:31
met
Definition: IMETSignificance.h:24
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TrigMissingETHypoTool::m_metThreshold
Gaudi::Property< float > m_metThreshold
Definition: TrigMissingETHypoTool.h:53
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78