Ignore:
Timestamp:
03/03/05 17:29:38 (20 years ago)
Author:
rico
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mtemp/mifae/programs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/mifae/programs/makeHillas.cc

    r6049 r6723  
    9898TString  filter;
    9999TString  psfilename("makehillas.ps");
     100TString  bpfilename;
    100101MRunIter pedcaliter;
    101102MRunIter caliter;
     
    202203  /* FIRST LOOP: PEDESTAL COMPUTATION FOR CALIBRATION */
    203204  /****************************************************/
    204 
     205 
    205206  // If you want to exclude pixels from the beginning, read
    206207  // an ascii-file with the corr. pixel numbers (see MBadPixelsCam) 
    207208  //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 
    209222  MJPedestal pedloop1;
    210223  MJPedestal pedloop2;
     
    215228      pedloop1.SetInput(&pedcaliter);
    216229      pedloop1.SetExtractor(extractor);
    217       pedloop1.SetNoStorage();
     230      pedloop1.SetBadPixels(badcam);
     231     pedloop1.SetNoStorage();
    218232      if (!pedloop1.Process())
    219233        return;
     
    226240          /***********************************************************/
    227241          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()); 
    230245          pedloop2.SetInput(&pedcaliter);
    231246         
     
    265280  MParList  plist3;
    266281  MTaskList tlist3;
    267  
    268   // containers
    269   MGeomCamMagic geomcam;
    270   MGeomApply      geomapl;
    271  
     282   
    272283  plist3.AddToList(&tlist3);
    273284  plist3.AddToList(&geomcam);
     
    547558  write.AddContainer("MTopology"      , "Parameters");
    548559  write.AddContainer("MPointingPos"   , "Parameters");
     560  write.AddContainer("MImagePar"      , "Parameters");
    549561  if(rffilename.Length())
    550562    write.AddContainer("MHadronness",     "Parameters");
     
    714726      if(strcmp(word.Data(),"PSFILENAME")==0)
    715727        ifun >> psfilename;
     728
     729      // excluded pixels file name
     730      if(strcmp(word.Data(),"BADPIXELFILE")==0)
     731        ifun >> bpfilename;
    716732
    717733      // calibration flag
     
    804820  if(display)
    805821    cout << "Generating PS file: " << psfilename << endl;
     822  if(bpfilename.Length())
     823    cout << "Bad pixels will be read from " << bpfilename << endl;
    806824  cout << "Signal Extractor: " << chext[sext] << " with bounds ("<<hifirst<<","<<hilast<<","<<lofirst<<","<<lolast<<"), window size " << wsize << endl;
    807825  cout << "Calibration: ";
  • trunk/MagicSoft/Mars/mtemp/mifae/programs/makehillas.datacard

    r5962 r6723  
    1111
    1212// Maximun number of (data) events to be processed)
    13 NEVENTS 10000
     13NEVENTS 9999999
    1414
    1515// data file directory
     
    4141// PS file name
    4242PSFILENAME 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)
     46BADPIXELFILE /home/emma/Mars/mtemp/mifae/programs/badpixels.dat
    4347
    4448// Signal extractor, higain first, higainlast, logainfirst, logainlast, window size
Note: See TracChangeset for help on using the changeset viewer.