ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigHypothesis
TrigMissingETHypo
src
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
16
TrigMissingETHypoTool::TrigMissingETHypoTool
(
const
std::string&
type
,
17
const
std::string& name,
18
const
IInterface* parent):
19
base_class(
type
, name, parent),
20
m_decisionId
(
HLT
::
Identifier
::fromToolName(name)) {}
21
22
23
TrigMissingETHypoTool::~TrigMissingETHypoTool
() {}
24
25
26
StatusCode
TrigMissingETHypoTool::initialize
() {
27
ATH_MSG_DEBUG
(
"Initializing TrigMissingETHypoTool"
);
28
ATH_MSG_DEBUG
(
"MET threshold set to "
<<
m_metThreshold
);
29
return
StatusCode::SUCCESS;
30
}
31
32
StatusCode
TrigMissingETHypoTool::finalize
() {
33
return
StatusCode::SUCCESS;
34
}
35
36
StatusCode
TrigMissingETHypoTool::decide
(
const
xAOD::TrigMissingETContainer
* metContainer,
bool
& pass)
const
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
54
const
HLT::Identifier
&
TrigMissingETHypoTool::getId
()
const
{
55
return
m_decisionId
;
56
}
57
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition
AthMsgStreamMacros.h:28
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
TrigMissingETHypoTool.h
HLT::Identifier
Definition
TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:19
TrigMissingETHypoTool::~TrigMissingETHypoTool
virtual ~TrigMissingETHypoTool()
Definition
TrigMissingETHypoTool.cxx:23
TrigMissingETHypoTool::finalize
virtual StatusCode finalize() override
Definition
TrigMissingETHypoTool.cxx:32
TrigMissingETHypoTool::decide
virtual StatusCode decide(const xAOD::TrigMissingETContainer *, bool &pass) const override
Definition
TrigMissingETHypoTool.cxx:36
TrigMissingETHypoTool::initialize
virtual StatusCode initialize() override
Definition
TrigMissingETHypoTool.cxx:26
TrigMissingETHypoTool::getId
virtual const HLT::Identifier & getId() const override
Definition
TrigMissingETHypoTool.cxx:54
TrigMissingETHypoTool::m_metThreshold
Gaudi::Property< float > m_metThreshold
Definition
TrigMissingETHypoTool.h:47
TrigMissingETHypoTool::TrigMissingETHypoTool
TrigMissingETHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TrigMissingETHypoTool.cxx:16
TrigMissingETHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition
TrigMissingETHypoTool.h:42
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
IdentifierFieldParser.cxx:14
met
Definition
IMETSignificance.h:24
xAOD::TrigMissingETContainer
TrigMissingETContainer_v1 TrigMissingETContainer
DataVector of TrigMissingET - the current version.
Definition
Event/xAOD/xAODTrigMissingET/xAODTrigMissingET/TrigMissingETContainer.h:13
type
Generated on
for ATLAS Offline Software by
1.17.0