ATLAS Offline Software
TrigGenericHypoTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "TrigGenericHypoTool.h"
7 
8 TrigGenericHypoTool::TrigGenericHypoTool(const std::string& type, const std::string& name, const IInterface* parent) :
10  m_decisionId(HLT::Identifier::fromToolName(name)) {}
11 
12 
14 
15  ATH_CHECK(m_passKey.initialize());
16  return StatusCode::SUCCESS;
17 }
18 
19 
20 StatusCode TrigGenericHypoTool::decide(const std::vector<TrigGenericHypoTool::HypoToolInfo>& input) const{
21  ATH_MSG_DEBUG("Executing decide() of " << name());
22 
24 
25  for ( const TrigGenericHypoTool::HypoToolInfo& hypoInfo : input ) {
26  if ( TrigCompositeUtils::passed( m_decisionId.numeric(), hypoInfo.previousDecisionIDs ) ) {
27  int decisionPassed = trigCompositePassed(*hypoInfo.trigComp);
28  if (decisionPassed==1) {
30  }
31  }
32  }
33 
34  return StatusCode::SUCCESS;
35 }
TrigGenericHypoTool::m_passKey
SG::ReadDecorHandleKey< xAOD::TrigCompositeContainer > m_passKey
Definition: TrigGenericHypoTool.h:37
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
HLT::Identifier::numeric
TrigCompositeUtils::DecisionID numeric() const
numeric ID
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:47
TrigCompositeUtils::addDecisionID
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
Definition: TrigCompositeUtilsRoot.cxx:61
TrigGenericHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition: TrigGenericHypoTool.h:36
TrigGenericHypoTool::initialize
virtual StatusCode initialize() override
Definition: TrigGenericHypoTool.cxx:13
TrigGenericHypoTool::decide
StatusCode decide(const std::vector< HypoToolInfo > &input) const
Definition: TrigGenericHypoTool.cxx:20
SG::ReadDecorHandle
Handle class for reading a decoration on an object.
Definition: StoreGate/StoreGate/ReadDecorHandle.h:94
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: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
TrigGenericHypoTool.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
ReadDecorHandle.h
Handle class for reading a decoration on an object.
TrigGenericHypoTool::HypoToolInfo
Definition: TrigGenericHypoTool.h:17
AthAlgTool
Definition: AthAlgTool.h:26
TrigGenericHypoTool::TrigGenericHypoTool
TrigGenericHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TrigGenericHypoTool.cxx:8