ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigHypothesis
TrigEgammaForwardHypo
src
TrigEgammaForwardFastCaloHypoTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include <algorithm>
6
#include "
TrigCompositeUtils/HLTIdentifier.h
"
7
#include "
TrigCompositeUtils/Combinators.h
"
8
#include "
AthenaMonitoringKernel/Monitored.h
"
9
#include "GaudiKernel/SystemOfUnits.h"
10
#include "
TrigEgammaForwardFastCaloHypoTool.h
"
11
12
13
using namespace
TrigCompositeUtils
;
14
15
16
TrigEgammaForwardFastCaloHypoTool::TrigEgammaForwardFastCaloHypoTool
(
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
m_lumiBlockMuTool
(
"LumiBlockMuTool/LumiBlockMuTool"
)
22
{
23
declareProperty(
"LumiBlockMuTool"
,
m_lumiBlockMuTool
,
"Luminosity Tool"
);
24
}
25
26
27
TrigEgammaForwardFastCaloHypoTool::~TrigEgammaForwardFastCaloHypoTool
(){}
28
29
30
31
StatusCode
TrigEgammaForwardFastCaloHypoTool::initialize
()
32
{
33
34
ATH_MSG_DEBUG
(
"AcceptAll = "
<< (
m_acceptAll
==
true
?
"True"
:
"False"
) );
35
36
ATH_MSG_DEBUG
(
"Tool configured for chain/id: "
<<
m_decisionId
);
37
38
if
( not
m_monTool
.name().empty() )
39
CHECK
(
m_monTool
.retrieve() );
40
41
if
(
m_lumiBlockMuTool
.retrieve().isFailure())
42
return
StatusCode::FAILURE;
43
44
ATH_MSG_DEBUG
(
"Initialization completed successfully"
);
45
46
return
StatusCode::SUCCESS;
47
}
48
49
50
StatusCode TrigEgammaForwardFastCaloHypoTool::decide( std::vector<FastClusterInfo>& input )
const
{
51
for
(
auto
& i: input ) {
52
if
(
passed
( m_decisionId.
numeric
(), i.previousDecisionIDs ) ) {
53
if
( decide( i ) ) {
54
addDecisionID
( m_decisionId, i.decision );
55
}
56
}
57
}
58
return
StatusCode::SUCCESS;
59
}
60
61
62
bool
TrigEgammaForwardFastCaloHypoTool::decide
(
const
ITrigEgammaForwardFastCaloHypoTool::FastClusterInfo
&
/*input*/
)
const
{
63
return
true
;
64
}
65
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
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
HLTIdentifier.h
TrigEgammaForwardFastCaloHypoTool.h
HLT::Identifier::numeric
TrigCompositeUtils::DecisionID numeric() const
numeric ID
Definition
TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:41
TrigEgammaForwardFastCaloHypoTool::TrigEgammaForwardFastCaloHypoTool
TrigEgammaForwardFastCaloHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TrigEgammaForwardFastCaloHypoTool.cxx:16
TrigEgammaForwardFastCaloHypoTool::m_lumiBlockMuTool
ToolHandle< ILumiBlockMuTool > m_lumiBlockMuTool
Definition
TrigEgammaForwardFastCaloHypoTool.h:46
TrigEgammaForwardFastCaloHypoTool::initialize
virtual StatusCode initialize() override
Definition
TrigEgammaForwardFastCaloHypoTool.cxx:31
TrigEgammaForwardFastCaloHypoTool::~TrigEgammaForwardFastCaloHypoTool
virtual ~TrigEgammaForwardFastCaloHypoTool()
Definition
TrigEgammaForwardFastCaloHypoTool.cxx:27
TrigEgammaForwardFastCaloHypoTool::m_acceptAll
Gaudi::Property< bool > m_acceptAll
Definition
TrigEgammaForwardFastCaloHypoTool.h:50
TrigEgammaForwardFastCaloHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition
TrigEgammaForwardFastCaloHypoTool.h:45
TrigEgammaForwardFastCaloHypoTool::decide
virtual StatusCode decide(std::vector< ITrigEgammaForwardFastCaloHypoTool::FastClusterInfo > &input) const override
TrigEgammaForwardFastCaloHypoTool::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition
TrigEgammaForwardFastCaloHypoTool.h:54
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
ITrigEgammaForwardFastCaloHypoTool::FastClusterInfo
Definition
ITrigEgammaForwardFastCaloHypoTool.h:28
type
Generated on
for ATLAS Offline Software by
1.17.0