18 double maxProbChi2 = 0;
19 for(
unsigned int s=0;
s<sols.size();
s++) maxProbChi2 =
std::max(maxProbChi2,sols[
s].getProbChi2());
22 std::vector<unsigned int> indices;
24 for(
unsigned int s=0;
s<sols.size();
s++){
25 if(fabs(sols[
s].getProbChi2()-maxProbChi2) < 0.0001) indices.push_back(
s);
30 if(indices.size() == 1) bestSol = indices[0];
31 if(indices.size() == 2) {
34 double DPhi_Wb0 = fabs(sols[indices[0]].getFitHadW().
phi()-sols[indices[0]].getFitHadb().
phi());
35 double DPhi_Wb1 = fabs(sols[indices[1]].getFitHadW().
phi()-sols[indices[1]].getFitHadb().
phi());
36 if(DPhi_Wb0>3.1415) DPhi_Wb0 = 2.*3.1415-DPhi_Wb0;
37 if(DPhi_Wb1>3.1415) DPhi_Wb1 = 2.*3.1415-DPhi_Wb1;
38 if(DPhi_Wb0 < DPhi_Wb1){
~TtSemiSimpleBestJetComb()
const T & max(const T &a, const T &b)
TtSemiSimpleBestJetComb()
int operator()(std::vector< TtSemiEvtSolution > &)