ATLAS Offline Software
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 
12 using 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 
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 
47 
48  return input.flag;
49 }
ITrigLArNoiseBurstHypoTool::FlagNoiseInfo
Definition: ITrigLArNoiseBurstHypoTool.h:28
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:117
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
HLT::Identifier::numeric
TrigCompositeUtils::DecisionID numeric() const
numeric ID
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:47
TrigLArNoiseBurstHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition: TrigLArNoiseBurstHypoTool.h:33
TrigLArNoiseBurstHypoTool::TrigLArNoiseBurstHypoTool
TrigLArNoiseBurstHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TrigLArNoiseBurstHypoTool.cxx:14
TrigCompositeUtils::addDecisionID
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
Definition: TrigCompositeUtilsRoot.cxx:61
TrigLArNoiseBurstHypoTool::decide
virtual StatusCode decide(std::vector< ITrigLArNoiseBurstHypoTool::FlagNoiseInfo > &input) const override
TrigLArNoiseBurstHypoTool::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: TrigLArNoiseBurstHypoTool.h:41
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition: HLTResultReader.h:26
lumiFormat.i
int i
Definition: lumiFormat.py:85
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
test_pyathena.parent
parent
Definition: test_pyathena.py:15
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.
TrigLArNoiseBurstHypoTool.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
Combinators.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TrigCompositeUtils
Definition: Event/xAOD/xAODTrigger/xAODTrigger/TrigComposite.h:19
TrigLArNoiseBurstHypoTool::initialize
virtual StatusCode initialize() override
Definition: TrigLArNoiseBurstHypoTool.cxx:22
Identifier
Definition: IdentifierFieldParser.cxx:14