Changeset 9572
- Timestamp:
- 04/19/10 13:20:08 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJSimulation.cc
r9564 r9572 219 219 hist.AddHist("(MCorsikaEvtHeader.fAz+MCorsikaRunHeader.fMagneticFieldAz)*TMath::RadToDeg()", "MCorsikaEvtHeader.fZd*TMath::RadToDeg()"); 220 220 hist.InitName("SkyOrigin;Az;Zd"); 221 hist.InitTitle("Sky Origin;Az [\\ deg];Zd [\\deg]");221 hist.InitTitle("Sky Origin;Az [\\circ];Zd [\\circ]"); 222 222 hist.SetDrawOption("colz"); 223 223 hist.SetAutoRange(); … … 225 225 hist.AddHist("IncidentAngle.fVal"); 226 226 hist.InitName("ViewCone"); 227 hist.InitTitle("Incident Angle;\\alpha [\\ deg]");227 hist.InitTitle("Incident Angle;\\alpha [\\circ]"); 228 228 } 229 229 … … 517 517 const TString rule1(Form("s/cer([0-9]+)/%s\\/00$1_R_MonteCarlo.root/", Esc(fPathOut).Data())); 518 518 const TString rule2(Form("s/cer([0-9]+)/%s\\/00$1_Y_MonteCarlo.root/", Esc(fPathOut).Data())); 519 const TString rule4(Form("s/cer([0-9]+)/%s\\/00$1_I_MonteCarlo.root/", Esc(fPathOut).Data())); 519 520 const TString rule3(Form(fmt, Esc(fPathOut).Data())); 520 521 522 MWriteRootFile write4a( 2, rule4, fOverwrite?"RECREATE":"NEW", "Star file"); 523 MWriteRootFile write4b( 2, rule4, fOverwrite?"RECREATE":"NEW", "Star file"); 521 524 MWriteRootFile write3a( 2, rule3, fOverwrite?"RECREATE":"NEW", "Camera file"); 522 525 MWriteRootFile write3b( 2, rule3, fOverwrite?"RECREATE":"NEW", "Camera file"); … … 532 535 write3a.SetName("WriteCamData"); 533 536 write3b.SetName("WriteCamMC"); 537 write4a.SetName("WriteImgData"); 538 write4b.SetName("WriteImgMC"); 534 539 535 540 SetupCommonFileStructure(write1a); 536 541 SetupCommonFileStructure(write2a); 537 542 SetupCommonFileStructure(write3a); 538 539 // R: Dedicated file structureedicated events 543 SetupCommonFileStructure(write4a); 544 545 // R: Dedicated file structure 540 546 write1a.AddContainer("MPhotonEvent", "Events"); 541 547 542 // I: Dedicated file structureedicated events548 // Y: Dedicated file structure 543 549 write2a.AddContainer("MPedPhotFromExtractorRndm", "RunHeaders"); // FIXME: Needed for the signal files to be display in MARS 544 550 write2a.AddContainer("MSignalCam", "Events"); 545 551 546 // D: Dedicated file structure edicated events552 // D: Dedicated file structure 547 553 write3a.AddContainer("ElectronicNoise", "RunHeaders"); 548 554 write3a.AddContainer("MRawEvtData", "Events"); 555 556 // I: Dedicated file structure 557 write4a.AddContainer("MHillas", "Events"); 558 write4a.AddContainer("MHillasSrc", "Events"); 559 write4a.AddContainer("MImagePar", "Events"); 560 write4a.AddContainer("MNewImagePar", "Events"); 549 561 550 562 // Basic MC data … … 552 564 write2b.AddContainer("MMcEvtBasic", "OriginalMC"); 553 565 write3b.AddContainer("MMcEvtBasic", "OriginalMC"); 566 write4b.AddContainer("MMcEvtBasic", "OriginalMC"); 554 567 555 568 // ------------------------------------------------------------------- … … 602 615 // Remove isolated pixels 603 616 MImgCleanStd clean(0, 0); 604 clean.SetCleanLvl0(0); // The level above which isolated pixels are kept617 //clean.SetCleanLvl0(0); // The level above which isolated pixels are kept 605 618 clean.SetCleanRings(0); 606 619 clean.SetMethod(MImgCleanStd::kAbsolute); … … 641 654 if (!fPathOut.IsNull() && !HasNullOut()) 642 655 { 643 tasks.AddToList(&write1b);656 //tasks.AddToList(&write1b); 644 657 tasks.AddToList(&write2b); 645 658 if (fCamera) 646 659 tasks.AddToList(&write3b); 660 if (header.IsDataRun()) 661 tasks.AddToList(&write4b); 647 662 } 648 663 // if (header.IsPointRun()) … … 710 725 if (!fPathOut.IsNull() && !HasNullOut()) 711 726 { 712 tasks.AddToList(&write1a);727 //tasks.AddToList(&write1a); 713 728 if (!header.IsPedestalRun()) 714 729 tasks.AddToList(&write2a); … … 733 748 tasks.AddToList(&fillx0a); 734 749 tasks.AddToList(&fillx0c); 735 if (!header.IsCalibrationRun()) 736 tasks.AddToList(&clean); 750 } 751 if (header.IsDataRun()) 752 { 753 tasks.AddToList(&clean); 737 754 tasks.AddToList(&hcalc); 738 755 tasks.AddToList(&cut); … … 742 759 tasks.AddToList(&fillx3); 743 760 tasks.AddToList(&fillx4); 761 tasks.AddToList(&write4a); 744 762 //tasks.AddToList(&fillx5); 745 } 746 if (header.IsDataRun()) 747 { 763 748 764 tasks.AddToList(&fillh4); 749 765 tasks.AddToList(&fillth);
Note:
See TracChangeset
for help on using the changeset viewer.