ATLAS Offline Software
TrigMissingETHypoTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // ********************************************************************
6 //
7 // NAME: TrigMissingETHypoTool.cxx
8 // PACKAGE: Trigger/TrigHypothesis/TrigMissingET
9 //
10 //
11 // ********************************************************************
12 
13 #include "TrigMissingETHypoTool.h"
14 
15 
17  const std::string& name,
18  const IInterface* parent):
19  base_class(type, name, parent),
20  m_decisionId(HLT::Identifier::fromToolName(name)) {}
21 
22 
24 
25 
27  ATH_MSG_DEBUG("Initializing TrigMissingETHypoTool");
28  ATH_MSG_DEBUG("MET threshold set to " << m_metThreshold );
29  return StatusCode::SUCCESS;
30 }
31 
33  return StatusCode::SUCCESS;
34 }
35 
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 }
53 
55  return m_decisionId;
56 }
57 
TrigMissingETHypoTool::TrigMissingETHypoTool
TrigMissingETHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TrigMissingETHypoTool.cxx:16
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
TrigMissingETHypoTool::finalize
virtual StatusCode finalize() override
Definition: TrigMissingETHypoTool.cxx:32
TrigMissingETHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition: TrigMissingETHypoTool.h:48
met
Definition: IMETSignificance.h:24
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition: HLTResultReader.h:26
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
TrigMissingETHypoTool::initialize
virtual StatusCode initialize() override
Definition: TrigMissingETHypoTool.cxx:26
test_pyathena.parent
parent
Definition: test_pyathena.py:15
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
HLT::Identifier
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:20
TrigMissingETHypoTool::getId
virtual const HLT::Identifier & getId() const override
Definition: TrigMissingETHypoTool.cxx:54
TrigMissingETHypoTool::~TrigMissingETHypoTool
virtual ~TrigMissingETHypoTool()
Definition: TrigMissingETHypoTool.cxx:23
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
TrigMissingETHypoTool::m_metThreshold
Gaudi::Property< float > m_metThreshold
Definition: TrigMissingETHypoTool.h:53
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TrigMissingETHypoTool.h
TrigMissingETHypoTool::decide
virtual StatusCode decide(const xAOD::TrigMissingETContainer *, bool &pass) const override
Definition: TrigMissingETHypoTool.cxx:36