Changeset 4834 for trunk/MagicSoft/Mars/mimage
- Timestamp:
- 09/02/04 15:33:16 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mimage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHImagePar.cc
r4710 r4834 88 88 MBinning bins; 89 89 90 bins.SetEdges( 75, 0, 150);90 bins.SetEdges(61, 0, 60); 91 91 bins.Apply(fHistSatHi); 92 92 bins.Apply(fHistSatHi); … … 134 134 } 135 135 136 void MHImagePar::Paint(Option_t *) 137 { 138 TVirtualPad *savepad = gPad; 139 if (fHistSatHi.GetEntries()>0) 140 { 141 gPad->cd(1); 142 gPad->SetLogy(); 143 } 144 gPad = savepad; 145 } 146 136 147 // -------------------------------------------------------------------------- 137 148 // … … 151 162 pad->cd(1); 152 163 gPad->SetBorderMode(0); 153 /*154 gPad->SetLogy();155 TAxis &x = *fHistSatHi.GetXaxis();156 x.SetRangeUser(0.0, x.GetXmax());157 fHistSatHi.SetMinimum(0.1);158 fHistSatLo.SetMinimum(0.1);159 fHistSatHi.SetMaximum(0.1);160 fHistSatLo.SetMaximum(0.1);161 */162 164 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 168 fHistSatLo.SetMaximum(0.1); // dummy value to allow log-scale 163 169 164 170 pad->cd(2); -
trunk/MagicSoft/Mars/mimage/MHImagePar.h
r4710 r4834 32 32 TH1F &GetHistIslands() { return fHistIslands; } 33 33 34 void Draw(Option_t *opt=NULL); 34 void Paint(Option_t *opt=""); 35 void Draw(Option_t *opt=""); 35 36 36 37 ClassDef(MHImagePar, 1) // Histograms of image parameters
Note:
See TracChangeset
for help on using the changeset viewer.