Changeset 2180
- Timestamp:
- 06/16/03 15:13:21 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2178 r2180 71 71 * mraw/Makefile: 72 72 - added -I../mgui - PRELIMINARY 73 74 * mhist/MH.cc: 75 - fixed Draw(TH1&,TH1&) for newer root versions 76 77 * mhist/MHHadronness.cc: 78 - fixed call to fGraph->SetMaximum(1) for newer root versions 79 80 * mmain/MStatusDisplay.cc: 81 - fixed for gcc 3.* and newer root versions 82 73 83 74 84 -
trunk/MagicSoft/Mars/manalysis/MCurrents.h
r2178 r2180 10 10 #endif 11 11 12 #include <iostream.h>13 12 class MCurrents : public MCamEvent 14 13 { -
trunk/MagicSoft/Mars/manalysis/MPedestalCam.cc
r2178 r2180 182 182 } 183 183 184 Bool_t MPedestalCam::GetPixelContent(Float_t &val, Int_t idx, Float_t ratio =1, Int_t type=0) const184 Bool_t MPedestalCam::GetPixelContent(Float_t &val, Int_t idx, Float_t ratio, Int_t type) const 185 185 { 186 186 val = (*this)[idx].GetMean()*ratio; -
trunk/MagicSoft/Mars/mbase/MDirIter.cc
r2178 r2180 285 285 // matching entries are printed. 286 286 // 287 void MDirIter::Print(const Option_t *o) 287 void MDirIter::Print(const Option_t *o) const 288 288 { 289 289 TString s(o); -
trunk/MagicSoft/Mars/mbase/MDirIter.h
r2178 r2180 29 29 fList.SetOwner(); 30 30 } 31 MDirIter( MDirIter &dir) : fNext(&fList), fDirPtr(NULL)31 MDirIter(const MDirIter &dir) : fNext(&fList), fDirPtr(NULL) 32 32 { 33 33 fList.SetOwner(); … … 60 60 void SetFilter(const char *f="") { fFilter = f; } 61 61 62 void Print(const Option_t *o="") ;62 void Print(const Option_t *o="") const; 63 63 64 64 ClassDef(MDirIter, 1) // Iterator for files in several directories (with filters) -
trunk/MagicSoft/Mars/mhist/MH.cc
r2173 r2180 733 733 // Rename first statistics box 734 734 // 735 TPaveStats &s1 = *(TPaveStats*)gPad->FindObject("stats"); 736 const Double_t x1 = s1.GetX1NDC()-0.01; 737 s1.SetName((TString)"Stat"+hist1.GetTitle()); 738 s1.SetX1NDC(x1-(s1.GetX2NDC()-s1.GetX1NDC())); 739 s1.SetX2NDC(x1); 735 // Where to get the TPaveStats depends on the root version 736 TPaveStats *s1 = (TPaveStats*)gPad->FindObject("stats"); 737 if (!s1) 738 s1 = (TPaveStats*)hist1.GetListOfFunctions()->FindObject("stats"); 739 else 740 s1->SetName((TString)"Stat"+hist1.GetTitle()); 741 742 if (s1) 743 { 744 const Double_t x1 = s1->GetX1NDC()-0.01; 745 s1->SetX1NDC(x1-(s1->GetX2NDC()-s1->GetX1NDC())); 746 s1->SetX2NDC(x1); 747 } 740 748 741 749 // … … 748 756 // Draw Legend 749 757 // 750 TPaveStats &s2 = *(TPaveStats*)gPad->FindObject("stats"); 751 TLegend &l = *new TLegend(s2.GetX1NDC(), 752 s2.GetY1NDC()-0.015-(s2.GetY2NDC()-s2.GetY1NDC())/2, 753 s2.GetX2NDC(), 754 s2.GetY1NDC()-0.01 755 ); 756 l.AddEntry(&hist1, hist1.GetTitle()); 757 l.AddEntry(&hist2, hist2.GetTitle()); 758 l.SetTextSize(s2.GetTextSize()); 759 l.SetTextFont(s2.GetTextFont()); 760 l.SetBorderSize(s2.GetBorderSize()); 761 l.SetBit(kCanDelete); 762 l.Draw(); 758 // Where to get the TPaveStats depends on the root version 759 TPaveStats *s2 = (TPaveStats*)gPad->FindObject("stats"); 760 if (!s2) 761 s2 = (TPaveStats*)hist2.GetListOfFunctions()->FindObject("stats"); 762 763 if (s2) 764 { 765 TLegend &l = *new TLegend(s2->GetX1NDC(), 766 s2->GetY1NDC()-0.015-(s2->GetY2NDC()-s2->GetY1NDC())/2, 767 s2->GetX2NDC(), 768 s2->GetY1NDC()-0.01 769 ); 770 l.AddEntry(&hist1, hist1.GetTitle()); 771 l.AddEntry(&hist2, hist2.GetTitle()); 772 l.SetTextSize(s2->GetTextSize()); 773 l.SetTextFont(s2->GetTextFont()); 774 l.SetBorderSize(s2->GetBorderSize()); 775 l.SetBit(kCanDelete); 776 l.Draw(); 777 } 763 778 } 764 779 -
trunk/MagicSoft/Mars/mhist/MHHadronness.cc
r2173 r2180 93 93 fGraph = new TGraph; 94 94 fGraph->SetTitle("Acceptance Gammas vs. Hadrons"); 95 fGraph->SetMaximum(1);96 95 fGraph->SetMarkerStyle(kFullDotSmall); 97 96 … … 474 473 h->SetXTitle("Acceptance Hadrons"); 475 474 h->SetYTitle("Acceptance Gammas"); 475 fGraph->SetMaximum(1); 476 476 fGraph->Draw("P"); 477 477 gPad->Modified(); -
trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc
r2178 r2180 675 675 676 676 // layout and map new tab 677 #if ROOT_VERSION_CODE < ROOT_VERSION(3,03,00)677 //#if ROOT_VERSION_CODE < ROOT_VERSION(3,03,00) 678 678 MapSubwindows(); 679 679 Layout(); 680 #else681 Layout();682 MapSubwindows();683 #endif680 //#else 681 // Layout(); 682 // MapSubwindows(); 683 //#endif 684 684 685 685 // display new tab in the main frame … … 1435 1435 const TString newstr("%%DocumentPaperSizes: a4\n%%Orientation: Landscape"); 1436 1436 1437 // gcc 3.2: 1438 /* 1439 fstream f(name, ios::in|ios::out|ios::nocreate); 1437 /* FIXME: Does gcc 2.95 need this flag, too? |ios::nocreate */ 1438 fstream f(name, ios::in|ios::out); 1440 1439 1441 1440 TString str; 1442 1441 f >> str; 1443 1442 1444 streampos p = f.tellg()+1;1443 const streampos p = f.tellg(); 1445 1444 1446 1445 char *c1 = new char[newstr.Length()]; … … 1450 1449 1451 1450 f.seekp(p); 1451 f.seekp(1, ios::cur); 1452 1452 1453 1453 f << newstr; … … 1455 1455 while (1) 1456 1456 { 1457 streampos p1 = f.tellg();1457 const streampos p1 = f.tellg(); 1458 1458 f.read(c2, newstr.Length()); 1459 streampos p2 = f.tellg();1459 const streampos p2 = f.tellg(); 1460 1460 f.seekp(p1); 1461 1461 if (f) … … 1474 1474 delete c2; 1475 1475 delete c1; 1476 */1477 1476 } 1478 1477 -
trunk/MagicSoft/Mars/mraw/MRawEvtData.h
r2178 r2180 15 15 class MArrayS; 16 16 class MArrayB; 17 18 #include <iostream.h>19 17 20 18 class MRawEvtData : public MCamEvent
Note:
See TracChangeset
for help on using the changeset viewer.