Commit ac28f378 authored by Hendrik Hoeth's avatar Hendrik Hoeth
Browse files

Fix sorting criterion in particle map, to make results reproducible (merge -c19516 from trunk)

parent 345caa51
...@@ -366,7 +366,7 @@ bool CS_Shower::PrepareShowerFromSoft(Cluster_Amplitude *const ampl) ...@@ -366,7 +366,7 @@ bool CS_Shower::PrepareShowerFromSoft(Cluster_Amplitude *const ampl)
p_ms = ampl->MS(); p_ms = ampl->MS();
p_next->clear(); p_next->clear();
//msg_Tracking()<<*ampl<<"\n"; //msg_Tracking()<<*ampl<<"\n";
std::map<Parton*,Cluster_Leg*> lmap; std::map<Parton*,Cluster_Leg*,partcomp> lmap;
std::map<Cluster_Leg*,Parton*> pmap; std::map<Cluster_Leg*,Parton*> pmap;
Parton * parton; Parton * parton;
......
...@@ -8,6 +8,16 @@ ...@@ -8,6 +8,16 @@
namespace CSSHOWER { namespace CSSHOWER {
struct partcomp{
bool operator() (const Parton * part1, const Parton * part2) const
{
if (part1->Id() < part2->Id()) return true;
else return false;
}
};
class Splitting_Function_Base; class Splitting_Function_Base;
typedef std::map<size_t,std::pair<double,double> > KT2X_Map; typedef std::map<size_t,std::pair<double,double> > KT2X_Map;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment