4242 * - \ref GEventDataCollection::addDetectorDigitizedData "addDetectorDigitizedData()"
4343 * - inspecting stored data:
4444 * - per-detector hit counts
45- * - identity strings from
46- * \ref GTrueInfoData::getIdentityString "getIdentityString()" and
47- * \ref GDigitizedData::getIdentityString "getIdentityString()"
4845 * - truth and digitized observable maps
4946 * - demonstrating filtering of streaming-readout keys for digitized data with:
5047 * - \ref GDigitizedData::getIntObservablesMap "getIntObservablesMap()"
@@ -164,7 +161,9 @@ static void dump_event(const std::shared_ptr<GEventDataCollection>& edc, const s
164161 const auto doubles = th->getDoubleVariablesMap ();
165162 const auto strings = th->getStringVariablesMap ();
166163
167- log->info (0 , " [truth hit " , i, " ] id={" , th->getIdentityString (), " }" );
164+ auto idString = getIdentityString (th->getIdentity ());
165+
166+ log->info (0 , " [truth hit " , i, " ] id={" ,idString, " }" );
168167 log->info (0 , " doubles: " , map_to_string (doubles));
169168
170169 // Strings are often empty in this toy factory, but the code shows how to inspect them.
@@ -186,7 +185,9 @@ static void dump_event(const std::shared_ptr<GEventDataCollection>& edc, const s
186185 const auto dbls_non_sro = dh->getDblObservablesMap (0 );
187186 const auto dbls_sro_only = dh->getDblObservablesMap (1 );
188187
189- log->info (0 , " [digi hit " , i, " ] id={" , dh->getIdentityString (), " }" );
188+ auto idString = getIdentityString (dh->getIdentity ());
189+
190+ log->info (0 , " [digi hit " , i, " ] id={" ,idString, " }" );
190191 log->info (0 , " int non-SRO: " , map_to_string (ints_non_sro));
191192 log->info (0 , " int SRO: " , map_to_string (ints_sro));
192193 log->info (0 , " dbl non-SRO: " , map_to_string (dbls_non_sro));
0 commit comments