Changeset 1838 for trunk/MagicSoft/Mars
- Timestamp:
- 03/19/03 16:00:54 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MH3.cc
r1835 r1838 237 237 Bool_t MH3::SetupFill(const MParList *plist) 238 238 { 239 239 240 TString bname("Binning"); 240 241 bname += fName; … … 243 244 MBinning *binsy = NULL; 244 245 MBinning *binsz = NULL; 246 245 247 switch (fDimension) 246 248 { … … 254 256 if (binsz->IsLogarithmic()) 255 257 fHist->SetBit(kIsLogz); 256 fHist->SetZTitle(fData[2]->GetTitle());257 if ( !fData[2]->PreProcess(plist))258 if (fData[2]) fHist->SetZTitle(fData[2]->GetTitle()); 259 if (fData[2] && !fData[2]->PreProcess(plist)) 258 260 return kFALSE; 259 261 case 2: … … 266 268 if (binsy->IsLogarithmic()) 267 269 fHist->SetBit(kIsLogy); 268 fHist->SetYTitle(fData[1]->GetTitle());269 if ( !fData[1]->PreProcess(plist))270 if (fData[1]) fHist->SetYTitle(fData[1]->GetTitle()); 271 if (fData[1] && !fData[1]->PreProcess(plist)) 270 272 return kFALSE; 271 273 case 1: … … 281 283 return kFALSE; 282 284 } 285 283 286 } 284 287 if (binsx->IsLogarithmic()) 285 288 fHist->SetBit(kIsLogx); 286 fHist->SetXTitle(fData[0]->GetTitle()); 287 if (!fData[0]->PreProcess(plist)) 289 290 if (fData[0]!=NULL) fHist->SetXTitle(fData[0]->GetTitle()); 291 if (fData[0] && !fData[0]->PreProcess(plist)) 288 292 return kFALSE; 289 293 } … … 309 313 return kTRUE; 310 314 } 311 315 cout << "Still alive...?" << endl; 312 316 return kTRUE; 313 317 }
Note:
See TracChangeset
for help on using the changeset viewer.