35 MinMassDiffCombJigsaw::MinMassDiffCombJigsaw(
const std::string& sname,
36 const std::string& stitle,
37 int N_comb,
int N_mass)
38 : CombinatoricJigsaw(sname, stitle, N_comb, N_mass),
39 m_Ncomb(N_comb), m_Nmass(N_mass) {}
41 MinMassDiffCombJigsaw::~MinMassDiffCombJigsaw() {}
43 bool MinMassDiffCombJigsaw::EvaluateMetric(
double& metric)
const {
47 for(
int i = 0; i < m_Nmass-1; i++){
48 m1 = GetDependancyStates(i).GetFourVector().M();
49 for(
int j = i+1; i < m_Nmass; j++){
50 m2 = GetDependancyStates(j).GetFourVector().M();
51 diff += (m1-m2)*(m1-m2);