ATLAS Offline Software
Loading...
Searching...
No Matches
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),
static HLT::Identifier fromToolName(const std::string &tname)

◆ ~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}
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_DEBUG(x)
Gaudi::Property< float > m_metThreshold

◆ 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 42 of file TrigMissingETHypoTool.h.

◆ m_metThreshold

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

Definition at line 47 of file TrigMissingETHypoTool.h.

47{this, "metThreshold", 50, "MET threshold [GeV]" };

The documentation for this class was generated from the following files: