Changeset 9356 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 02/19/09 22:59:24 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJSimulation.cc
r9352 r9356 189 189 hist.InitName("Impact;Impact;Impact"); 190 190 hist.InitTitle("Impact;West <--> East [m];South <--> North [m]"); 191 hist.SetAutoRange(); 191 192 192 193 hist.AddHist("MCorsikaEvtHeader.fFirstInteractionHeight/100000"); … … 198 199 hist.InitTitle("Sky Origin;Az [deg];Zd [deg]"); 199 200 hist.SetDrawOption("colz"); 201 hist.SetAutoRange(); 200 202 201 203 TString sin2 = "sin(MCorsikaEvtHeader.fZd)*sin(MCorsikaRunHeader.fZdMin*TMath::DegToRad())"; … … 346 348 MBinning binse( 100, 1, 100000, "BinningEnergy", "log"); 347 349 MBinning binss( 100, 1, 10000000, "BinningSize", "log"); 348 MBinning binsi( 50, -250, 250, "BinningImpact");350 MBinning binsi( 100, -500, 500, "BinningImpact"); 349 351 MBinning binsh( 150, 0, 50, "BinningHeight"); 350 352 MBinning binsaz(720, -360, 360, "BinningAz"); … … 352 354 MBinning binsvc( 45, 0, 9, "BinningViewCone"); 353 355 MBinning binsew(150, 0, 50, "BinningEvtWidth"); 356 MBinning binsd("BinningDistC"); 357 MBinning binsd0("BinningDist"); 354 358 MBinning binstr("BinningTrigPos"); 355 359 … … 363 367 plist.AddToList(&binsew); 364 368 plist.AddToList(&binstr); 369 plist.AddToList(&binsd); 370 plist.AddToList(&binsd0); 365 371 366 372 MHn mhn1, mhn2, mhn3; … … 660 666 //------------------------------------------- 661 667 668 MGeomCam *cam = static_cast<MGeomCam*>(env2.GetCont()); 669 662 670 if (binstr.IsDefault()) 663 671 binstr.SetEdgesLin(150, -shape.GetPulseWidth(), 664 672 header.GetFreqSampling()/1000.*header.GetNumSamples()+shape.GetPulseWidth()); 673 674 if (binsd.IsDefault() && cam) 675 binsd.SetEdgesLin(100, 0, cam->GetMaxRadius()*cam->GetConvMm2Deg()); 676 677 if (binsd0.IsDefault() && cam) 678 binsd0.SetEdgesLin(100, 0, cam->GetMaxRadius()*cam->GetConvMm2Deg()); 679 665 680 666 681 header.Print(); … … 711 726 } 712 727 713 if ( env2.GetCont())728 if (cam) 714 729 { 715 730 c.cd(4); … … 719 734 gPad->SetGridy(); 720 735 gROOT->SetSelectedPad(0); 721 MHCamera *c = new MHCamera( static_cast<MGeomCam&>(*env2.GetCont()));736 MHCamera *c = new MHCamera(*cam); 722 737 c->SetStats(kFALSE); 723 738 c->SetBit(MHCamera::kNoLegend);
Note:
See TracChangeset
for help on using the changeset viewer.