fixed formating issue raised in MUSR-142
This commit is contained in:
parent
50e3838a5f
commit
68e3dc4dac
@ -943,12 +943,25 @@ Bool_t PFitter::ExecuteSave()
|
|||||||
fout << endl;
|
fout << endl;
|
||||||
fout << endl << "*************************************************************************";
|
fout << endl << "*************************************************************************";
|
||||||
|
|
||||||
|
// identifiy the longest variable name for proper formating reasons
|
||||||
|
Int_t maxLength = 10;
|
||||||
|
for (UInt_t i=0; i<fParams.size(); i++) {
|
||||||
|
if (fParams[i].fName.Length() > maxLength)
|
||||||
|
maxLength = fParams[i].fName.Length() + 1;
|
||||||
|
}
|
||||||
|
|
||||||
// write parameters
|
// write parameters
|
||||||
fParams = *(fRunInfo->GetMsrParamList()); // get the update parameters back
|
fParams = *(fRunInfo->GetMsrParamList()); // get the update parameters back
|
||||||
fout << endl << " PARAMETERS";
|
fout << endl << " PARAMETERS";
|
||||||
fout << endl << "-------------------------------------------------------------------------";
|
fout << endl << "-------------------------------------------------------------------------";
|
||||||
fout << endl << " Parabolic Minos";
|
fout << endl << " ";
|
||||||
fout << endl << " No Name Value Error Negative Positive Limits";
|
for (Int_t j=0; j<=maxLength-4; j++)
|
||||||
|
fout << " ";
|
||||||
|
fout << "Parabolic Minos";
|
||||||
|
fout << endl << " No Name";
|
||||||
|
for (Int_t j=0; j<=maxLength-4; j++)
|
||||||
|
fout << " ";
|
||||||
|
fout << "Value Error Negative Positive Limits";
|
||||||
for (UInt_t i=0; i<fParams.size(); i++) {
|
for (UInt_t i=0; i<fParams.size(); i++) {
|
||||||
// write no
|
// write no
|
||||||
fout.setf(ios::right, ios::adjustfield);
|
fout.setf(ios::right, ios::adjustfield);
|
||||||
@ -956,7 +969,7 @@ Bool_t PFitter::ExecuteSave()
|
|||||||
fout << endl << i+1 << " ";
|
fout << endl << i+1 << " ";
|
||||||
// write name
|
// write name
|
||||||
fout << fParams[i].fName.Data();
|
fout << fParams[i].fName.Data();
|
||||||
for (Int_t j=0; j<10-fParams[i].fName.Length(); j++)
|
for (Int_t j=0; j<=maxLength-fParams[i].fName.Length(); j++)
|
||||||
fout << " ";
|
fout << " ";
|
||||||
// write value
|
// write value
|
||||||
fout.setf(ios::left, ios::adjustfield);
|
fout.setf(ios::left, ios::adjustfield);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user