Changeset 4139 for trunk/MagicSoft/Mars/mtemp/mifae/programs
- Timestamp:
- 05/24/04 11:26:25 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mifae/programs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/programs/makeHillas.cc
r4118 r4139 72 72 TString idirname; 73 73 TString filter; 74 TString psfilename("makehillas.ps"); 74 75 MRunIter caliter; 75 76 MRunIter pediter; 76 77 MRunIter datiter; 77 Bool_t display = kFALSE;78 UInt_t display = 0; 78 79 ULong_t nmaxevents= 999999999; 79 80 Short_t calflag = 1; … … 302 303 MDisplay* disphillas=NULL; 303 304 304 if(!display) 305 { 306 write = new MWriteRootFile(outname,"RECREATE"); 307 308 write->AddContainer("MHillas" , "Parameters"); 309 write->AddContainer("MHillasSrc" , "Parameters"); 310 write->AddContainer("MHillasExt" , "Parameters"); 311 write->AddContainer("MNewImagePar" , "Parameters"); 312 write->AddContainer("MRawEvtHeader" , "Parameters"); 313 write->AddContainer("MRawRunHeader" , "Parameters"); 314 write->AddContainer("MConcentration" , "Parameters"); 315 write->AddContainer("MSrcPosCam" , "Parameters"); 316 317 if (islflag == 1 || islflag == 2) 318 write->AddContainer("MIslands1" , "Parameters"); 319 if (islflag == 2) 320 write->AddContainer("MIslands2" , "Parameters"); 321 } 322 else 323 { 324 disphillas = new MHillasDisplay(&nphot,&geomcam); 325 } 305 write = new MWriteRootFile(outname,"RECREATE"); 306 307 write->AddContainer("MHillas" , "Parameters"); 308 write->AddContainer("MHillasSrc" , "Parameters"); 309 write->AddContainer("MHillasExt" , "Parameters"); 310 write->AddContainer("MNewImagePar" , "Parameters"); 311 write->AddContainer("MRawEvtHeader" , "Parameters"); 312 write->AddContainer("MRawRunHeader" , "Parameters"); 313 write->AddContainer("MConcentration" , "Parameters"); 314 write->AddContainer("MSrcPosCam" , "Parameters"); 315 316 if (islflag == 1 || islflag == 2) 317 write->AddContainer("MIslands1" , "Parameters"); 318 if (islflag == 2) 319 write->AddContainer("MIslands2" , "Parameters"); 320 321 if(display) 322 disphillas = new MHillasDisplay(&nphot,&geomcam); 326 323 327 324 tlist4.AddToList(&read4); … … 348 345 tlist4.AddToList(&csrc1); 349 346 tlist4.AddToList(&applycut); 350 if(!display) 351 tlist4.AddToList(write); 352 else 353 tlist4.AddToList(disphillas); 347 tlist4.AddToList(write); 348 if(display) 349 { 350 disphillas->SetPSFile(); 351 disphillas->SetPSFileName(psfilename); 352 if(display==2) 353 disphillas->SetPause(kFALSE); 354 tlist4.AddToList(disphillas); 355 } 356 354 357 355 358 // Create and setup the eventloop … … 450 453 if(strcmp(word.Data(),"DISPLAY")==0) 451 454 ifun >> display; 455 456 // ps file name 457 if(strcmp(word.Data(),"PSFILENAME")==0) 458 ifun >> psfilename; 452 459 453 460 // calibration flag … … 499 506 if(filter.Length()) 500 507 cout << "Applying rejection cut: " << filter << endl; 501 if(!display) 502 cout << "Output file name: " << outname << endl; 508 cout << "Output file name: " << outname << endl; 509 if(display) 510 cout << "Generating PS file: " << psfilename << endl; 503 511 cout << "Calibration flag: " << calflag << endl; 504 512 cout << "Cleaning level: ("<<lcore<<","<<ltail<<")" << endl; -
trunk/MagicSoft/Mars/mtemp/mifae/programs/makehillas.datacard
r4117 r4139 21 21 FILTER (MHillas.fLength<100) && (MHillas.fLength>50) 22 22 23 // Display flag (DISPLAY=1 will show event display and skip saving into output file) 24 DISPLAY 1 23 // Display flag 24 // DISPLAY 0 will simply produce the hillas parameters files 25 // DISPLAY 1 will show event display and produce ps file 26 // DISPLAY 2 will produce the ps files, no display 27 DISPLAY 0 28 29 // PS file name 30 PSFILENAME makehillas.ps 25 31 26 32 // calibration flag:
Note:
See TracChangeset
for help on using the changeset viewer.