ATLAS Offline Software
TrigEgammaTLAPhotonHypoTool.cxx
Go to the documentation of this file.
1 /*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
5 
9 
15 
16 TrigEgammaTLAPhotonHypoTool::TrigEgammaTLAPhotonHypoTool(const std::string& type, const std::string& name, const IInterface* parent):
18  m_decisionId(HLT::Identifier::fromToolName(name))
19  {}
20 
22 
24 {
25  return StatusCode::SUCCESS;
26 }
27 
29 {
30  return StatusCode::SUCCESS;
31 }
32 
34 {
35 
36  for (auto decision : *outputDecisions )
37  {
38  // creates container of Decision identifiers that will be filled with the previous decisions attached to the object
39  DecisionIDContainer previousDecisionIDs;
40  // not sure whtat this does
41  const auto previousDecisionEL = TrigCompositeUtils::getLinkToPrevious(decision).at(0);
42  decisionIDs(*previousDecisionEL, previousDecisionIDs);
43  // if we are sure that there is only one decision added by the parent HypoAlg (it should be), then checking that count > 0
44  // is equivalent to checking if the previous decision was positive-NO
45  // checks that the decision corresponding to the chain name is positive? uff
46  if (previousDecisionIDs.count( m_decisionId.numeric()) > 0)
47  {
48  TrigCompositeUtils::addDecisionID(getId().numeric(), decision );
49  }
50  }
51  return StatusCode::SUCCESS;
52 
53 }
54 
56  return m_decisionId;
57 }
TrigCompositeUtils::DecisionID
unsigned int DecisionID
Definition: TrigComposite_v1.h:27
TrigCompositeUtils::DecisionContainer
xAOD::TrigCompositeContainer DecisionContainer
Definition: Event/xAOD/xAODTrigger/xAODTrigger/TrigCompositeContainer.h:21
HLT::Identifier::numeric
TrigCompositeUtils::DecisionID numeric() const
numeric ID
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:41
TrigCompositeUtils::addDecisionID
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
Definition: TrigCompositeUtilsRoot.cxx:58
TrigEgammaTLAPhotonHypoTool::decide
StatusCode decide(TrigCompositeUtils::DecisionContainer *decisionContainer) const
Definition: TrigEgammaTLAPhotonHypoTool.cxx:33
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
TrigCompositeUtils.h
TrigEgammaTLAPhotonHypoTool.h
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition: HLTResultReader.h:26
TrigCompositeUtils::getLinkToPrevious
const std::vector< ElementLink< DecisionContainer > > getLinkToPrevious(const Decision *d)
returns links to previous decision object 'seed'
Definition: TrigCompositeUtilsRoot.cxx:156
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
HLT::Identifier
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:19
TrigCompositeContainer.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
TrigCompositeUtils::Decision
xAOD::TrigComposite Decision
Definition: Event/xAOD/xAODTrigger/xAODTrigger/TrigComposite.h:20
TrigEgammaTLAPhotonHypoTool::finalize
StatusCode finalize()
Definition: TrigEgammaTLAPhotonHypoTool.cxx:28
TrigEgammaTLAPhotonHypoTool::initialize
StatusCode initialize()
Definition: TrigEgammaTLAPhotonHypoTool.cxx:23
TrigCompositeUtils::DecisionIDContainer
std::set< DecisionID > DecisionIDContainer
Definition: TrigComposite_v1.h:28
TrigEgammaTLAPhotonHypoTool::getId
const HLT::Identifier & getId() const
Definition: TrigEgammaTLAPhotonHypoTool.cxx:55
TrigEgammaTLAPhotonHypoTool::~TrigEgammaTLAPhotonHypoTool
~TrigEgammaTLAPhotonHypoTool()
Definition: TrigEgammaTLAPhotonHypoTool.cxx:21
HLTIdentifier.h
TrigCompositeUtils::decisionIDs
void decisionIDs(const Decision *d, DecisionIDContainer &destination)
Extracts DecisionIDs stored in the Decision object.
Definition: TrigCompositeUtilsRoot.cxx:64
TrigEgammaTLAPhotonHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition: TrigEgammaTLAPhotonHypoTool.h:31
AthAlgTool
Definition: AthAlgTool.h:26
TrigEgammaTLAPhotonHypoTool::TrigEgammaTLAPhotonHypoTool
TrigEgammaTLAPhotonHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TrigEgammaTLAPhotonHypoTool.cxx:16
Identifier
Definition: IdentifierFieldParser.cxx:14