some more work towards a full encapsulation

This commit is contained in:
nemu
2009-11-05 06:42:33 +00:00
parent 208e6b97c2
commit 588747bd13
10 changed files with 117 additions and 129 deletions

View File

@@ -521,7 +521,7 @@ void PMusrCanvas::UpdateInfoPad()
// get/set run plot info
double dval;
vector< pair<double, double> > ddvec;
const PDoublePairVector *ddvec;
Char_t sval[128];
UInt_t runNo;
PMsrPlotStructure plotInfo = fMsrHandler->GetMsrPlotList()->at(fPlotNumber);
@@ -547,18 +547,18 @@ void PMusrCanvas::UpdateInfoPad()
}
// temperature if present
ddvec = fRunList->GetTemp(*runs[runNo].GetRunName());
if (ddvec.empty()) {
if (ddvec->empty()) {
tstr += TString("T=");
tstr += TString("??,");
} else if (ddvec.size() == 1){
} else if (ddvec->size() == 1){
tstr += TString("T=");
sprintf(sval, "%0.2lf", ddvec[0].first);
sprintf(sval, "%0.2lf", ddvec->at(0).first);
tstr += TString(sval) + TString("K,");
} else {
for(UInt_t i(0); i<ddvec.size(); ++i){
for(UInt_t i(0); i<ddvec->size(); ++i){
sprintf(sval, "T%u=", i);
tstr += TString(sval);
sprintf(sval, "%0.2lf", ddvec[i].first);
sprintf(sval, "%0.2lf", ddvec->at(i).first);
tstr += TString(sval) + TString("K,");
}
}