Changeset 6723 for trunk/MagicSoft/Mars/mtemp
- Timestamp:
- 03/03/05 17:29:38 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mifae
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/Changelog
r6486 r6723 18 18 19 19 -*-*- END OF LINE -*-*- 20 2005/03/03 Javier Rico 21 * programs/makeHillas.cc programs/makehillas.datacard 22 - read initial list of bad pixels from ascii file 23 - include MImagePar as output container 20 24 21 25 2005/02/15 Javier Rico -
trunk/MagicSoft/Mars/mtemp/mifae/programs/makeHillas.cc
r6049 r6723 98 98 TString filter; 99 99 TString psfilename("makehillas.ps"); 100 TString bpfilename; 100 101 MRunIter pedcaliter; 101 102 MRunIter caliter; … … 202 203 /* FIRST LOOP: PEDESTAL COMPUTATION FOR CALIBRATION */ 203 204 /****************************************************/ 204 205 205 206 // If you want to exclude pixels from the beginning, read 206 207 // an ascii-file with the corr. pixel numbers (see MBadPixelsCam) 207 208 //badcam.AsciiRead("badpixels.dat"); 208 209 MBadPixelsCam badcam; 210 MGeomCamMagic geomcam; 211 MGeomApply geomapl; 212 badcam.InitSize(geomcam.GetNumPixels()); 213 214 if(bpfilename.Length()>0) 215 { 216 ifstream fin("/home/emma/Mars/mtemp/mifae/programs/badpixels.dat"); 217 badcam.AsciiRead((istream&)fin); 218 badcam.Print(); 219 } 220 221 209 222 MJPedestal pedloop1; 210 223 MJPedestal pedloop2; … … 215 228 pedloop1.SetInput(&pedcaliter); 216 229 pedloop1.SetExtractor(extractor); 217 pedloop1.SetNoStorage(); 230 pedloop1.SetBadPixels(badcam); 231 pedloop1.SetNoStorage(); 218 232 if (!pedloop1.Process()) 219 233 return; … … 226 240 /***********************************************************/ 227 241 pedloop2.SetNoStorage(); 228 pedloop2.SetExtractor(extractor); 229 pedloop2.SetPedestals(pedloop1.GetPedestalCam()); 242 pedloop2.SetExtractor(extractor); 243 pedloop2.SetBadPixels(pedloop1.GetBadPixels()); 244 pedloop2.SetPedestals(pedloop1.GetPedestalCam()); 230 245 pedloop2.SetInput(&pedcaliter); 231 246 … … 265 280 MParList plist3; 266 281 MTaskList tlist3; 267 268 // containers 269 MGeomCamMagic geomcam; 270 MGeomApply geomapl; 271 282 272 283 plist3.AddToList(&tlist3); 273 284 plist3.AddToList(&geomcam); … … 547 558 write.AddContainer("MTopology" , "Parameters"); 548 559 write.AddContainer("MPointingPos" , "Parameters"); 560 write.AddContainer("MImagePar" , "Parameters"); 549 561 if(rffilename.Length()) 550 562 write.AddContainer("MHadronness", "Parameters"); … … 714 726 if(strcmp(word.Data(),"PSFILENAME")==0) 715 727 ifun >> psfilename; 728 729 // excluded pixels file name 730 if(strcmp(word.Data(),"BADPIXELFILE")==0) 731 ifun >> bpfilename; 716 732 717 733 // calibration flag … … 804 820 if(display) 805 821 cout << "Generating PS file: " << psfilename << endl; 822 if(bpfilename.Length()) 823 cout << "Bad pixels will be read from " << bpfilename << endl; 806 824 cout << "Signal Extractor: " << chext[sext] << " with bounds ("<<hifirst<<","<<hilast<<","<<lofirst<<","<<lolast<<"), window size " << wsize << endl; 807 825 cout << "Calibration: "; -
trunk/MagicSoft/Mars/mtemp/mifae/programs/makehillas.datacard
r5962 r6723 11 11 12 12 // Maximun number of (data) events to be processed) 13 NEVENTS 1000013 NEVENTS 9999999 14 14 15 15 // data file directory … … 41 41 // PS file name 42 42 PSFILENAME makehillas.ps 43 44 // If want to include a file with a list of bad pixels, add next word 45 // followed by the name of the file (provide the whole path) 46 BADPIXELFILE /home/emma/Mars/mtemp/mifae/programs/badpixels.dat 43 47 44 48 // Signal extractor, higain first, higainlast, logainfirst, logainlast, window size
Note:
See TracChangeset
for help on using the changeset viewer.