ATLAS Offline Software
Loading...
Searching...
No Matches
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
8
10
11
12using namespace TrigCompositeUtils;
13
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
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
34StatusCode 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
47
48 return input.flag;
49}
#define ATH_MSG_INFO(x)
#define CHECK(...)
Evaluate an expression and check for errors.
Header file to be included by clients of the Monitored infrastructure.
TrigCompositeUtils::DecisionID numeric() const
numeric ID
TrigLArNoiseBurstHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode initialize() override
ToolHandle< GenericMonitoringTool > m_monTool
virtual StatusCode decide(std::vector< ITrigLArNoiseBurstHypoTool::FlagNoiseInfo > &input) const override
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.