31 #include "RestFrames/MinMassesSqCombJigsaw.hh"
33 namespace RestFrames {
36 const std::string& stitle,
37 int N_comb,
int N_mass)
39 m_Ncomb(N_comb), m_Nmass(N_mass) {}
41 MinMassesSqCombJigsaw::~MinMassesSqCombJigsaw() {}
43 bool MinMassesSqCombJigsaw::EvaluateMetric(
double& metric)
const {
48 for(
int i = 0; i < m_Nmass; i++)
49 sum += GetDependancyStates(i).GetFourVector().M2();
53 for(
int i = 0; i < m_Nmass; i++){
55 int N = GetDependancyStates(i).GetN();
56 for(
int j = 0; j < N; j++){
57 TLorentzVector v = GetDependancyStates(i)[j].GetFourVector();
58 TVector3 p = v.Vect() - v.Vect().Dot(GetTransverseAxis())*GetTransverseAxis();