Skip to content
Snippets Groups Projects
Commit bb9b4e08 authored by Tadej Novak's avatar Tadej Novak
Browse files

Merge branch 'DumpMoreInfo' into 'main'

Print available decorations

See merge request atlas/athena!69311
parents 1a77418f d7154cbe
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,8 @@ namespace ActsTrk {
const xAOD::SpacePointContainer* inputSpacePointCollection = inputSpacePointContainer.cptr();
// Check we can have access to clusters
for (const xAOD::SpacePoint* sp : *inputSpacePointCollection) {
bool connectionIsValid = true;
if (sp->isAvailable< std::vector< const xAOD::UncalibratedMeasurement* > >("measurements")) {
const auto& els = sp->measurements();
for (const auto* el : els) {
......@@ -60,10 +62,22 @@ namespace ActsTrk {
// if we are here, that means the bare pointers are not available
// This should not happen
ATH_MSG_ERROR("Space point has Element links but not bare pointers to cluster. This should not happen!");
return StatusCode::FAILURE;
connectionIsValid = false;
} else {
// This should never happen
ATH_MSG_ERROR("There are no decorations that link the space point to the original clusters");
connectionIsValid = false;
}
if (not connectionIsValid) {
ATH_MSG_ERROR(" * Space Point index: " << sp->index());
const SG::auxid_set_t& auxids = sp->getAuxIDs();
SG::AuxTypeRegistry& reg = SG::AuxTypeRegistry::instance();
ATH_MSG_ERROR("Available decorations for this space point:");
for( SG::auxid_t aux : auxids) {
std::string name = reg.getName( aux );
ATH_MSG_ERROR(" -> " << name);
}
return StatusCode::FAILURE;
}
}
......
......@@ -14,7 +14,8 @@ if __name__ == "__main__":
flags.Concurrency.NumThreads = 1
flags.Concurrency.NumConcurrentEvents = 1
flags.Exec.MaxEvents = -1
flags.Exec.OutputLevel = 3
flags.addFlag("readClusters", False)
flags.addFlag("readSpacePoints", False)
flags.fillFromArgs()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment