add TDirectory option to any2many.

This commit is contained in:
2025-10-03 15:42:44 +02:00
parent 0eb36fc48a
commit 71fb4c9435
6 changed files with 136 additions and 56 deletions

View File

@@ -1326,7 +1326,7 @@ void TMusrRunHeader::DumpHeader()
fmt.Form("%%s: %%.%dlf %%s; SP: %%.%dlf", digit, digit_d);
tstr.Form(fmt, prop.GetLabel().Data(), prop.GetValue(), prop.GetUnit().Data(), prop.GetDemand());
}
} else if (prop.GetDemand() == MRH_UNDEFINED) { // <value> = n/a
} else if (prop.GetValue() == MRH_UNDEFINED) { // <value> = n/a
fmt.Form("%%s: %%s %%s");
if ((prop.GetUnit() != "n/a"))
tstr.Form(fmt, prop.GetLabel().Data(), "n/a", prop.GetUnit().Data());
@@ -1827,6 +1827,9 @@ TObjString TMusrRunHeader::GetHeaderString(UInt_t idx)
fmt.Form("%%s: %%.%dlf %%s; SP: %%.%dlf", digit, digit_d);
tstr.Form(fmt, prop.GetLabel().Data(), prop.GetValue(), prop.GetUnit().Data(), prop.GetDemand());
}
} else if (prop.GetValue() == MRH_UNDEFINED) {
fmt.Form("%%s: %%.1e %%s");
tstr.Form(fmt, prop.GetLabel().Data(), prop.GetValue(), prop.GetUnit().Data());
}
str.Form("%03d - %s -@%d", idx, tstr.Data(), MRH_TMUSR_RUN_PHYSICAL_QUANTITY);
tostr.SetString(str);