Changeset 3274 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 02/24/04 15:49:17 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/ONOFFAnalysis.C
r3209 r3274 172 172 //----------------------------------------------- 173 173 //const char *offfile = "~magican/ct1test/wittek/offdata.preproc"; 174 const char *offfile = "20040126_OffCrab_"; 174 //const char *offfile = "20040126_OffCrab_"; 175 //const char *offfile = "*.OFF"; 176 const char *offfile = "12*.OFF"; 175 177 176 178 //const char *onfile = "~magican/ct1test/wittek/mkn421_on.preproc"; 177 179 // const char *onfile = "~magican/ct1test/wittek/mkn421_00-01"; 178 const char *onfile = "20040126_Crab_"; 180 //const char *onfile = "20040126_Crab_"; 181 //const char *onfile = "MCerPhot_output"; 182 //const char *onfile = "*.ON"; 183 const char *onfile = "12*.ON"; 179 184 180 185 const char *mcfile = "/data/MAGIC/mc_eth/magLQE_3/gh/0/0/G_M0_00_0_550*.root"; … … 184 189 185 190 // path for input for Mars 186 TString inPath = "/.magic/magicserv01/scratch/"; 191 //TString inPath = "/.magic/magicserv01/scratch/"; 192 TString inPath = "/mnt/data17a/hbartko/"; 193 //TString inPath = "~wittek/datacrab_feb04/"; 187 194 188 195 // path for output from Mars 189 TString outPath = "~wittek/datacrab /";196 TString outPath = "~wittek/datacrab_feb04/"; 190 197 191 198 //----------------------------------------------- … … 235 242 Bool_t JobB_SC_UP = kFALSE; 236 243 Bool_t CMatrix = kFALSE; // create training and test matrices 237 Bool_t RMatrix = k TRUE; // read training and test matrices from file238 Bool_t WOptimize = k TRUE; // do optimization using the training sample244 Bool_t RMatrix = kFALSE; // read training and test matrices from file 245 Bool_t WOptimize = kFALSE; // do optimization using the training sample 239 246 // and write supercuts parameter values 240 247 // onto the file parSCfile 241 248 Bool_t RTest = kFALSE; // test the supercuts using the test matrix 242 Bool_t WSC = k FALSE; // update input root file ?249 Bool_t WSC = kTRUE; // update input root file ? 243 250 244 251 … … 316 323 TString fileON = inPath; 317 324 fileON += onfile; 318 fileON += "CalibratedEvts";319 325 fileON += ".root"; 320 326 321 327 TString fileOFF = inPath; 322 328 fileOFF += offfile; 323 fileOFF += "CalibratedEvts";324 329 fileOFF += ".root"; 325 330 326 331 TString fileMC = mcfile; 327 332 fileMC += mcfile; 328 fileMC += "CalibratedEvts";329 333 fileMC += ".root"; 330 334 … … 339 343 //-------------------------------------------------- 340 344 // type of data to be padded 341 //TString typeInput = "ON";342 TString typeInput = "OFF";345 TString typeInput = "ON"; 346 //TString typeInput = "OFF"; 343 347 //TString typeInput = "MC"; 344 348 gLog << "typeInput = " << typeInput << endl; … … 366 370 outNameImage += "Hillas"; 367 371 outNameImage += typeInput; 368 outNameImage += "1 .root";372 outNameImage += "1a.root"; 369 373 gLog << "padded data to be written onto : " << outNameImage << endl; 370 374 … … 680 684 MGeomApply apply; 681 685 682 MPedestalWorkaround waround;686 //MPedestalWorkaround waround; 683 687 684 688 // a way to find out whether one is dealing with MC : … … 693 697 // "MCT1PointingCorrCalc"); 694 698 //} 699 MSourcePosfromStarPos sourcefromstar; 700 sourcefromstar.SetSourceAndStarPosition("Crab", 22, 0, 52, 5, 34, 32, 701 "Zeta-Tau", 21, 8, 33, 5, 37, 38.7); 702 sourcefromstar.AddFile("~wittek/datacrab_feb04/positions.4.txt", 0); 695 703 696 704 MBlindPixelCalc blindbeforepad; … … 706 714 contbasic.SetName("SelBasic"); 707 715 708 //MFillH fillblind("BlindPixels[MHBlindPixels]", "MBlindPixels");709 //fillblind.SetName("HBlind");716 MFillH fillblind("BlindPixels[MHBlindPixels]", "MBlindPixels"); 717 fillblind.SetName("HBlind"); 710 718 711 719 MSigmabarCalc sigbarcalc; … … 750 758 selstandard.SetHillasName(fHilName); 751 759 selstandard.SetImgParName(fImgParName); 752 selstandard.SetCuts( 100, 4, 20, 0.0, 1.0, 0.0, 0.0);760 selstandard.SetCuts(200, 6, 600, 0.4, 1.1, 0.0, 0.0); 753 761 MContinue contstandard(&selstandard); 754 762 contstandard.SetName("SelStandard"); … … 786 794 //tliston.AddToList(&f2); 787 795 tliston.AddToList(&apply); 788 tliston.AddToList(&waround); 796 //tliston.AddToList(&waround); 797 tliston.AddToList(&sourcefromstar); 789 798 790 799 //tliston.AddToList(&blindbeforepad); … … 793 802 // tliston.AddToList(&pointcorr); 794 803 795 //tliston.AddToList(&blind);796 tliston.AddToList(&contbasic);797 798 //tliston.AddToList(&fillblind);804 tliston.AddToList(&blind); 805 //tliston.AddToList(&contbasic); 806 807 tliston.AddToList(&fillblind); 799 808 tliston.AddToList(&sigbarcalc); 800 809 tliston.AddToList(&fillsigtheta); … … 1783 1792 TString parSCinit = outPath; 1784 1793 //parSCinit += "parSC_060204"; 1794 //parSCinit = "parSC_240204a"; 1785 1795 parSCinit = ""; 1786 1796 … … 1802 1812 1803 1813 TString parSCfile = outPath; 1804 parSCfile += "parSC_ 130204a";1814 parSCfile += "parSC_240204a"; 1805 1815 1806 1816 gLog << "parSCfile = " << parSCfile << endl; … … 1843 1853 filenameTrain += typeInput; 1844 1854 filenameTrain += "1.root"; 1845 Int_t howManyTrain = 7000;1855 Int_t howManyTrain = 20000; 1846 1856 gLog << "filenameTrain = " << filenameTrain << ", howManyTrain = " 1847 1857 << howManyTrain << endl; … … 1853 1863 filenameTest += typeInput; 1854 1864 filenameTest += "1.root"; 1855 Int_t howManyTest = 7000;1865 Int_t howManyTest = 20000; 1856 1866 1857 1867 gLog << "filenameTest = " << filenameTest << ", howManyTest = "
Note:
See TracChangeset
for help on using the changeset viewer.