Changeset 3598 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 03/26/04 05:53:16 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/ONOFFAnalysis.C
r3484 r3598 170 170 171 171 //----------------------------------------------- 172 //TString tag = "040126"; 173 TString tag = "040127"; 174 //TString tag = "040215"; 175 172 176 //const char *offfile = "~magican/ct1test/wittek/offdata.preproc"; 173 177 //const char *offfile = "20040126_OffCrab_"; 174 178 //const char *offfile = "*.OFF"; 175 179 //const char *offfile = "12776.OFF"; 180 // 27 Jan 04 176 181 //const char *offfile = "12*.OFF"; 182 // 26 Jan 04 183 //const char *offfile = "*.OFF"; 184 // 15 Feb 04 177 185 const char *offfile = "*.OFF"; 186 178 187 179 188 //const char *onfile = "~magican/ct1test/wittek/mkn421_on.preproc"; … … 182 191 //const char *onfile = "MCerPhot_output"; 183 192 //const char *onfile = "*.ON"; 184 //const char *onfile = "12162*.ON"; 193 const char *onfile = "1216*.ON"; 194 // 27 Jan 04 185 195 //const char *onfile = "12*.ON"; 186 const char *onfile = "*.ON"; 196 // 26 Jan 04 197 //const char *onfile = "*.ON"; 198 // 15 Feb 04 199 //const char *onfile = "*.ON"; 200 187 201 188 202 const char *mcfile = "/data/MAGIC/mc_eth/magLQE_3/gh/0/0/G_M0_00_0_550*.root"; … … 197 211 //TString inPath = "~wittek/datacrab_26feb04/"; 198 212 //TString inPath = "/.magic/magicserv01/scratch/David/CalibratedRuns/"; 199 //TString inPath = "/.magic/magicserv01/scratch/calibrated/"; 200 TString inPath = "/.magic/magicserv01/scratch/calibrated26/"; 213 // 26 Jan 04, Hendrik 214 if (tag == "040126") 215 TString inPath = "/.magic/magicserv01/scratch/calibrated26/"; 216 217 // 27 Jan 04, Hendrik 218 if (tag == "040127") 219 TString inPath = "/.magic/magicserv01/scratch/calibrated/"; 220 221 // 27 Jan 04, David 222 //if (tag == "040127") 223 //TString inPath = "/mnt/magicserv01/scratch/David/CalibratedData/Crab/2004_01_27/"; 224 225 // 15 Feb 04, David 226 if (tag == "040215") 227 TString inPath = "/mnt/magicserv01/scratch/David/CalibratedData/Crab/2004_02_15/"; 228 201 229 202 230 // path for output from Mars 203 231 //TString outPath = "~wittek/datacrab_feb04/"; 204 232 //TString outPath = "~wittek/datacrab_01march04/"; 205 TString outPath = "~wittek/datacrab_ 04mar04/";233 TString outPath = "~wittek/datacrab_19mar04/"; 206 234 207 235 //----------------------------------------------- … … 352 380 //-------------------------------------------------- 353 381 // type of data to be padded 354 //TString typeInput = "ON";355 TString typeInput = "OFF";382 TString typeInput = "ON"; 383 //TString typeInput = "OFF"; 356 384 //TString typeInput = "MC"; 357 385 gLog << "typeInput = " << typeInput << endl; … … 368 396 369 397 // name of output root file 370 if (typeInput == "ON")371 TString file(onfile);372 else if (typeInput == "OFF")373 TString file(offfile);374 else if (typeInput == "MC")375 TString file(mcfile);398 //if (typeInput == "ON") 399 // TString file(onfile); 400 //else if (typeInput == "OFF") 401 // TString file(offfile); 402 //else if (typeInput == "MC") 403 // TString file(mcfile); 376 404 377 405 TString outNameImage = outPath; 378 outNameImage += file;406 outNameImage += tag; 379 407 outNameImage += "Hillas"; 380 408 outNameImage += typeInput; … … 711 739 if (typeInput == "ON") 712 740 { 713 sourcefromstar.SetSourceAndStarPosition("Crab", 22, 0, 52, 5, 34, 32, 714 "Zeta-Tau", 21, 8, 33, 5, 37, 38.7); 715 sourcefromstar.AddFile("~wittek/datacrab_26feb04/positionsOn.4.txt", 0); 741 sourcefromstar.SetSourceAndStarPosition( 742 "Crab", 22, 0, 52, 5, 34, 32.0, 743 "Zeta-Tau", 21, 8, 33, 5, 37, 38.7); 744 sourcefromstar.AddStar("Tau114", 21, 56, 13, 5, 27, 38.1); 745 //sourcefromstar.AddFile("~wittek/datacrab_26feb04/positionsOn.4.txt",0); 746 747 if(inPath == "/.magic/magicserv01/scratch/calibrated/") 748 { 749 sourcefromstar.AddFile("~wittek/datacrab_26feb04/positions2stars.txt", 0); 750 //sourcefromstar.AddFile("~wittek/datacrab_26feb04/positionsNoStar.txt", 0); 751 } 752 else if(inPath == "/.magic/magicserv01/scratch/calibrated26/") 753 sourcefromstar.AddFile("~wittek/datacrab_26feb04/stars_2004_01_26", 0); 754 755 else if(inPath == "/mnt/magicserv01/scratch/David/CalibratedData/Crab/2004_02_15/") 756 sourcefromstar.AddFile("~wittek/datacrab_26feb04/positions040215.txt", 0); 716 757 } 717 758 else if (typeInput == "OFF") 718 sourcefromstar.AddFile("~wittek/datacrab_26feb04/positionsOff.txt", 0); 759 { 760 if(inPath == "/.magic/magicserv01/scratch/calibrated/") 761 sourcefromstar.AddFile("~wittek/datacrab_26feb04/positionsOff.txt", 0); 762 else if(inPath == "/.magic/magicserv01/scratch/calibrated26/") 763 sourcefromstar.AddFile("~wittek/datacrab_26feb04/positions_2004_01_26", 0); 764 else if(inPath == "/mnt/magicserv01/scratch/David/CalibratedData/Crab/2004_02_15") 765 sourcefromstar.AddFile("~wittek/datacrab_26feb04/positions040215.txt", 0); 766 } 767 719 768 720 769 //MBlindPixelCalc blindbeforepad; … … 729 778 MSigmabarCalc sigbar; 730 779 731 MBadPixelCalcRms blind; 780 //MBadPixelCalcRms blind; 781 MBlindPixelsCalc2 blind; 732 782 //blind.SetUseBlindPixels(); 733 783 blind.SetUseInterpolation(); 734 blind.SetCheckPedestalR MS();784 blind.SetCheckPedestalRms(); 735 785 blind.SetName("BlindAfterPadding"); 736 786 … … 748 798 749 799 MImgCleanStd clean(3.0, 2.5); 750 clean.SetMethod(MImgCleanStd::kDemocratic);800 //clean.SetMethod(MImgCleanStd::kDemocratic); 751 801 clean.SetCleanRings(3); 752 802 … … 785 835 selstandard.SetHillasName(fHilName); 786 836 selstandard.SetImgParName(fImgParName); 787 selstandard.SetCuts( 300, 6, 3000, 0.0, 1.1, 0.001, 0.001);837 selstandard.SetCuts(200, 5, 200, 0.0, 5.0, 0.1, 0.07); 788 838 MContinue contstandard(&selstandard); 789 839 contstandard.SetName("SelStandard");
Note:
See TracChangeset
for help on using the changeset viewer.