Changeset 5933 for trunk/MagicSoft/Mars/mtemp/mifae/programs
- Timestamp:
- 01/21/05 14:17:41 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mifae/programs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/programs/Makefile
r5879 r5933 47 47 -I../../../mastro \ 48 48 -I../../../mreport \ 49 -I../../../mranforest \ 49 50 -I../../../mtemp 50 51 -
trunk/MagicSoft/Mars/mtemp/mifae/programs/makeHillas.cc
r5827 r5933 63 63 #include "MTopology.h" 64 64 #include "MTopologyCalc.h" 65 #include "MRanForest.h" 66 #include "MRanForestCalc.h" 67 #include "MRanForestFill.h" 65 68 66 69 #include "TApplication.h" … … 106 109 Int_t wsize = 6; 107 110 Int_t sext = 0; 111 TString rffilename; 108 112 109 113 const TString defaultcard="makehillas.datacard"; … … 225 229 MPedestalCam pedcamrms; 226 230 231 232 /************************************************************************/ 233 /* SECOND LOOP TO READ THE RANDOM FOREST FILE(S) */ 234 /************************************************************************/ 235 MParList plistrf; 236 MTaskList tlistrf; 237 MRanForest ranforest; 238 239 plistrf.AddToList(&tlistrf); 240 plistrf.AddToList(&ranforest); 241 242 MReadTree readrf("Tree",rffilename); 243 readrf.DisableAutoScheme(); 244 245 MRanForestFill rffill; 246 rffill.SetNumTrees(100); 247 248 tlistrf.AddToList(&readrf); 249 tlistrf.AddToList(&rffill); 250 251 MEvtLoop evtlooprf; 252 evtlooprf.SetParList(&plistrf); 253 if (!evtlooprf.Eventloop()) 254 return; 255 256 tlistrf.PrintStatistics(); 257 258 227 259 /*****************************/ 228 /* SECOND LOOP: CALIBRATION */260 /* THIRD LOOP: CALIBRATION */ 229 261 /*****************************/ 230 262 … … 242 274 chargecam.Print(); 243 275 244 245 276 /************************************************************************/ 246 /* THIRD(SMALL) LOOP TO GET INITIAl PEDESTALS */277 /* FOURTH (SMALL) LOOP TO GET INITIAl PEDESTALS */ 247 278 /************************************************************************/ 248 279 MParList plist3; … … 322 353 { 323 354 /************************************************************************/ 324 /* FOURTH (SMALL) LOOP TO GET INITIAl PEDESTALS RMS */355 /* SIXTH (SMALL) LOOP TO GET INITIAl PEDESTALS RMS */ 325 356 /************************************************************************/ 326 357 MParList plist4; … … 405 436 plist5.AddToList(&reportdrive); 406 437 plist5.AddToList(&topology); 407 438 plist5.AddToList(&ranforest); 439 408 440 // cuts 409 441 MF cut(filter); … … 435 467 MIslandsCalc island3; 436 468 island3.SetOutputName("MIslands3"); 437 469 470 MRanForestCalc hadrcalc; 438 471 439 472 MHillasCalc hcalc; … … 503 536 if(topflag>0) 504 537 tlist5.AddToList(&topcalc); 538 if(rffilename.Length()) 539 tlist5.AddToList(&hadrcalc); 505 540 tlist5.AddToList(&write); 506 541 if(display) … … 639 674 } 640 675 } 676 } 677 678 // random forest file name 679 if(strcmp(word.Data(),"RANFOREST")==0) 680 { 681 if(rffilename.Length()) 682 cout << "readDataCards Warning: overriding random forest file name" << endl; 683 ifun >> rffilename; 641 684 } 642 685 … … 703 746 cout << "Cleaning level: ("<<lcore<<","<<ltail<<") - " << lrings << "ring" << endl; 704 747 cout << "Cleaning method: "<< cleanflag << endl; 748 if(rffilename.Length()) 749 cout << "Random Forest will be read from " << rffilename << endl; 705 750 if (islflag == 1 || islflag == 2) 706 751 cout << "Island calcultation..." << "using algorithm #" << kalgorithm <<endl; -
trunk/MagicSoft/Mars/mtemp/mifae/programs/makehillas.datacard
r5827 r5933 63 63 CLEANLEVEL 4.0 3.5 1 1 64 64 65 // Add the following word if you want to include Hadronness calculation, 66 // followed by the name of the Random Forest file 67 RANFOREST RFstd.root 68 65 69 //Island calculations 66 70 // 0 same as 1 1:normal algorithm
Note:
See TracChangeset
for help on using the changeset viewer.