Changeset 6280 for trunk/MagicSoft
- Timestamp:
- 02/07/05 15:06:39 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6278 r6280 42 42 - fixed a bug which caused the resource task to be ignored 43 43 if the default task was '<dummy>' 44 45 * mhbase/MH3.cc: 46 - fixed a bug in Paint (use GetListOfPrimitives->FindObject 47 instead of FindObject) which caused the histogram to 48 be put a lot of times into the pad. 44 49 45 50 -
trunk/MagicSoft/Mars/mhbase/MH3.cc
r5994 r6280 505 505 void MH3::Paint(Option_t *o) 506 506 { 507 /*508 *fLog << all << fHist << " " << gPad->GetName() << " ----> Paint " << o << endl;509 TListIter Next(gPad->GetListOfPrimitives()); TObject *obj;510 while ((obj=Next())) *fLog << obj << " " << obj->GetName() << " " << obj->ClassName() << " " << Next.GetOption() << " " << (int)obj->TestBit(kCanDelete) << endl;511 */512 /*513 TString str(o);514 515 if (str.Contains("log", TString::kIgnoreCase))516 {517 if (fHist->TestBit(kIsLogx) && fHist->GetEntries()>0) gPad->SetLogx();518 if (fHist->TestBit(kIsLogy) && fHist->GetEntries()>0) gPad->SetLogy();519 if (fHist->TestBit(kIsLogz) && fHist->GetEntries()>0) gPad->SetLogz();520 }521 522 if (str.Contains("upd", TString::kIgnoreCase))523 {524 525 // Set pretty color palette526 // gStyle->SetPalette(1, 0);527 528 TProfile* h0;529 if ((h0 = (TProfile*)gPad->FindObject(fNameProfX)))530 ((TH2*)fHist)->ProfileX(fNameProfX, -1, 9999, "s");531 if ((h0 = (TProfile*)gPad->FindObject(fNameProfY)))532 ((TH2*)fHist)->ProfileY(fNameProfY, -1, 9999, "s");533 }534 */535 536 507 fHist->SetFillStyle(4000); 537 508 … … 550 521 str.ReplaceAll("profy", ""); 551 522 523 // WARNING: Don't use FindObject directly always use GetListOfPrimitives!! 524 552 525 // FIXME: We may have to remove all our own options from str! 553 if (!only && !gPad-> FindObject(fHist))526 if (!only && !gPad->GetListOfPrimitives()->FindObject(fHist)) 554 527 fHist->Draw(str); 555 528 … … 557 530 { 558 531 TProfile *p = ((TH2*)fHist)->ProfileX("ProfX", -1, 9999, "s"); 559 if (!gPad-> FindObject(p))532 if (!gPad->GetListOfPrimitives()->FindObject(p)) 560 533 { 561 534 p->UseCurrentStyle(); … … 571 544 { 572 545 TProfile *p = ((TH2*)fHist)->ProfileY("ProfY", -1, 9999, "s"); 573 if (!gPad-> FindObject(p))546 if (!gPad->GetListOfPrimitives()->FindObject(p)) 574 547 { 575 548 p->UseCurrentStyle(); -
trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.cc
r5887 r6280 220 220 fTrigPattern = (MTriggerPattern*)pList->FindObject("MTriggerPattern"); 221 221 if (!fTrigPattern) 222 *fLog << warn << GetDescriptor() 223 << ": MTriggerPattern not found... Cannot use interlaced pedestal events." << endl; 222 *fLog << warn << "MTriggerPattern not found... Cannot use interlaced pedestal events." << endl; 224 223 225 224 return MExtractPedestal::PreProcess(pList);
Note:
See TracChangeset
for help on using the changeset viewer.