ATLAS Offline Software
Loading...
Searching...
No Matches
TrigZVertexHypoTool.cxx File Reference
Include dependency graph for TrigZVertexHypoTool.cxx:

Go to the source code of this file.

Functions

void addDecisionID (DecisionID id, Decision *d)
 Appends the decision (given as ID) to the decision object.

Function Documentation

◆ addDecisionID()

void TrigCompositeUtils::addDecisionID ( DecisionID id,
Decision * d )

Appends the decision (given as ID) to the decision object.

Warning
Performing two decision insertions with the same ID consecutively results in the ID stored only once This helps solving multiple inserts in the combo hypo tools

Definition at line 59 of file TrigCompositeUtilsRoot.cxx.

59 {
60 std::vector<DecisionID>& decisions = readWriteAccessor( *d );
61 if ( decisions.size() == 0 or decisions.back() != id)
62 decisions.push_back( id );
63 }
static const SG::AuxElement::Accessor< std::vector< TrigCompositeUtils::DecisionID > > readWriteAccessor("decisions")