ATLAS Offline Software
TrigGenericHypoTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGHYPOCOMMONTOOLS_TRIGGENERICHYPOTOOL_H
6 #define TRIGHYPOCOMMONTOOLS_TRIGGENERICHYPOTOOL_H
7 
8 #include "Gaudi/Property.h"
12 
13 class TrigGenericHypoTool : public :: AthAlgTool {
14 
15  public:
16 
17  struct HypoToolInfo {
19  const xAOD::TrigComposite* tc,
20  const TrigCompositeUtils::Decision* previousDecision )
21  : decision( d ),
22  trigComp( tc ),
24  TrigCompositeUtils::decisionIDs( previousDecision ).end() )
25  {}
29  };
30 
31  TrigGenericHypoTool(const std::string& type, const std::string& name, const IInterface* parent);
32  virtual StatusCode initialize() override;
33  StatusCode decide(const std::vector<HypoToolInfo>& input) const;
34 
35  private:
37  SG::ReadDecorHandleKey<xAOD::TrigCompositeContainer> m_passKey{this, "PassString", "TrigComposite.pass", "TrigComposite should pass"};
38 
39 };
40 
41 #endif
TrigGenericHypoTool::m_passKey
SG::ReadDecorHandleKey< xAOD::TrigCompositeContainer > m_passKey
Definition: TrigGenericHypoTool.h:37
hist_file_dump.d
d
Definition: hist_file_dump.py:137
TrigGenericHypoTool::HypoToolInfo::decision
TrigCompositeUtils::Decision * decision
Definition: TrigGenericHypoTool.h:26
TrigGenericHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition: TrigGenericHypoTool.h:36
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
TrigGenericHypoTool::initialize
virtual StatusCode initialize() override
Definition: TrigGenericHypoTool.cxx:13
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
TrigGenericHypoTool::decide
StatusCode decide(const std::vector< HypoToolInfo > &input) const
Definition: TrigGenericHypoTool.cxx:20
TrigCompositeUtils.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TrigGenericHypoTool
Definition: TrigGenericHypoTool.h:13
xAOD::TrigComposite_v1
Class used to describe composite objects in the HLT.
Definition: TrigComposite_v1.h:52
HLT::Identifier
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:20
TrigGenericHypoTool::HypoToolInfo::HypoToolInfo
HypoToolInfo(TrigCompositeUtils::Decision *d, const xAOD::TrigComposite *tc, const TrigCompositeUtils::Decision *previousDecision)
Definition: TrigGenericHypoTool.h:18
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TrigCompositeUtils::DecisionIDContainer
std::set< DecisionID > DecisionIDContainer
Definition: TrigComposite_v1.h:28
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
HLTIdentifier.h
TrigCompositeUtils::decisionIDs
void decisionIDs(const Decision *d, DecisionIDContainer &destination)
Extracts DecisionIDs stored in the Decision object.
Definition: TrigCompositeUtilsRoot.cxx:67
TrigCompositeUtils
Definition: Event/xAOD/xAODTrigger/xAODTrigger/TrigComposite.h:19
TrigGenericHypoTool::HypoToolInfo
Definition: TrigGenericHypoTool.h:17
AthAlgTool
Definition: AthAlgTool.h:26
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85
TrigGenericHypoTool::HypoToolInfo::previousDecisionIDs
const TrigCompositeUtils::DecisionIDContainer previousDecisionIDs
Definition: TrigGenericHypoTool.h:28
TrigGenericHypoTool::TrigGenericHypoTool
TrigGenericHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TrigGenericHypoTool.cxx:8
TrigGenericHypoTool::HypoToolInfo::trigComp
const xAOD::TrigComposite * trigComp
Definition: TrigGenericHypoTool.h:27