Changeset 9525 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 12/10/09 10:08:55 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJSimulation.cc
r9482 r9525 368 368 MParSpline splinemirror("MirrorReflectivity"); 369 369 MParSpline splinecones("ConesAngularAcceptance"); 370 MParSpline splinecones2("ConesTransmission"); 370 371 plist.AddToList(&splinepde); 371 372 plist.AddToList(&splinemirror); 372 373 plist.AddToList(&splinecones); 374 plist.AddToList(&splinecones2); 373 375 374 376 const TString sin2 = "sin(MCorsikaEvtHeader.fZd)*sin(MCorsikaRunHeader.fZdMin*TMath::DegToRad())"; … … 385 387 MSimAbsorption absmir("SimMirrorReflectivity"); 386 388 MSimAbsorption cones("SimConesAngularAcceptance"); 389 MSimAbsorption cones2("SimConesTransmission"); 387 390 absapd.SetParName("PhotonDetectionEfficiency"); 388 391 absmir.SetParName("MirrorReflectivity"); 389 392 cones.SetParName("ConesAngularAcceptance"); 390 393 cones.SetUseTheta(); 391 394 cones2.SetParName("ConesTransmission"); 395 392 396 MSimPointingPos pointing; 393 397 … … 666 670 } 667 671 tasks.AddToList(&cones); 672 tasks.AddToList(&cones2); 668 673 //if (header.IsPointRun()) 669 674 // tasks.AddToList(&fillP); … … 834 839 835 840 TCanvas &d = fDisplay->AddTab("Info2"); 836 d.Divide(2, 2);841 d.Divide(2,3); 837 842 838 843 d.cd(1); … … 844 849 splinepde.DrawClone()->SetBit(kCanDelete); 845 850 851 d.cd(3); 852 gPad->SetBorderMode(0); 853 gPad->SetFrameBorderMode(0); 854 gPad->SetGridx(); 855 gPad->SetGridy(); 856 gROOT->SetSelectedPad(0); 857 splinecones2.DrawClone()->SetBit(kCanDelete); 858 859 d.cd(5); 860 gPad->SetBorderMode(0); 861 gPad->SetFrameBorderMode(0); 862 gPad->SetGridx(); 863 gPad->SetGridy(); 864 gROOT->SetSelectedPad(0); 865 splinemirror.DrawClone()->SetBit(kCanDelete); 866 846 867 d.cd(2); 847 868 gPad->SetBorderMode(0); … … 850 871 gPad->SetGridy(); 851 872 gROOT->SetSelectedPad(0); 852 splinemirror.DrawClone()->SetBit(kCanDelete);853 854 d.cd(3);855 gPad->SetBorderMode(0);856 gPad->SetFrameBorderMode(0);857 gPad->SetGridx();858 gPad->SetGridy();859 gROOT->SetSelectedPad(0);860 873 splinecones.DrawClone()->SetBit(kCanDelete); 861 862 d.cd(4); 874 //splinecones2.DrawClone("same")->SetBit(kCanDelete); 875 876 d.cd(6); 863 877 gPad->SetBorderMode(0); 864 878 gPad->SetFrameBorderMode(0); … … 869 883 //all->SetTitle("Combined acceptance"); 870 884 all->SetBit(kCanDelete); 871 all->Multiply(*splinemirror.GetSpline()); 885 if (splinemirror.GetSpline()) 886 all->Multiply(*splinemirror.GetSpline()); 887 if (splinecones2.GetSpline()) 888 all->Multiply(*splinecones2.GetSpline()); 872 889 } 873 890
Note:
See TracChangeset
for help on using the changeset viewer.