Changeset 2274
- Timestamp:
- 07/12/03 22:01:34 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2273 r2274 15 15 * mraw/MRawRunHeader.cc: 16 16 - added an 'inf' to the log-stream 17 18 * macros/status.C: 19 - added some more plots 20 - added some sanity chacks 21 22 * macros/sumevents.C, macros/sumeventserr.C, macros/sumeventsrms.C 23 macros/sumpedestalrms.C, macros/sumpedestals.C: 24 - fixed SetOptStat 25 26 * manalysis/MBlindPixelCalc.[h,cc]: 27 - removed dangerous SetPixels(int, short*) 28 - changed Id to Idx 29 - fixed a bug in SetPixels which caused crashes 30 - renamed SetPixels to SetPixelIndices 31 32 * mhist/MHCamera.[h,cc]: 33 - removed SetOptStat and fOptStat - found a better solution 34 - fixed DistancetoPrimitive to show TPaveStat correctly 35 - Use GetPainter() instead of an own THistPainter 36 37 * mmain/MStatusDisplay.cc: 38 - some small changes to the layout 17 39 18 40 -
trunk/MagicSoft/Mars/macros/status.C
r2226 r2274 31 31 ///////////////////////////////////////////////////////////////////////////// 32 32 33 void status(const char *fname=" cosmics.root")33 void status(const char *fname="*1947*cosmic*.root") 34 34 { 35 35 // … … 64 64 plist.AddToList(&geomcam); 65 65 66 /* 67 MSrcPosCam src; 68 src.SetXY(1./geomcam.GetConvMm2Deg(), 0); 69 plist.AddToList(&src); 70 */ 71 66 72 // 67 73 // Now setup the tasks and tasklist: … … 78 84 MCerPhotCalc ncalc; 79 85 80 MBlindPixelCalc blind; 86 TArrayS blinds(2); 87 blinds[0] = 271; 88 blinds[1] = 291; 89 90 MBlindPixelCalc blind; 91 //blind.SetPixelIndices(blinds); 81 92 blind.SetUseInterpolation(); 82 93 … … 87 98 MCT1SupercutsCalc calc1; 88 99 100 MHCamEvent hist("PedestalRms"); 101 hist.SetType(1); 102 plist.AddToList(&hist); 103 89 104 // ------------------------------------------- 90 105 MFillH hfill0("Uncleaned [MHCamEvent]", "MCerPhotEvt"); 91 MFillH hfill1("MHHillas", "MHillas"); 92 MFillH hfill2("MHHillasExt"); 93 MFillH hfill3("MHHillasExtSrc [MHHillasExt]", "MHillasSrc"); 94 MFillH hfill4("MHHillasSrc","MHillasSrc"); 95 MFillH hfill5("MHNewImagePar","MNewImagePar"); 96 MFillH hfill6("MHStarMap", "MHillas"); 97 MFillH hfill7("Cleaned [MHCamEvent]", "MCerPhotEvt"); 98 MFillH hfill8("MHHadronness", "MHadronness"); 99 MFillH hfill9("MHSigmaTheta"); 106 MFillH hfill1("Pedestals [MHCamEvent]", "MPedestalCam"); 107 MFillH hfill2("PedestalRms", "MPedestalCam"); 108 MFillH hfill3("MHHillas", "MHillas"); 109 MFillH hfill4("MHHillasExt"); 110 MFillH hfill5("MHHillasExtSrc [MHHillasExt]", "MHillasSrc"); 111 MFillH hfill6("MHHillasSrc","MHillasSrc"); 112 MFillH hfill7("MHNewImagePar","MNewImagePar"); 113 MFillH hfill8("MHStarMap", "MHillas"); 114 MFillH hfill9("Cleaned [MHCamEvent]", "MCerPhotEvt"); 115 MFillH hfill10("MHHadronness", "MHadronness"); 116 MFillH hfill11("MHSigmaTheta"); 100 117 101 118 tlist.AddToList(&read); … … 103 120 tlist.AddToList(&pnsb); 104 121 tlist.AddToList(&ncalc); 122 tlist.AddToList(&blind); 105 123 tlist.AddToList(&hfill0); 106 tlist.AddToList(&blind);107 124 //tlist.AddToList(&sgcal); 108 125 tlist.AddToList(&clean); … … 117 134 tlist.AddToList(&hfill6); 118 135 tlist.AddToList(&hfill7); 119 //tlist.AddToList(&hfill8); 136 tlist.AddToList(&hfill8); 137 tlist.AddToList(&hfill9); 138 //tlist.AddToList(&hfill10); 120 139 121 140 MEvtLoop evtloop; … … 131 150 tlist.PrintStatistics(); 132 151 152 MHCamera &uncl = *((MHCamEvent*)plist.FindObject("Uncleaned"))->GetHistByName(); 153 MHCamera &hped = *((MHCamEvent*)plist.FindObject("Pedestals"))->GetHistByName(); 154 MHCamera &hrms = *((MHCamEvent*)plist.FindObject("PedestalRms"))->GetHistByName(); 155 156 for (int i=0; i<577; i++) 157 { 158 if (uncl.IsUsed(i)) 159 { 160 if (uncl[i+1]>uncl.GetMean()+3*uncl.GetRMS()) 161 cout << "Mean Charge of Pixel-Index #" << i << ": " << uncl[i+1] << " > 3*rms" << endl; 162 if (uncl[i+1]==0) 163 cout << "Mean Charge of Pixel-Index #" << i << ": " << uncl[i+1] << " <= 0" << endl; 164 if (uncl[i+1]<uncl.GetMean()-3*uncl.GetRMS()) 165 cout << "Mean Charge of Pixel-Index #" << i << ": " << uncl[i+1] << " < 3*rms" << endl; 166 } 167 if (hped.IsUsed(i)) 168 { 169 if (hped[i+1]>hped.GetMean()+1.5*hped.GetRMS()) 170 cout << "Mean Pedestal of Pixel-Index #" << i << ": " << hped[i+1] << " > 1.5*rms" << endl; 171 if (hped[i+1]==0) 172 cout << "Mean Pedestal of Pixel-Index #" << i << ": " << hped[i+1] << " <= 0" << endl; 173 if (hped[i+1]<hped.GetMean()-1.5*hped.GetRMS()) 174 cout << "Mean Pedestal of Pixel-Index #" << i << ": " << hped[i+1] << " < 1.5*rms" << endl; 175 } 176 if (hrms.IsUsed(i)) 177 { 178 if (hrms[i+1]>hrms.GetMean()+4*hrms.GetRMS()) 179 cout << "Mean PedestalRMS of Pixel-Index #" << i << ": " << hrms[i+1] << " > 4*rms" << endl; 180 if (hrms[i+1]==0) 181 cout << "Mean PedestalRMS of Pixel-Index #" << i << ": " << hrms[i+1] << " <= 0" << endl; 182 if (hrms[i+1]<hrms.GetMean()-4*hrms.GetRMS()) 183 cout << "Mean PedestalRMS of Pixel-Index #" << i << ": " << hrms[i+1] << " < 4*rms" << endl; 184 } 185 } 186 133 187 // 134 188 // Make sure the display hasn't been deleted by the user while the … … 138 192 { 139 193 // Save data in a postscriptfile (status.ps) 140 d->SaveAsPS();194 //d->SaveAsPS(); 141 195 /* 142 196 * ----------- Write status to a root file ------------ -
trunk/MagicSoft/Mars/macros/sumevents.C
r2265 r2274 90 90 disp3->SetYTitle("\\sigma_{S} [%]"); 91 91 92 disp1->SetOptStat(1111);93 disp2->SetOptStat(1101);94 disp3->SetOptStat(1101);92 TText text(0.1, 0.5, &fname[fname.Last('/')+1]); 93 text.SetTextSize(0.015); 94 text.DrawClone(); 95 95 96 96 c->cd(1); 97 gStyle->SetOptStat(1111); 97 98 disp1->Draw("hist"); 99 gPad->Update(); 98 100 99 101 c->cd(2); 100 102 gPad->SetLogy(); 103 gStyle->SetOptStat(1101); 101 104 disp2->Draw("hist"); 105 gPad->Update(); 102 106 103 107 c->cd(3); 104 108 gPad->SetLogy(); 109 gStyle->SetOptStat(1101); 105 110 disp3->Draw("hist"); 111 gPad->Update(); 106 112 107 113 c->cd(4); 108 114 gPad->SetBorderMode(0); 109 TText text(0.1, 0.95, &fname[fname.Last('/')+1]);110 text.SetTextSize(0.03);111 text.DrawClone();112 115 gPad->Divide(1,1); 113 116 gPad->cd(1); -
trunk/MagicSoft/Mars/macros/sumeventserr.C
r2265 r2274 93 93 disp3->SetYTitle("\\sigma_{S_{err}} [%]"); 94 94 95 disp1->SetOptStat(1111); 96 disp2->SetOptStat(1101); 97 disp3->SetOptStat(1101); 95 TText text(0.1, 0.5, &fname[fname.Last('/')+1]); 96 text.SetTextSize(0.015); 97 text.DrawClone(); 98 99 c->cd(1); 100 gStyle->SetOptStat(1111); 101 disp1->Draw("hist"); 102 gPad->Update(); 103 104 c->cd(2); 105 gPad->SetLogy(); 106 gStyle->SetOptStat(1101); 107 disp2->Draw("hist"); 108 gPad->Update(); 109 110 c->cd(3); 111 gPad->SetLogy(); 112 gStyle->SetOptStat(1101); 113 disp3->Draw("hist"); 114 gPad->Update(); 98 115 99 116 c->cd(4); 100 117 gPad->SetBorderMode(0); 101 TText text(0.1, 0.95, &fname[fname.Last('/')+1]);102 text.SetTextSize(0.03);103 text.DrawClone();104 118 gPad->Divide(1,1); 105 119 gPad->cd(1); … … 117 131 gPad->cd(1); 118 132 disp3->Draw(); 119 120 c->cd(1);121 disp1->Draw("hist");122 123 c->cd(2);124 gPad->SetLogy();125 disp2->Draw("hist");126 127 c->cd(3);128 gPad->SetLogy();129 disp3->Draw("hist");130 133 131 134 c->SaveAs(fname(0, fname.Last('.')+1) + "ps"); -
trunk/MagicSoft/Mars/macros/sumeventsrms.C
r2252 r2274 100 100 disp3->SetYTitle("rel.err [%]"); 101 101 102 TText text(0.1, 0.5, &fname[fname.Last('/')+1]); 103 text.SetTextSize(0.015); 104 text.DrawClone(); 105 106 c->cd(1); 107 disp1->Draw("hist"); 108 109 c->cd(2); 110 gPad->SetLogy(); 111 disp2->Draw("hist"); 112 113 c->cd(3); 114 gPad->SetLogy(); 115 disp3->Draw("hist"); 116 102 117 c->cd(4); 103 118 gPad->SetBorderMode(0); 104 TText text(0.1, 0.95, &fname[fname.Last('/')+1]);105 text.SetTextSize(0.03);106 text.DrawClone();107 119 gPad->Divide(1,1); 108 120 gPad->cd(1); … … 120 132 gPad->cd(1); 121 133 disp3->Draw(); 122 123 c->cd(1);124 disp1->Draw("hist");125 126 c->cd(2);127 gPad->SetLogy();128 disp2->Draw("hist");129 130 c->cd(3);131 gPad->SetLogy();132 disp3->Draw("hist");133 134 134 135 c->SaveAs(fname(0, fname.Last('.')+1) + "ps"); -
trunk/MagicSoft/Mars/macros/sumpedestalrms.C
r2265 r2274 94 94 disp3->SetYTitle("\\sigma_{P_{rms}} [%]"); 95 95 96 disp1->SetOptStat(1111);97 disp2->SetOptStat(1101);98 disp3->SetOptStat(1101);96 TText text(0.1, 0.5, &fname[fname.Last('/')+1]); 97 text.SetTextSize(0.015); 98 text.DrawClone(); 99 99 100 100 c->cd(1); 101 gStyle->SetOptStat(1111); 101 102 disp1->Draw("hist"); 103 gPad->Update(); 102 104 103 105 c->cd(2); 106 gStyle->SetOptStat(1101); 104 107 disp2->Draw("hist"); 108 gPad->Update(); 105 109 106 110 c->cd(3); 111 gStyle->SetOptStat(1101); 107 112 disp3->Draw("hist"); 113 gPad->Update(); 108 114 109 115 c->cd(4); 110 116 gPad->SetBorderMode(0); 111 TText text(0.1, 0.95, &fname[fname.Last('/')+1]);112 text.SetTextSize(0.03);113 text.DrawClone();114 117 gPad->Divide(1,1); 115 118 gPad->cd(1); -
trunk/MagicSoft/Mars/macros/sumpedestals.C
r2265 r2274 90 90 disp3->SetYTitle("\\sigma_{P} [%]"); 91 91 92 disp1->SetOptStat(1111);93 disp2->SetOptStat(1101);94 disp3->SetOptStat(1101);92 TText text(0.1, 0.5, &fname[fname.Last('/')+1]); 93 text.SetTextSize(0.015); 94 text.DrawClone(); 95 95 96 96 c->cd(1); 97 gStyle->SetOptStat(1111); 97 98 disp1->Draw("hist"); 99 gPad->Update(); 98 100 99 101 c->cd(2); 102 gStyle->SetOptStat(1101); 100 103 disp2->Draw("hist"); 104 gPad->Update(); 101 105 102 106 c->cd(3); 107 gStyle->SetOptStat(1101); 103 108 disp3->Draw("hist"); 109 gPad->Update(); 104 110 105 111 c->cd(4); 106 112 gPad->SetBorderMode(0); 107 TText text(0.1, 0.95, &fname[fname.Last('/')+1]);108 text.SetTextSize(0.03);109 text.DrawClone();110 113 gPad->Divide(1,1); 111 114 gPad->cd(1); -
trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.cc
r2206 r2274 29 29 // 30 30 // This is the specific image cleaning for a list of pixels. This task 31 // sets the pixels listed in fPixelsI Dto unused so they should not be31 // sets the pixels listed in fPixelsIdx to unused so they should not be 32 32 // used for analysis (eg calculation of hillas parameters). 33 33 // … … 130 130 return kTRUE; 131 131 132 const UShort_t size = fPixelsI D.GetSize();132 const UShort_t size = fPixelsIdx.GetSize(); 133 133 134 134 if (size == 0) … … 145 145 // through the macros 146 146 147 UShort_t numids = fPixelsI D.GetSize();147 UShort_t numids = fPixelsIdx.GetSize(); 148 148 149 149 for(Int_t i = 0; i<numids; i++) 150 fPixels->SetPixelBlind(fPixelsI D[i]);150 fPixels->SetPixelBlind(fPixelsIdx[i]); 151 151 152 152 return kTRUE; … … 167 167 168 168 // 169 // remove the pixels in fPixelsI Dif they are set to be used,169 // remove the pixels in fPixelsIdx if they are set to be used, 170 170 // (set them to 'unused' state) 171 171 // … … 174 174 MCerPhotPix &pix = (*fEvt)[i]; 175 175 176 const Int_t id = pix.GetPixId();177 178 if (!fPixels->IsBlind(id ))176 const Int_t idx = pix.GetPixId(); 177 178 if (!fPixels->IsBlind(idx)) 179 179 continue; 180 180 181 const MGeomPix &gpix = (*fGeomCam)[id]; 182 183 const Int_t n = gpix.GetNumNeighbors(); 181 const MGeomPix &gpix = (*fGeomCam)[idx]; 184 182 185 183 Int_t num = TESTBIT(fFlags, kUseCentralPixel) ? 1 : 0; … … 188 186 perr[i] = TESTBIT(fFlags, kUseCentralPixel) ? pix.GetErrorPhot() : 0; 189 187 190 nphot[i] *= fGeomCam->GetPixRatio(id );188 nphot[i] *= fGeomCam->GetPixRatio(idx); 191 189 // FIXME: perr[i] ??? 192 190 191 const Int_t n = gpix.GetNumNeighbors(); 193 192 for (int j=0; j<n; j++) 194 193 { 195 const UShort_t nid = gpix.GetNeighbor(j);196 197 if (fPixels->IsBlind(nid ))194 const UShort_t nidx = gpix.GetNeighbor(j); 195 196 if (fPixels->IsBlind(nidx)) 198 197 continue; 199 198 200 const MCerPhotPix *evtpix = fEvt->GetPixById(nid );199 const MCerPhotPix *evtpix = fEvt->GetPixById(nidx); 201 200 if (evtpix) 202 201 { 203 nphot[i] += evtpix->GetNumPhotons()*fGeomCam->GetPixRatio(nid );202 nphot[i] += evtpix->GetNumPhotons()*fGeomCam->GetPixRatio(nidx); 204 203 perr[i] += evtpix->GetErrorPhot(); 205 204 // FIXME: perr[i] ??? … … 208 207 } 209 208 210 nphot[i] /= num*fGeomCam->GetPixRatio(id );209 nphot[i] /= num*fGeomCam->GetPixRatio(idx); 211 210 perr[i] /= num/*FIXME:???*/; 212 211 } … … 235 234 236 235 // 237 // remove the pixels in fPixelsI Dif they are set to be used,236 // remove the pixels in fPixelsIdx if they are set to be used, 238 237 // (set them to 'unused' state) 239 238 // … … 244 243 if (fPixels->IsBlind(pix.GetPixId())) 245 244 pix.SetPixelUnused(); 246 247 245 } 248 246 } … … 264 262 // -------------------------------------------------------------------------- 265 263 // 266 // Set pixels to no be used.267 // This member function (public) should be called from the macro (or268 // analysis program) setting the desired blind pixels.269 // In the future, the blind pixels may be extracted from information which270 // is already in the root file.271 //272 void MBlindPixelCalc::SetPixels(Int_t num, Short_t *ids)273 {274 fPixelsID.Adopt(num, ids);275 }276 277 // --------------------------------------------------------------------------278 //279 264 // - Check whether pixels to disable are available. If pixels are 280 265 // given by the user nothing more is done. … … 290 275 // If pixels are given by the user, we are already done 291 276 // 292 if (fPixelsI D.GetSize() > 0)277 if (fPixelsIdx.GetSize() > 0) 293 278 return kTRUE; 294 279 … … 355 340 out << " " << GetUniqueName() << ".SetUseCentralPixel();" << endl; 356 341 357 if (fPixelsI D.GetSize()==0)342 if (fPixelsIdx.GetSize()==0) 358 343 return; 359 344 360 345 out << " {" << endl; 361 346 out << " TArrayS dummy;" << endl; 362 for (int i=0; i<fPixelsI D.GetSize(); i++)363 out << " dummy[" << i << "]=" << ((TArrayS)fPixelsI D)[i] << ";" << endl;347 for (int i=0; i<fPixelsIdx.GetSize(); i++) 348 out << " dummy[" << i << "]=" << ((TArrayS)fPixelsIdx)[i] << ";" << endl; 364 349 out << " " << GetUniqueName() << ".SetPixels(dummy);" << endl; 365 350 out << " }" << endl; -
trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.h
r2206 r2274 21 21 MGeomCam *fGeomCam; //! 22 22 23 TArrayS fPixelsI D; // Pixel IDs for blind pixels, which are entered by the user.23 TArrayS fPixelsIdx; // Pixel Indices for blind pixels, which are entered by the user. 24 24 25 25 Byte_t fFlags; // flag for the method which is used … … 55 55 } 56 56 57 void SetPixels(Int_t num, Short_t *ids); 58 void SetPixels(const TArrayS pix) { SetPixels((Int_t)pix.GetSize(), (Short_t*)pix.GetArray()); } 57 void SetPixelIndices(const TArrayS &pix) { fPixelsIdx = pix; } 59 58 virtual Bool_t ReInit(MParList *pList); 60 59 -
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r2265 r2274 81 81 // Default Constructor. To be used by the root system ONLY. 82 82 // 83 MHCamera::MHCamera() : TH1D(), fGeomCam(NULL), fColors(kItemsLegend) , fOptStat(-1)83 MHCamera::MHCamera() : TH1D(), fGeomCam(NULL), fColors(kItemsLegend) 84 84 { 85 85 SetDirectory(NULL); … … 478 478 { 479 479 opt.ReplaceAll("hist", ""); 480 Int_t mode = gStyle->GetOptStat(); 481 TVirtualPad *save = gPad; 482 gPad=NULL; 483 gStyle->SetOptStat(fOptStat<0 ? mode : fOptStat); 484 gPad=save; 485 TH1D::Paint(o); 486 gPad=NULL; 487 gStyle->SetOptStat(mode); 488 gPad=save; 480 TH1D::Paint(opt); 489 481 return; 490 482 } … … 496 488 Bool_t iscol = isbox ? !opt.Contains("nocol") : 1; 497 489 498 THistPainter paint; 499 if (!TestBit(TH1::kNoStats)) 500 { 501 paint.SetHistogram(this); 502 paint.PaintStat(fOptStat<0?gStyle->GetOptStat():fOptStat, NULL); 490 GetPainter(); 491 if (fPainter) 492 { 493 if (!TestBit(TH1::kNoStats)) 494 { 495 fPainter->SetHistogram(this); 496 fPainter->PaintStat(gStyle->GetOptStat(), NULL); 497 } 498 499 // Paint primitives (pixels, color legend, photons, ...) 500 if (fPainter->InheritsFrom(THistPainter::Class())) 501 ((THistPainter*)fPainter)->PaintTitle(); 503 502 } 504 503 505 504 // Update Contents of the pixels and paint legend 506 505 Update(gPad->GetLogy(), isbox, iscol); 507 508 // Paint primitives (pixels, color legend, photons, ...)509 paint.PaintTitle();510 506 PaintAxisTitle(); 511 507 } … … 950 946 Int_t MHCamera::DistancetoPrimitive(Int_t px, Int_t py) 951 947 { 948 const Int_t kMaxDiff = 7; 949 950 TPaveStats *box = (TPaveStats*)gPad->GetPrimitive("stats"); 951 if (box) 952 { 953 const Double_t w = box->GetY2NDC()-box->GetY1NDC(); 954 box->SetX1NDC(gStyle->GetStatX()-gStyle->GetStatW()); 955 box->SetY1NDC(gStyle->GetStatY()-w); 956 box->SetX2NDC(gStyle->GetStatX()); 957 box->SetY2NDC(gStyle->GetStatY()); 958 } 959 952 960 if (TString(GetDrawOption()).Contains("hist", TString::kIgnoreCase)) 953 961 return TH1D::DistancetoPrimitive(px, py); … … 959 967 return 0; 960 968 } 961 return 999999; 969 970 if (!box) 971 return 999999; 972 973 const Int_t dist = box->DistancetoPrimitive(px, py); 974 if (dist > kMaxDiff) 975 return 999999; 976 977 gPad->SetSelected(box); 978 return dist; 962 979 } 963 980 -
trunk/MagicSoft/Mars/mhist/MHCamera.h
r2265 r2274 35 35 TList *fNotify; //! 36 36 37 Int_t fOptStat;37 //Int_t fOptStat; 38 38 39 39 //TGStatusBar *fStatusBar; … … 55 55 }; 56 56 57 Bool_t IsUsed(Int_t idx) const { return TESTBIT(const_cast<TArrayC&>(fUsed)[idx], kIsUsed); }58 57 void SetUsed(Int_t idx) { SETBIT(fUsed[idx], kIsUsed); } 59 58 void ResetUsed(Int_t idx) { CLRBIT(fUsed[idx], kIsUsed); } … … 73 72 MHCamera(const MGeomCam &geom, const char *name="", const char *title=""); 74 73 ~MHCamera(); 74 75 Bool_t IsUsed(Int_t idx) const { return TESTBIT(const_cast<TArrayC&>(fUsed)[idx], kIsUsed); } 75 76 76 77 //void AddPixContent(Int_t idx) const { AddBinContent(idx+1); } … … 135 136 136 137 void SetAutoScale(); // *MENU* 137 void SetOptStat(Int_t os=-1); // *MENU*138 //void SetOptStat(Int_t os=-1); // *MENU* 138 139 139 140 void SetPix(const Int_t pixnum, const Int_t color, Float_t min, Float_t max); // New function added by M.Lopez in 31-01-03 … … 150 151 151 152 inline void MHCamera::SetAutoScale() { fMinimum = fMaximum = -1111; } 152 inline void MHCamera::SetOptStat(Int_t os) { fOptStat = os; }153 //inline void MHCamera::SetOptStat(Int_t os) { fOptStat = os; } 153 154 154 155 #endif -
trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc
r2215 r2274 289 289 fList->Add(l); 290 290 291 TGLayoutHints *layb = new TGLayoutHints(kLHintsCenterX|kLHintsTop, 10, 10, 10, 10);291 TGLayoutHints *layb = new TGLayoutHints(kLHintsCenterX|kLHintsTop, 10, 10, 5, 5); 292 292 fList->Add(layb); 293 293 f->AddFrame(l, layb); … … 309 309 mars->Associate(this); 310 310 311 TGLayoutHints *lay2 = new TGLayoutHints(kLHintsCenterX|kLHintsCenterY, 10, 10, 10, 10);311 TGLayoutHints *lay2 = new TGLayoutHints(kLHintsCenterX|kLHintsCenterY, 10, 10, 5, 5); 312 312 fList->Add(lay2); 313 313 f->AddFrame(mars, lay2); … … 324 324 fList->Add(l); 325 325 f->AddFrame(l, layb); 326 327 TGLayoutHints *layc = new TGLayoutHints(kLHintsCenterX|kLHintsTop, 10, 10, 0, 5); 328 fList->Add(layc); 329 330 l = new TGLabel(f, "<< Thomas Bretz >>"); 331 fList->Add(l); 332 f->AddFrame(l, layc); 326 333 } 327 334
Note:
See TracChangeset
for help on using the changeset viewer.