Merged muonspin/musrfit into master
This commit is contained in:
commit
ce0b3370fa
@ -6,6 +6,8 @@ changes since 0.14.0
|
||||
===================================
|
||||
NEW 2015-02-23 implemented an average-per-data-set option for musrFT.
|
||||
NEW 2015-02-21 add proper Mac icon to musredit
|
||||
FIXED 2015-09-14 any2many export of MusrRoot crashed when first histo group was != 0.
|
||||
This happend when exporting to PSI-BIN or WKM. This is fixed now.
|
||||
FIXED 2015-09-08 fixed error in view_packing for single histo (wrong norm of the theory).
|
||||
FIXED 2015-09-04 minor change in Fourier-block output (PMsrHandler::WriteMsrLogFile
|
||||
and PMsrHandler::WriteMsrLogFile) to avoid truncated range labels.
|
||||
|
@ -1089,11 +1089,11 @@ Int_t PMsrHandler::WriteMsrLogFile(const Bool_t messages)
|
||||
} else if (sstr.BeginsWith("range_for_phase_correction")) {
|
||||
fout << "range_for_phase_correction " << fFourier.fRangeForPhaseCorrection[0] << " " << fFourier.fRangeForPhaseCorrection[1] << endl;
|
||||
} else if (sstr.BeginsWith("range ")) {
|
||||
fout.unsetf(ios::floatfield);
|
||||
fout.setf(ios::fixed,ios::floatfield);
|
||||
neededPrec = LastSignificant(fFourier.fPlotRange[0]);
|
||||
if (LastSignificant(fFourier.fPlotRange[1]) > neededPrec)
|
||||
neededPrec = LastSignificant(fFourier.fPlotRange[1]);
|
||||
fout.precision(neededPrec+1);
|
||||
fout.precision(neededPrec);
|
||||
fout << "range " << fFourier.fPlotRange[0] << " " << fFourier.fPlotRange[1] << endl;
|
||||
} else {
|
||||
fout << str.Data() << endl;
|
||||
@ -1976,11 +1976,11 @@ Int_t PMsrHandler::WriteMsrFile(const Char_t *filename, map<UInt_t, TString> *co
|
||||
|
||||
// range
|
||||
if ((fFourier.fPlotRange[0] != -1.0) || (fFourier.fPlotRange[1] != -1.0)) {
|
||||
fout.unsetf(ios::floatfield);
|
||||
fout.setf(ios::fixed,ios::floatfield);
|
||||
UInt_t neededPrec = LastSignificant(fFourier.fPlotRange[0]);
|
||||
if (LastSignificant(fFourier.fPlotRange[1]) > neededPrec)
|
||||
neededPrec = LastSignificant(fFourier.fPlotRange[1]);
|
||||
fout.precision(neededPrec+1);
|
||||
fout.precision(neededPrec);
|
||||
fout << "range " << fFourier.fPlotRange[0] << " " << fFourier.fPlotRange[1] << endl;
|
||||
}
|
||||
|
||||
|
@ -1744,7 +1744,7 @@ Bool_t PRunDataHandler::ReadRootFile()
|
||||
for (UInt_t i=0; i<fAny2ManyInfo->groupHistoList.size(); i++) {
|
||||
found = false;
|
||||
for (UInt_t j=0; j<ivec.size(); j++) {
|
||||
if (fAny2ManyInfo->groupHistoList[i] == ivec[i])
|
||||
if (fAny2ManyInfo->groupHistoList[i] == ivec[j])
|
||||
found = true;
|
||||
}
|
||||
if (!found) {
|
||||
@ -5086,7 +5086,11 @@ Bool_t PRunDataHandler::WriteWkmFile(TString fln)
|
||||
if (lem_wkm_style)
|
||||
cout << endl << "TOF(M3S1): nocut";
|
||||
cout << endl << "Groups: " << fData[0].GetNoOfHistos();
|
||||
cout << endl << "Channels: " << static_cast<UInt_t>(fData[0].GetDataBin(1)->size()/fAny2ManyInfo->rebin);
|
||||
UInt_t histo0 = 1;
|
||||
if (fAny2ManyInfo->groupHistoList.size() != 0) { // red/green list found
|
||||
histo0 = fAny2ManyInfo->groupHistoList[0]+1; // take the first available red/green entry
|
||||
}
|
||||
cout << endl << "Channels: " << static_cast<UInt_t>(fData[0].GetDataBin(histo0)->size()/fAny2ManyInfo->rebin);
|
||||
cout.precision(10);
|
||||
cout << endl << "Resolution: " << fData[0].GetTimeResolution()*fAny2ManyInfo->rebin/1.0e3; // ns->us
|
||||
cout.setf(ios::fixed,ios::floatfield); // floatfield set to fixed
|
||||
@ -5175,7 +5179,11 @@ Bool_t PRunDataHandler::WritePsiBinFile(TString fln)
|
||||
// run number
|
||||
psibin.put_runNumber_int(fData[0].GetRunNumber());
|
||||
// length of histograms
|
||||
psibin.put_histoLength_bin((int)(fData[0].GetDataBin(1)->size()/fAny2ManyInfo->rebin));
|
||||
UInt_t histo0 = 1;
|
||||
if (fAny2ManyInfo->groupHistoList.size() != 0) { // red/green list found
|
||||
histo0 = fAny2ManyInfo->groupHistoList[0]+1; // take the first available red/green entry
|
||||
}
|
||||
psibin.put_histoLength_bin((int)(fData[0].GetDataBin(histo0)->size()/fAny2ManyInfo->rebin));
|
||||
// number of histograms
|
||||
psibin.put_numberHisto_int((int)fData[0].GetNoOfHistos());
|
||||
// run title = sample (10 char) / temp (10 char) / field (10 char) / orientation (10 char)
|
||||
|
Loading…
x
Reference in New Issue
Block a user