Non-muSR data export from musrview

Add the theory export part again which was lost after restructuring.
This commit is contained in:
suter_a 2019-06-03 14:14:20 +02:00
parent 2e2c249e33
commit 34b432b185

View File

@ -1911,7 +1911,7 @@ void PMusrCanvas::ExportData(const Char_t *fileName)
xmax = fMultiGraphData->GetXaxis()->GetBinCenter(xmaxBin); xmax = fMultiGraphData->GetXaxis()->GetBinCenter(xmaxBin);
// fill ascii dump data // fill ascii dump data
for (UInt_t i=0; i<fNonMusrData.size(); i++) { // go through all the histogramms for (UInt_t i=0; i<fNonMusrData.size(); i++) { // go through all the graphs
// clean up dump // clean up dump
dump.dataX.clear(); dump.dataX.clear();
dump.data.clear(); dump.data.clear();
@ -1929,6 +1929,15 @@ void PMusrCanvas::ExportData(const Char_t *fileName)
} }
} }
// if anything found keep it
if (dump.dataX.size() > 0)
dumpVector.push_back(dump);
// clean up dump
dump.dataX.clear();
dump.data.clear();
dump.dataErr.clear();
// go through all theory bins // go through all theory bins
for (Int_t j=0; j<fNonMusrData[i].theory->GetN(); j++) { for (Int_t j=0; j<fNonMusrData[i].theory->GetN(); j++) {
// get x and y value // get x and y value