Skip to content
Snippets Groups Projects

nice printout of parameters XFITTER-90

Merged Oleksandr Zenaiev requested to merge cbdiff-2.2-pars-printout into test_ceres
1 unresolved thread

Snippet with parameters is printed if chi2 iflag = 3. It can be copied and pasted into parameters.yaml (convenient to start new fit from the found minimum)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
82 82 }
83 83 printf("\n");
84 84 }
85 if(iflag == 3)
86 {
87 int ndigcomma = 8;
88 printf("----- Parameters in YAML format (can copy paste into parameters.yamp):\n");
89 for(int p=0; p<extrapars_.nExtraParam; p++)
90 {
91 mnpout_(extrapars_.iExtraParamMinuit+p, parname, &par, &unc, &bound_l, &bound_h, &status, len);
92 //if(status<=0) continue;
93 parname[std::string(parname).find(' ')]='\0';
94 printf(" %s : [ %.*f, %.*f", parname, ndigcomma, par, ndigcomma, unc);
95 if(bound_l!=0.0&&bound_h!=0.0) {
96 printf("%.*f%.*f", ndigcomma, bound_l, ndigcomma, bound_h);
  • Nice

    I'll need to to re-implement this later so that it also works with CERES, but for now it is a good solution.

    I'd approve it, but I want to first understand what was the bug in PdfsPainter, the changes to which are also in this merge request (actually !147 (merged) is a subset of !148 (merged))

  • Ivan Novikov approved this merge request

    approved this merge request

  • merged

  • Ivan Novikov mentioned in commit cf935937

    mentioned in commit cf935937

  • Please register or sign in to reply
    Loading