From b00af08ca5a739dc4779ee116b39aed91856ae35 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Wed, 4 Sep 2024 14:47:31 +0200 Subject: [PATCH] Add patching grammar to docstring --- src/cpp/include/UTIL/CheckCollections.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/cpp/include/UTIL/CheckCollections.h b/src/cpp/include/UTIL/CheckCollections.h index 76c6bc16c..ac800439f 100644 --- a/src/cpp/include/UTIL/CheckCollections.h +++ b/src/cpp/include/UTIL/CheckCollections.h @@ -57,6 +57,23 @@ namespace UTIL { Vector getConsistentCollections() const ; /** Add a collection with (name,type) that should be added to events in patchEvent(). + * + * Depending on the contents of name and type one of the following things + * will happen: + * + * - if type is an LCIO type an empty collection of the given type will be + put into the event using the passed name + * - if type is `LCRelation[,]` an LCRelation collection + * will be created setting the and as FromType and + * ToType collection parameters. + * - if type contains a '|' the whole (name, type) pair will be considered + * to be ParticleID meta information and the name will be used as a PID + * algorithm name and the type information will be parsed as + * |[,], I.e. a ParticleID + * algorithm of name will be attached to the ReconstructedParticle + * collection with name . Additionally any parameter names + * that are in the comma-separated list after the '|' will be set via the + * PIDHandler for this ParticleID algorithm */ void addPatchCollection(std::string name, std::string type);