Skip to content

Commit

Permalink
ATO-108 - dump in debug mode not only histogram but also coordiantes
Browse files Browse the repository at this point in the history
  • Loading branch information
miranov25 committed Feb 5, 2016
1 parent ef8ea70 commit e81afc7
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions STAT/TStatToolkit.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2703,7 +2703,7 @@ void TStatToolkit::MakeDistortionMapFast(THnBase * histo, TTreeSRedirector *pcst
"meanG="<<meanG<< // mean of the gaus fit
"rmsG="<<rmsG<< // rms of the gaus fit
"vecLTM.="<<&vecLTM<< // LTM frac% statistic
"chi2G="<<chi2G<<"\n"; // chi2 of the gaus fit
"chi2G="<<chi2G; // chi2 of the gaus fit
}

(*pcstream)<<tname<<
Expand All @@ -2726,7 +2726,7 @@ void TStatToolkit::MakeDistortionMapFast(THnBase * histo, TTreeSRedirector *pcst
for (Int_t idim=0; idim<ndim; idim++){
snprintf(aname, 100, "%sMean=",histo->GetAxis(idim)->GetName());
(*pcstream)<<tname<<
aname<<meanVector[idim]; // current bin means
aname<<meanVector[idim]; // current bin means
}
//
for (Int_t iIter=0; iIter<ndim; iIter++){
Expand All @@ -2736,10 +2736,16 @@ void TStatToolkit::MakeDistortionMapFast(THnBase * histo, TTreeSRedirector *pcst
snprintf(bname, 100, "%sBin=",histo->GetAxis(idim)->GetName());
snprintf(cname, 100, "%sCenter=",histo->GetAxis(idim)->GetName());
(*pcstream)<<tname<<
bname<<binVector[idim]<< // current bin values
cname<<centerVector[idim]; // current bin centers
bname<<binVector[idim]<< // current bin values
cname<<centerVector[idim]; // current bin centers
if (hDump){
(*pcstream)<<TString::Format("%sDump", tname).Data()<<
bname<<binVector[idim]<< // current bin values
cname<<centerVector[idim]; // current bin centers
}
}
(*pcstream)<<tname<<"\n";
if (hDump) (*pcstream)<<TString::Format("%sDump", tname).Data()<<"\n";
// << ------------- do fit
//
if (((++fitCount)%fitProgress)==0) {
Expand Down

0 comments on commit e81afc7

Please sign in to comment.