Changeset 5142 for trunk/MagicSoft/Mars
- Timestamp:
- 09/28/04 12:18:47 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mimage
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MConcentration.cc
r4710 r5142 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Author(s): Harald Kornmayer 1/2001 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@atsro.uni-wuerzburg.de> 20 19 ! Author(s): Rudolf Bock 10/2001 <mailto:Rudolf.Bock@cern.ch> 21 20 ! Author(s): Wolfgang Wittek 6/2002 <mailto:wittek@mppmu.mpg.de> -
trunk/MagicSoft/Mars/mimage/MHHillas.cc
r4700 r5142 306 306 gPad->SetBorderMode(0); 307 307 gPad->SetLogx(); 308 gPad->SetLogy(); 308 309 fSize->Draw(); 309 310 -
trunk/MagicSoft/Mars/mimage/MHHillasExt.cc
r3682 r5142 118 118 bins.Apply(fHAsym); 119 119 120 bins.SetEdges(10 1, 0, 593);120 bins.SetEdges(100, 0, 593); 121 121 bins.Apply(fHMaxDist); 122 122 } … … 266 266 267 267 delete pad->GetPad(4); 268 269 pad->Modified();270 pad->Update();271 268 } 272 269 -
trunk/MagicSoft/Mars/mimage/MHHillasSrc.cc
r4840 r5142 70 70 // connect all the histogram with the container fHist 71 71 // 72 fAlpha = new TH1F("Alpha", "Alpha of Ellipse", 181, -90, 90);72 fAlpha = new TH1F("Alpha", "Alpha of Ellipse", 90, -90, 90); 73 73 fDist = new TH1F("Dist", "Dist of Ellipse", 100, 0, 445); 74 74 fCosDA = new TH1F("CosDA", "cos(Delta,Alpha) of Ellipse", 101, -1, 1); 75 75 fDCA = new TH1F("DCA", "Distance of closest aproach", 101, -500, 500); 76 fDCADelta = new TH1F("DCADelta", "Angle between shower and x-axis", 101, 0, 360);76 fDCADelta = new TH1F("DCADelta", "Angle between shower and x-axis", 80, 0, 360); 77 77 78 78 fAlpha->SetDirectory(NULL); … … 249 249 gPad->SetBorderMode(0); 250 250 fDCADelta->Draw(); 251 252 pad->Modified();253 pad->Update();254 251 } 255 252 -
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 -
trunk/MagicSoft/Mars/mimage/MHNewImagePar.cc
r4833 r5142 128 128 fHistConc1.SetFillStyle(4000); 129 129 fHistConc1.SetLineColor(kBlue); 130 fHistConc.SetFillStyle(0);131 130 132 131 … … 139 138 bins.Apply(fHistConc1); 140 139 141 bins.SetEdges(75, 0 , 150);140 bins.SetEdges(75, 0.5, 150.5); 142 141 bins.Apply(fHistUsedPix); 143 142 bins.Apply(fHistCorePix); … … 200 199 } 201 200 202 void MHNewImagePar::Paint(Option_t *) 203 { 204 TVirtualPad *savepad = gPad; 205 if (fHistLeakage1.GetEntries()>0 && fHistLeakage2.GetEntries()>0) 206 { 207 fHistLeakage1.SetMinimum(-1111); 208 fHistLeakage2.SetMinimum(-1111); 209 gPad->cd(1); 201 void MHNewImagePar::Paint(Option_t *o) 202 { 203 if (TString(o)==(TString)"log" && fHistLeakage1.GetMaximum()>0) 210 204 gPad->SetLogy(); 211 }212 gPad = savepad;213 205 } 214 206 … … 233 225 x.SetRangeUser(0.0, x.GetXmax()); 234 226 MH::DrawSame(fHistLeakage1, fHistLeakage2, "Leakage1 and Leakage2"); 227 fHistLeakage1.SetMinimum(); 228 fHistLeakage2.SetMinimum(); 229 fHistLeakage2.SetMaximum(0.1); // dummy value to allow log-scale 230 AppendPad("log"); 235 231 236 232 pad->cd(2); … … 245 241 gPad->SetBorderMode(0); 246 242 MH::DrawSame(fHistCoreArea, fHistUsedArea, "Area of core/used Pixels"); 247 248 pad->Modified();249 pad->Update();250 243 } 251 244
Note:
See TracChangeset
for help on using the changeset viewer.