fixed main problem of various runs with different labels for db-files

This commit is contained in:
nemu
2009-03-07 16:17:47 +00:00
parent 326e8262b4
commit 5e1dd892b0
5 changed files with 70 additions and 71 deletions

View File

@@ -2166,8 +2166,8 @@ void PMusrCanvas::PlotData()
PMsrRunList runs = *fMsrHandler->GetMsrRunList();
PMsrPlotStructure plotInfo = fMsrHandler->GetMsrPlotList()->at(fPlotNumber);
unsigned int runNo = (unsigned int)plotInfo.fRuns[0].Re()-1;
TString xAxisTitle = fRunList->GetXAxisTitle(runs[runNo].fRunName);
TString yAxisTitle = fRunList->GetYAxisTitle(runs[runNo].fRunName);
TString xAxisTitle = fRunList->GetXAxisTitle(runs[runNo].fRunName, runNo);
TString yAxisTitle = fRunList->GetYAxisTitle(runs[runNo].fRunName, runNo);
if (fNonMusrData.size() > 0) {
// check if fMultiGraphData needs to be created, and if yes add all data and theory
@@ -2250,7 +2250,7 @@ void PMusrCanvas::PlotDifference()
PMsrRunList runs = *fMsrHandler->GetMsrRunList();
PMsrPlotStructure plotInfo = fMsrHandler->GetMsrPlotList()->at(fPlotNumber);
unsigned int runNo = (unsigned int)plotInfo.fRuns[0].Re()-1;
TString xAxisTitle = fRunList->GetXAxisTitle(runs[runNo].fRunName);
TString xAxisTitle = fRunList->GetXAxisTitle(runs[runNo].fRunName, runNo);
// if fMultiGraphDiff is not present create it and add the diff data
if (!fMultiGraphDiff) {