Ignore:
Timestamp:
05/24/04 11:26:25 (21 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

    r4118 r4139  
    7272TString  idirname;
    7373TString  filter;
     74TString  psfilename("makehillas.ps");
    7475MRunIter caliter;
    7576MRunIter pediter;
    7677MRunIter datiter;
    77 Bool_t   display   = kFALSE;
     78UInt_t   display   = 0;
    7879ULong_t  nmaxevents= 999999999;
    7980Short_t  calflag   = 1;
     
    302303  MDisplay*  disphillas=NULL;
    303304
    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);
    326323
    327324  tlist4.AddToList(&read4);
     
    348345  tlist4.AddToList(&csrc1);
    349346  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
    354357
    355358  // Create and setup the eventloop
     
    450453      if(strcmp(word.Data(),"DISPLAY")==0)
    451454        ifun >> display;
     455
     456      // ps file name
     457      if(strcmp(word.Data(),"PSFILENAME")==0)
     458        ifun >> psfilename;
    452459
    453460      // calibration flag
     
    499506  if(filter.Length())
    500507    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;
    503511  cout << "Calibration flag: " << calflag << endl;
    504512  cout << "Cleaning level: ("<<lcore<<","<<ltail<<")" << endl;
  • trunk/MagicSoft/Mars/mtemp/mifae/programs/makehillas.datacard

    r4117 r4139  
    2121FILTER (MHillas.fLength<100) && (MHillas.fLength>50)
    2222
    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
     27DISPLAY 0
     28
     29// PS file name
     30PSFILENAME makehillas.ps
    2531
    2632// calibration flag:
Note: See TracChangeset for help on using the changeset viewer.