Changeset 6948 for trunk/MagicSoft/Mars/mimage
- Timestamp:
- 04/18/05 10:17:03 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mimage
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHHillas.cc
r6890 r6948 303 303 else 304 304 { 305 fLength->SetName("LengthSame"); 306 fWidth->SetName("WidthSame"); 307 fDistC->SetName("DistCSame"); 308 fDelta->SetName("DeltaSame"); 309 fSize->SetName("SizeSame"); 310 fCenter->SetName("CenterSame"); 311 305 312 fDistC->SetLineColor(kGreen); 306 313 fSize->SetLineColor(kGreen); 307 314 fDelta->SetLineColor(kGreen); 308 309 315 fWidth->SetLineColor(kMagenta); 310 316 fLength->SetLineColor(kCyan); … … 313 319 pad->cd(1); 314 320 gPad->SetBorderMode(0); 321 RemoveFromPad("WidthSame"); 322 RemoveFromPad("LengthSame"); 315 323 MH::DrawSame(*fWidth, *fLength, "Width'n'Length", same); 316 324 317 325 pad->cd(2); 318 326 gPad->SetBorderMode(0); 327 RemoveFromPad("DistCSame"); 319 328 fDistC->Draw(same?"same":""); 320 329 … … 323 332 gPad->SetLogx(); 324 333 gPad->SetLogy(); 334 RemoveFromPad("SizeSame"); 325 335 fSize->Draw(same?"same":""); 326 336 … … 339 349 h->SetMarkerColor(kBlack); 340 350 }*/ 351 RemoveFromPad("CenterSame"); 341 352 fCenter->SetMarkerColor(kGreen); 342 353 fCenter->Draw("same"); … … 357 368 pad->cd(5); 358 369 gPad->SetBorderMode(0); 370 RemoveFromPad("DeltaSame"); 359 371 fDelta->Draw(same?"same":""); 360 372 … … 363 375 delete gPad; 364 376 365 pad->Modified();366 pad->Update();377 //pad->Modified(); 378 //pad->Update(); 367 379 } 368 380 -
trunk/MagicSoft/Mars/mimage/MHHillasExt.cc
r6907 r6948 83 83 84 84 fHAsym.SetName("Asymmetry"); 85 fHM3Long.SetName(" 3rd Mom Long");86 fHM3Trans.SetName(" 3rd Mom Trans");87 fHMaxDist.SetName("Max 85 fHM3Long.SetName("M3l"); 86 fHM3Trans.SetName("M3t"); 87 fHMaxDist.SetName("MaxDist"); 88 88 89 89 fHAsym.SetTitle("Asymmetry"); … … 259 259 else 260 260 { 261 fHAsym.SetName("AsymmetrySame"); 262 fHM3Long.SetName("M3lSame"); 263 fHM3Trans.SetName("M3tSame"); 264 fHMaxDist.SetName("MaxDistSame"); 261 265 fHM3Long.SetLineColor(kMagenta); 262 266 fHM3Trans.SetLineColor(kCyan); 263 264 267 fHAsym.SetLineColor(kBlue); 265 268 fHMaxDist.SetLineColor(kBlue); … … 268 271 pad->cd(1); 269 272 gPad->SetBorderMode(0); 273 RemoveFromPad("M3lSame"); 274 RemoveFromPad("M3tSame"); 270 275 MH::DrawSame(fHM3Long, fHM3Trans, "3^{rd} Moments", same); 271 276 272 277 pad->cd(3); 273 278 gPad->SetBorderMode(0); 279 RemoveFromPad("AsymmetrySame"); 274 280 fHAsym.Draw(same?"same":""); 275 281 276 282 pad->cd(2); 277 283 gPad->SetBorderMode(0); 284 RemoveFromPad("MaxDistSame"); 278 285 fHMaxDist.Draw(same?"same":""); 279 286 -
trunk/MagicSoft/Mars/mimage/MHHillasSrc.cc
r6907 r6948 156 156 fCosDA->Fill(h.GetCosDeltaAlpha(), w); 157 157 fDCA ->Fill(fUseMmScale ? h.GetDCA() : fMm2Deg*h.GetDCA(), w); 158 fDCADelta 158 fDCADelta->Fill(h.GetDCADelta(), w); 159 159 160 160 return kTRUE; … … 231 231 else 232 232 { 233 fAlpha->SetName("AlphaSame"); 234 fDist ->SetName("DistSame"); 235 fCosDA->SetName("CosDASame"); 236 fDCA ->SetName("DCASame"); 237 fDCADelta->SetName("DCADeltaSame"); 233 238 fAlpha->SetLineColor(kGreen); 234 239 fDist->SetLineColor(kGreen); … … 240 245 pad->cd(1); 241 246 gPad->SetBorderMode(0); 247 RemoveFromPad("AlphaSame"); 242 248 fAlpha->Draw(same?"same":""); 243 249 244 250 pad->cd(2); 245 251 gPad->SetBorderMode(0); 252 RemoveFromPad("DistSame"); 246 253 fDist->Draw(same?"same":""); 247 254 248 255 pad->cd(3); 249 256 gPad->SetBorderMode(0); 257 RemoveFromPad("DCASame"); 250 258 fDCA->Draw(same?"same":""); 251 259 … … 258 266 p->cd(1); 259 267 gPad->SetBorderMode(0); 268 RemoveFromPad("CosDASame"); 260 269 fCosDA->Draw(same?"same":""); 261 270 262 271 p->cd(2); 263 272 gPad->SetBorderMode(0); 273 RemoveFromPad("DCADeltaSame"); 264 274 fDCADelta->Draw(same?"same":""); 265 275 } -
trunk/MagicSoft/Mars/mimage/MHImagePar.cc
r6907 r6948 232 232 else 233 233 { 234 fHistSatHi.SetName("SatHiSame"); 235 fHistSatLo.SetName("SatLoSame"); 236 fHistIslands.SetName("IslandsSame"); 237 fHistSizeSubIslands.SetName("SizeSubSame"); 238 fHistSizeMainIsland.SetName("SizeMainSame"); 239 fHistNumSP.SetName("NumSPSame"); 240 fHistSizeSP.SetName("SizeSPSame"); 241 234 242 fHistSatHi.SetLineColor(kMagenta); 235 243 fHistSatLo.SetLineColor(kCyan); 236 237 244 fHistSizeMainIsland.SetLineColor(kMagenta); 238 245 fHistSizeSubIslands.SetLineColor(kCyan); 239 240 246 fHistIslands.SetLineColor(kGreen); 241 247 fHistNumSP.SetLineColor(kGreen); … … 245 251 pad->cd(1); 246 252 gPad->SetBorderMode(0); 253 RemoveFromPad("SatHiSame"); 254 RemoveFromPad("SatLoSame"); 247 255 MH::DrawSame(fHistSatHi, fHistSatLo, "Saturating Pixels", same); 248 256 fHistSatHi.SetMinimum(); // switch off to allow log-scale … … 252 260 pad->cd(4); 253 261 gPad->SetBorderMode(0); 262 RemoveFromPad("SizeSubSame"); 263 RemoveFromPad("SizeMainSame"); 254 264 MH::DrawSame(fHistSizeMainIsland, fHistSizeSubIslands, "Sizes...", same); 255 265 fHistSizeMainIsland.SetMinimum(); // switch off to allow log-scale … … 265 275 pad->GetPad(2)->cd(1); 266 276 gPad->SetBorderMode(0); 277 RemoveFromPad("NumSPSame"); 267 278 fHistNumSP.Draw(same?"same":""); 268 279 pad->GetPad(2)->cd(2); 269 280 gPad->SetBorderMode(0); 281 RemoveFromPad("SizeSPSame"); 270 282 fHistSizeSP.Draw(same?"same":""); 271 283 } … … 273 285 pad->cd(3); 274 286 gPad->SetBorderMode(0); 287 RemoveFromPad("IslandsSame"); 275 288 fHistIslands.Draw(same?"same":""); 276 289 } -
trunk/MagicSoft/Mars/mimage/MHNewImagePar.cc
r6907 r6948 309 309 else 310 310 { 311 fHistLeakage1.SetName("Leakage1Same"); 312 fHistLeakage2.SetName("Leakage2Same"); 313 fHistUsedPix.SetName("UsedPixSame"); 314 fHistCorePix.SetName("CorePixSame"); 315 fHistUsedArea.SetName("UsedAreaSame"); 316 fHistCoreArea.SetName("CoreAreaSame"); 317 fHistConc1.SetName("Conc1Same"); 318 fHistConc.SetName("Conc2Same"); 319 311 320 fHistLeakage1.SetLineColor(kMagenta); 312 321 fHistLeakage1.SetLineColor(kCyan); 313 314 322 fHistCorePix.SetLineColor(kMagenta); 315 323 fHistUsedPix.SetLineColor(kCyan); 316 317 324 fHistConc1.SetLineColor(kMagenta); 318 325 fHistConc.SetLineColor(kCyan); 319 320 326 fHistCoreArea.SetLineColor(kMagenta); 321 327 fHistUsedArea.SetLineColor(kCyan); … … 326 332 TAxis &x = *fHistLeakage1.GetXaxis(); 327 333 x.SetRangeUser(0.0, x.GetXmax()); 334 RemoveFromPad("Leakage1Same"); 335 RemoveFromPad("Leakage2Same"); 328 336 MH::DrawSame(fHistLeakage1, fHistLeakage2, "Leakage1 and Leakage2", same); 329 337 fHistLeakage1.SetMinimum(); … … 333 341 pad->cd(2); 334 342 gPad->SetBorderMode(0); 343 RemoveFromPad("UsedPixSame"); 344 RemoveFromPad("CorePixSame"); 335 345 MH::DrawSame(fHistCorePix, fHistUsedPix, "Number of core/used Pixels", same); 336 346 337 347 pad->cd(3); 338 348 gPad->SetBorderMode(0); 349 RemoveFromPad("Conc1Same"); 350 RemoveFromPad("Conc2Same"); 339 351 MH::DrawSame(fHistConc1, fHistConc, "Concentrations", same); 340 352 341 353 pad->cd(4); 342 354 gPad->SetBorderMode(0); 355 RemoveFromPad("CoreAreaSame"); 356 RemoveFromPad("UsedAreaSame"); 343 357 MH::DrawSame(fHistCoreArea, fHistUsedArea, "Area of core/used Pixels", same); 344 358 } -
trunk/MagicSoft/Mars/mimage/MHVsSize.cc
r6890 r6948 269 269 else 270 270 { 271 fLength.SetName("LengthSame"); 272 fWidth.SetName("WidthSame"); 273 fDist.SetName("DistSame"); 274 fConc1.SetName("Conc1Same"); 271 275 fDist.SetMarkerColor(kBlue); 272 276 fConc1.SetMarkerColor(kBlue); … … 278 282 gPad->SetBorderMode(0); 279 283 gPad->SetLogx(); 284 RemoveFromPad("LengthSame"); 280 285 fLength.Draw(same?"same":""); 281 286 … … 283 288 gPad->SetBorderMode(0); 284 289 gPad->SetLogx(); 290 RemoveFromPad("WidthSame"); 285 291 fWidth.Draw(same?"same":""); 286 292 … … 288 294 gPad->SetBorderMode(0); 289 295 gPad->SetLogx(); 296 RemoveFromPad("DistSame"); 290 297 fDist.Draw(same?"same":""); 291 298 … … 294 301 gPad->SetLogx(); 295 302 gPad->SetLogy(); 303 RemoveFromPad("Conc1Same"); 296 304 fConc1.Draw(same?"same":""); 297 305 }
Note:
See TracChangeset
for help on using the changeset viewer.