ATLAS Offline Software
L1InfoHypoTool.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 "L1InfoHypoTool.h"
6 
7 L1InfoHypoTool::L1InfoHypoTool(const std::string& type, const std::string& name, const IInterface* parent) :
8  base_class(type, name, parent),
9  m_decisionId(HLT::Identifier::fromToolName(name)) {}
10 
11 
13 
14  ATH_CHECK(m_ctpUnpackingTool.retrieve());
15 
16  return StatusCode::SUCCESS;
17 }
18 
19 
20 StatusCode L1InfoHypoTool::decide(const std::vector<IL1InfoHypoTool::L1Info>& input) const{
21  ATH_MSG_DEBUG("Executing decide() of " << name());
22 
23  std::vector<IL1InfoHypoTool::L1Info* > positive( input.size() );
24 
25  for ( const IL1InfoHypoTool::L1Info& hypoInfo : input ) {
26  if ( hypoInfo.previousDecisionsIDs.count( m_decisionId.numeric() ) > 0 ) {
27  bool decisionPassed = false;
28  ATH_CHECK(m_ctpUnpackingTool->passBeforePrescaleSelection(hypoInfo.roib, m_l1ItemNames, decisionPassed));
29  if (decisionPassed) {
31  }
32  }
33  }
34 
35  return StatusCode::SUCCESS;
36 }
37 
39  return m_decisionId;
40 }
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
L1InfoHypoTool::getId
const HLT::Identifier & getId() const override
Definition: L1InfoHypoTool.cxx:38
L1InfoHypoTool::L1InfoHypoTool
L1InfoHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: L1InfoHypoTool.cxx:7
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition: HLTResultReader.h:26
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
L1InfoHypoTool::initialize
virtual StatusCode initialize() override
Definition: L1InfoHypoTool.cxx:12
L1InfoHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition: L1InfoHypoTool.h:27
HLT::Identifier
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:20
L1InfoHypoTool::m_l1ItemNames
Gaudi::Property< std::vector< std::string > > m_l1ItemNames
Definition: L1InfoHypoTool.h:28
IL1InfoHypoTool::L1Info
Definition: IL1InfoHypoTool.h:17
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
L1InfoHypoTool::m_ctpUnpackingTool
ToolHandle< ICTPUnpackingTool > m_ctpUnpackingTool
Definition: L1InfoHypoTool.h:29
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
L1InfoHypoTool::decide
StatusCode decide(const std::vector< IL1InfoHypoTool::L1Info > &input) const override
Definition: L1InfoHypoTool.cxx:20
L1InfoHypoTool.h
Identifier
Definition: IdentifierFieldParser.cxx:14