From 2ae7ba6f6b48caf3125906f9050f3530993e752e Mon Sep 17 00:00:00 2001
From: scott snyder <sss@karma>
Date: Wed, 25 Nov 2020 20:37:30 -0500
Subject: [PATCH] xAODCore: Mention ShallowCopyDecorDeps in comments.

Mention ShallowCopyDecorDeps in the comments of the ShallowCopy functions.
---
 Event/xAOD/xAODCore/xAODCore/ShallowCopy.h | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/Event/xAOD/xAODCore/xAODCore/ShallowCopy.h b/Event/xAOD/xAODCore/xAODCore/ShallowCopy.h
index b47ba572c78..ff9dfa596af 100644
--- a/Event/xAOD/xAODCore/xAODCore/ShallowCopy.h
+++ b/Event/xAOD/xAODCore/xAODCore/ShallowCopy.h
@@ -1,7 +1,7 @@
 // Dear emacs, this is -*- c++ -*-
 
 /*
-  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
 */
 
 // $Id: ShallowCopy.h 766390 2016-08-04 11:18:59Z wlampl $
@@ -48,6 +48,10 @@ namespace xAOD {
    /// @returns A pair of pointers to the created objects. The caller takes
    ///          ownership of the created objects
    ///
+   /// Be aware: If CONT has decorations, then the scheduler won't automatically
+   /// known that they are available on the copy.  To make that happen, see
+   /// StoreGate/ShallowCopyDecorDeps.h.
+   ///
    template< class T >
    std::pair< T*, ShallowAuxContainer* > shallowCopyContainer( const T& cont ) {
 
@@ -97,6 +101,10 @@ namespace xAOD {
    /// @returns A pair of pointers to the created objects. The caller takes
    ///          ownership of the created objects
    ///
+   /// Be aware: If CONT has decorations, then the scheduler won't automatically
+   /// known that they are available on the copy.  To make that happen, see
+   /// StoreGate/ShallowCopyDecorDeps.h.
+   ///
    template< class T >
    std::pair< T*, ShallowAuxInfo* > shallowCopyObject( const T& obj ) {
 
-- 
GitLab