![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
19 return StatusCode::SUCCESS;
27 const std::vector<LinkInfo<TrigRoiDescriptorCollection>> myROIs = findLinks<TrigRoiDescriptorCollection>(outputDecision,
roiString(), TrigDefs::lastFeatureOfType);
31 if (myROIs.size() == 0) {
33 }
else if (myROIs.size() == 1) {
36 for (
size_t i = 0;
i < myROIs.size(); ++
i) {
38 ATH_MSG_DEBUG(
"Found " << myROIs.size() <<
" RoI links. However, successfully resolved the ambiguity using roiSGKey=" <<
m_roiSGKey <<
", taking index " <<
location);
46 ATH_MSG_ERROR(
"Did not find exactly one '" <<
roiString() <<
"' for Decision object index " << outputDecision->index()
47 <<
", found " << myROIs.size() <<
". Unable to supply single ROI to spawn EventView on.");
48 for (
const auto& li : myROIs) {
49 ATH_MSG_ERROR(
" -- " << li.link.dataID() <<
":" << li.link.index() <<
". Dump:" << *(li.source));
51 return StatusCode::FAILURE;
67 if (oldToNew.count(oldRoI) == 1) {
68 newRoI = oldToNew[oldRoI];
72 oldToNew[oldRoI] = newRoI;
76 outputDecision->setObjectLink(
roiString(), newRoI);
81 return StatusCode::SUCCESS;
bool empty() const
Test if the key is blank.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::WriteHandle< CONT > createAndStoreNoAux(const SG::WriteHandleKey< CONT > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Creates and right away records the Container CONT with the key.
Class used to describe composite objects in the HLT.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const std::string & roiString()
Athena::TPCnvVers::Current TrigRoiDescriptor
size_type size() const noexcept
Returns the number of elements in the collection.