Changeset 5142 for trunk/MagicSoft/Mars/mimage/MHImagePar.cc
- Timestamp:
- 09/28/04 12:18:47 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHImagePar.cc
r4834 r5142 88 88 MBinning bins; 89 89 90 bins.SetEdges(6 1, 0, 60);90 bins.SetEdges(60, -0.5, 59.5); 91 91 bins.Apply(fHistSatHi); 92 92 bins.Apply(fHistSatHi); 93 93 94 bins.SetEdges(1 6, 0, 15);94 bins.SetEdges(15, 0.5, 15.5); 95 95 bins.Apply(fHistIslands); 96 96 } … … 134 134 } 135 135 136 void MHImagePar::Paint(Option_t * )136 void MHImagePar::Paint(Option_t *o) 137 137 { 138 TVirtualPad *savepad = gPad; 139 if (fHistSatHi.GetEntries()>0) 140 { 141 gPad->cd(1); 138 if (TString(o)==(TString)"log1" && fHistSatHi.GetMaximum()>0) 142 139 gPad->SetLogy(); 143 }144 gPad = savepad;140 if (TString(o)==(TString)"log2" && fHistIslands.GetMaximum()>0) 141 gPad->SetLogy(); 145 142 } 146 143 … … 163 160 gPad->SetBorderMode(0); 164 161 MH::DrawSame(fHistSatHi, fHistSatLo, "Saturating Pixels"); 165 166 fHistSatHi.SetMinimum(-1111); // switch off to allow log-scale 167 fHistSatLo.SetMinimum(-1111); // switch off to allow log-scale 162 fHistSatHi.SetMinimum(); // switch off to allow log-scale 163 fHistSatLo.SetMinimum(); // switch off to allow log-scale 168 164 fHistSatLo.SetMaximum(0.1); // dummy value to allow log-scale 165 AppendPad("log1"); 169 166 170 167 pad->cd(2); 171 168 gPad->SetBorderMode(0); 172 169 fHistIslands.Draw(); 173 174 pad->Modified(); 175 pad->Update(); 170 AppendPad("log2"); 176 171 } 177 172
Note:
See TracChangeset
for help on using the changeset viewer.