Ignore:
Timestamp:
05/11/04 09:53:00 (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

    r4043 r4044  
    3838#include "MHillasSrcCalc.h"
    3939#include "MHillasCalc.h"
     40#include "MArrivalTimeCam.h"
     41#include "MArrivalTimeCalc2.h"
     42#include "MIslands.h"
     43#include "MIslandCalc.h"
     44#include "MIslandClean.h"
    4045#include "MWriteRootFile.h"
    4146#include "MProgressBar.h"
     
    7075Float_t  lcore = 3.0;
    7176Float_t  ltail = 1.5;
     77Int_t islflag = 0;
     78Float_t  lnew  = 40;
     79Int_t  kmethod = 1;
    7280Int_t    nfiles = 0;
    7381
     
    213221  MSrcPosCam    source;
    214222  MRawRunHeader runhead;
     223
     224  MArrivalTimeCam   timecam;
     225     
     226  MIslands      isl;
     227  isl.SetName("MIslands1");
     228 
     229  MIslands      isl2;
     230  isl2.SetName("MIslands2");
     231
     232  if (islflag == 1 || islflag == 2)
     233    {
     234      plist4.AddToList(&timecam);
     235      plist4.AddToList(&isl);
     236    }
     237 
     238  if (islflag == 2)
     239    {
     240      plist4.AddToList(&isl2);
     241    }
    215242 
    216243  plist4.AddToList(&geomcam);
     
    241268 
    242269  MImgCleanStd      clean(lcore,ltail);
     270
     271  MArrivalTimeCalc2 timecalc;
     272 
     273  MIslandCalc       island;
     274  island.SetOutputName("MIslands1");
     275
     276  MIslandClean      islclean(lnew);
     277  islclean.SetInputName("MIslands1");
     278  islclean.SetMethod(kmethod);
     279     
     280  MIslandCalc       island2;
     281  island2.SetOutputName("MIslands2"); 
     282 
     283 
    243284  MHillasCalc       hcalc;
    244285  MHillasSrcCalc    csrc1;
    245286 
    246287  MWriteRootFile write(outname,"RECREATE");
    247 
     288 
    248289  write.AddContainer("MHillas"        , "Parameters");
    249290  write.AddContainer("MHillasSrc"     , "Parameters");
     
    254295  write.AddContainer("MConcentration" , "Parameters");
    255296  write.AddContainer("MSrcPosCam"     , "Parameters");
    256  
     297
     298  if (islflag == 1 || islflag == 2)
     299    write.AddContainer("MIslands1" , "Parameters");
     300  if (islflag == 2)
     301    write.AddContainer("MIslands2" , "Parameters");
     302
    257303  tlist4.AddToList(&read4);
    258304  tlist4.AddToList(&geomapl);
     
    261307  //tlist4.AddToList(&blind);
    262308  tlist4.AddToList(&clean);
     309
     310  if (islflag == 1 || islflag == 2)
     311    {
     312      tlist4.AddToList(&timecalc);
     313      tlist4.AddToList(&island);
     314    }
     315
     316  if (islflag == 2)
     317    {
     318      tlist4.AddToList(&islclean);
     319      tlist4.AddToList(&island2);
     320    }
     321 
    263322  //tlist4.AddToList(&blind2);
    264323  tlist4.AddToList(&hcalc);
     
    360419          ifun >> ltail;
    361420        }
     421
     422      if(strcmp(word.Data(),"ISLFLAG")==0)
     423        {
     424          ifun >> islflag;
     425        }
     426
     427      // island cleaning
     428      if (islflag == 2){
     429        if(strcmp(word.Data(),"ISLANDCLEAN")==0)
     430          {
     431            ifun >> kmethod;
     432            ifun >> lnew;
     433          }
     434      }
    362435    }
    363436
     
    384457  cout << "Calibration flag: " << calflag << endl;
    385458  cout << "Cleaning level: ("<<lcore<<","<<ltail<<")" << endl;
     459  if (islflag == 1 || islflag == 2)
     460    cout << "Island calcultation..." << endl;
     461  if (islflag == 2)
     462    {
     463      cout << "Island Cleaning: "<< kmethod <<" method  "<< lnew << " new threshold" << endl;
     464    }
    386465  cout << "***********" << endl << endl;
    387 
     466 
    388467  if(!pediter.GetNumEntries())
    389468    {
  • trunk/MagicSoft/Mars/mtemp/mifae/programs/makehillas.datacard

    r3973 r4044  
    2323// Cleaning level
    2424CLEANLEVEL 3.0 1.5
     25
     26//Island calculations
     27// 0  nothing about islands
     28// 1  islands w/o cleaning
     29// 2  islands  w  cleaning
     30ISLFLAG 0
     31
     32// island cleaning:
     33// 0: timing method     val:0.2, 0.3, 0.5...
     34// 1: no timing method  val: 40, 50, 60...
     35ISLANDCLEAN 1 40
Note: See TracChangeset for help on using the changeset viewer.