ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigHypothesis
TrigCaloHypo
src
TrigLArNoiseBurstHypoTool.cxx
Go to the documentation of this file.
1
2
/*
3
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
4
*/
5
6
#include "
TrigCompositeUtils/Combinators.h
"
7
#include "
AthenaMonitoringKernel/Monitored.h
"
8
9
#include "
TrigLArNoiseBurstHypoTool.h
"
10
11
12
using namespace
TrigCompositeUtils
;
13
14
TrigLArNoiseBurstHypoTool::TrigLArNoiseBurstHypoTool
(
const
std::string&
type
,
15
const
std::string& name,
16
const
IInterface* parent )
17
: base_class(
type
, name, parent ),
18
m_decisionId
(
HLT
::
Identifier
::fromToolName( name ) )
19
{
20
}
21
22
StatusCode
TrigLArNoiseBurstHypoTool::initialize
() {
23
24
25
ATH_MSG_INFO
(
"TrigLArNoiseBurstHypoTool initialization completed successfully."
);
26
27
if
( not
m_monTool
.name().empty() )
28
CHECK
(
m_monTool
.retrieve() );
29
30
return
StatusCode::SUCCESS;
31
}
32
33
34
StatusCode
TrigLArNoiseBurstHypoTool::decide
( std::vector<FlagNoiseInfo>& input )
const
{
35
36
for
(
auto
& i: input ) {
37
if
(
passed
(
m_decisionId
.
numeric
(), i.previousDecisionIDs ) ) {
38
if
(
decide
( i ) ) {
39
addDecisionID
(
m_decisionId
, i.decision );
40
}
41
}
42
}
43
return
StatusCode::SUCCESS;
44
}
45
46
bool
TrigLArNoiseBurstHypoTool::decide
(
const
ITrigLArNoiseBurstHypoTool::FlagNoiseInfo
& input )
const
{
47
48
return
input.flag;
49
}
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition
AthMsgStreamMacros.h:31
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition
Control/AthenaKernel/AthenaKernel/errorcheck.h:422
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
Combinators.h
TrigLArNoiseBurstHypoTool.h
HLT::Identifier::numeric
TrigCompositeUtils::DecisionID numeric() const
numeric ID
Definition
TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:41
TrigLArNoiseBurstHypoTool::TrigLArNoiseBurstHypoTool
TrigLArNoiseBurstHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TrigLArNoiseBurstHypoTool.cxx:14
TrigLArNoiseBurstHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition
TrigLArNoiseBurstHypoTool.h:33
TrigLArNoiseBurstHypoTool::initialize
virtual StatusCode initialize() override
Definition
TrigLArNoiseBurstHypoTool.cxx:22
TrigLArNoiseBurstHypoTool::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition
TrigLArNoiseBurstHypoTool.h:41
TrigLArNoiseBurstHypoTool::decide
virtual StatusCode decide(std::vector< ITrigLArNoiseBurstHypoTool::FlagNoiseInfo > &input) const override
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
TrigCompositeUtils
Definition
TrigComposite.h:19
TrigCompositeUtils::passed
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
Definition
TrigCompositeUtilsRoot.cxx:118
TrigCompositeUtils::addDecisionID
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
Definition
TrigCompositeUtilsRoot.cxx:59
ITrigLArNoiseBurstHypoTool::FlagNoiseInfo
Definition
ITrigLArNoiseBurstHypoTool.h:28
type
Generated on
for ATLAS Offline Software by
1.17.0