ATLAS Offline Software
Loading...
Searching...
No Matches
TrigEgammaTLAPhotonHypoTool.cxx
Go to the documentation of this file.
1/*
2Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
5
9
15
16TrigEgammaTLAPhotonHypoTool::TrigEgammaTLAPhotonHypoTool(const std::string& type, const std::string& name, const IInterface* parent):
17 AthAlgTool(type, name, 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
void decisionIDs(const Decision *d, DecisionIDContainer &id)
Extracts DecisionIDs stored in the Decision object.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
TrigEgammaTLAPhotonHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
const HLT::Identifier & getId() const
StatusCode decide(TrigCompositeUtils::DecisionContainer *decisionContainer) const
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
unsigned int DecisionID
const std::vector< ElementLink< DecisionContainer > > getLinkToPrevious(const Decision *d)
returns links to previous decision object 'seed'
std::set< DecisionID > DecisionIDContainer
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
void decisionIDs(const Decision *d, DecisionIDContainer &destination)
Extracts DecisionIDs stored in the Decision object.