
hi -

i've observed that the ordering of clusters in the tau1p3ppi0clustercontainer
container is not reproducible and can vary from run to run.

this arises because this container is filled by iterating over a map
that uses pointers as keys.

fortunately, this is easy to fix by sorting the clusters in the container
before they're written.

+verbatim+
index: cmt/requirements
===================================================================
--- cmt/requirements	(revision 463725)
+++ cmt/requirements	(working copy)
@@ -23,6 +23,7 @@
 use particle		particle-*		reconstruction
 use recotoolinterfaces  recotoolinterfaces-*    reconstruction/recotools
 use particleevent       particleevent-*         physicsanalysis/analysiscommon
+use analysisutils       analysisutils-*         physicsanalysis/analysiscommon
 
 
 private
index: src/tau1p3pcreatepi0clus.cxx
===================================================================
--- src/tau1p3pcreatepi0clus.cxx	(revision 463725)
+++ src/tau1p3pcreatepi0clus.cxx	(working copy)
@@ -31,6 +31,7 @@
 #include &quot;caloidentifier/calocell_id.h&quot;
 #include &quot;caloevent/calosampling.h&quot;
 #include &quot;calodetdescr/calophirange.h&quot;
+#include &quot;analysisutils/analysismisc.h&quot;
 
 #include &quot;gaudikernel/listitem.h&quot;
 
@@ -166,6 +167,7 @@
             pi0container-&gt;push_back( *clustit );
         }
     }
+    analysisutils::sort::pt (pi0container);
 
     //----------------------------------------------------------------------
     // register cluster container in storegate
-verbatim-
