![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
31 std::set<ElementLink<TrigRoiDescriptorCollection>>
uniqueRoIs;
35 ATH_MSG_DEBUG(
"Skipping chain because previous step didn't pass");
42 << (isUnique ?
"not yet" :
"already") <<
" been processed. So far seen "
43 <<
uniqueRoIs.size() <<
" unique RoIs including this one");
46 bool maxRoIsReached{
false};
48 ATH_MSG_DEBUG(
"Will attach empty PEB Info to this decision because the number of "
49 <<
"processed RoIs reached MaxRoIs (" <<
m_maxRoIs.value() <<
")");
50 maxRoIsReached =
true;
57 std::vector<uint32_t> previousRobs;
59 pebInfo.
robs.insert(previousRobs.begin(), previousRobs.end());
62 std::vector<uint32_t> previousSubDets;
64 pebInfo.
subdets.insert(previousSubDets.begin(), previousSubDets.end());
67 std::vector<uint32_t> robVec(pebInfo.
robs.begin(), pebInfo.
robs.end());
70 return StatusCode::FAILURE;
72 std::vector<uint32_t> subDetVec(pebInfo.
subdets.begin(), pebInfo.
subdets.end());
75 return StatusCode::FAILURE;
78 ATH_MSG_DEBUG(
"Attached PEB Info with " << robVec.size() <<
" ROBs and "
79 << subDetVec.size() <<
" SubDets to the decision object.");
85 return StatusCode::SUCCESS;
94 str <<
"0x" << std::hex << robid << std::dec;
96 if (
i!=pebi.
robs.size())
str <<
", ";
98 str <<
"], SubDets = [";
101 str <<
"0x" << std::hex << subdetid << std::dec;
bool uniqueRoIs(const std::vector< LinkInfo< xAOD::IParticleContainer >> &links)
Helper function that returns true if no objects share a final RoI.
xAOD::TrigCompositeContainer DecisionContainer
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
TrigCompositeUtils::DecisionID numeric() const
numeric ID
Decision * newDecisionIn(DecisionContainer *dc, const std::string &name)
Helper method to create a Decision object, place it in the container and return a pointer to it.
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
SG::WriteHandle< DecisionContainer > createAndStore(const SG::WriteHandleKey< DecisionContainer > &key, const EventContext &ctx)
Creates and right away records the DecisionContainer with the key.
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
::StatusCode StatusCode
StatusCode definition for legacy code.
xAOD::TrigComposite Decision
std::set< DecisionID > DecisionIDContainer
void decisionIDs(const Decision *d, DecisionIDContainer &destination)
Extracts DecisionIDs stored in the Decision object.