From eb4cbd5be4d8ff2f4c30021cc9eeaac25a8e4aa7 Mon Sep 17 00:00:00 2001
From: Eduardo Rodrigues <eduardo.rodrigues@cern.ch>
Date: Mon, 16 Apr 2018 12:14:17 +0000
Subject: [PATCH] Revert "Merge branch 'revert-df9b1ec2' into 'master'"

This reverts merge request !186
---
 Phys/Tesla/python/Tesla/Configuration.py | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/Phys/Tesla/python/Tesla/Configuration.py b/Phys/Tesla/python/Tesla/Configuration.py
index a2e775570..cb490f83b 100644
--- a/Phys/Tesla/python/Tesla/Configuration.py
+++ b/Phys/Tesla/python/Tesla/Configuration.py
@@ -13,6 +13,7 @@ from Configurables import (
     ChargedPP2MC,
     CopyLinePersistenceLocations,
     CopyParticle2PVRelationsFromLinePersistenceLocations,
+    CopyParticle2RelatedInfoFromLinePersistenceLocations,
     CopyProtoParticle2MCRelations,
     CopySignalMCParticles,
     DataOnDemandSvc,
@@ -1103,11 +1104,24 @@ class Tesla(LHCbConfigurableUser):
                 ILinePersistenceSvc=persistence_svc
             )
 
+            p2ri_cloner = CopyParticle2RelatedInfoFromLinePersistenceLocations(
+                namer('CopyP2RelatedInfoFromLinePersistenceLocations'),
+                # Search for all LHCb::RelatedInfoMap objects at the same TES
+                # level as the container of LHCb::Particle objects using the
+                # CLID, rather than a name
+                RelationsBaseName="",
+                UseRelationsCLID=True,
+                OutputPrefix=output_prefix,
+                LinesToCopy=decisions,
+                ILinePersistenceSvc=persistence_svc
+            )
+
             copy_line_outputs_seq = GaudiSequencer(
                 namer('TeslaCopyLineOutputsSequence'),
                 Members=[
                     container_cloner,
-                    p2pv_cloner
+                    p2pv_cloner,
+                    p2ri_cloner
                 ],
                 IgnoreFilterPassed=True
             )
-- 
GitLab