Ignore:
Timestamp:
02/24/04 15:49:17 (21 years ago)
Author:
wittek
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/ONOFFAnalysis.C

    r3209 r3274  
    172172      //-----------------------------------------------
    173173      //const char *offfile = "~magican/ct1test/wittek/offdata.preproc";
    174       const char *offfile = "20040126_OffCrab_";
     174      //const char *offfile = "20040126_OffCrab_";
     175      //const char *offfile  = "*.OFF";
     176      const char *offfile  = "12*.OFF";
    175177
    176178      //const char *onfile  = "~magican/ct1test/wittek/mkn421_on.preproc";
    177179      //      const char *onfile  = "~magican/ct1test/wittek/mkn421_00-01";
    178       const char *onfile  = "20040126_Crab_";
     180      //const char *onfile  = "20040126_Crab_";
     181      //const char *onfile  = "MCerPhot_output";
     182      //const char *onfile  = "*.ON";
     183      const char *onfile  = "12*.ON";
    179184
    180185     const char *mcfile  = "/data/MAGIC/mc_eth/magLQE_3/gh/0/0/G_M0_00_0_550*.root";
     
    184189
    185190      // path for input for Mars
    186       TString inPath = "/.magic/magicserv01/scratch/";
     191      //TString inPath = "/.magic/magicserv01/scratch/";
     192     TString inPath = "/mnt/data17a/hbartko/";
     193     //TString inPath = "~wittek/datacrab_feb04/";
    187194
    188195      // path for output from Mars
    189       TString outPath = "~wittek/datacrab/";
     196      TString outPath = "~wittek/datacrab_feb04/";
    190197
    191198      //-----------------------------------------------
     
    235242    Bool_t JobB_SC_UP  = kFALSE;
    236243    Bool_t CMatrix     = kFALSE;  // create training and test matrices
    237     Bool_t RMatrix     = kTRUE;  // read training and test matrices from file
    238     Bool_t WOptimize   = kTRUE;  // do optimization using the training sample
     244    Bool_t RMatrix     = kFALSE;  // read training and test matrices from file
     245    Bool_t WOptimize   = kFALSE;  // do optimization using the training sample
    239246                                  // and write supercuts parameter values
    240247                                  // onto the file parSCfile
    241248    Bool_t RTest       = kFALSE;  // test the supercuts using the test matrix
    242     Bool_t WSC         = kFALSE;  // update input root file ?
     249    Bool_t WSC         = kTRUE;  // update input root file ?
    243250
    244251
     
    316323    TString fileON  = inPath;
    317324    fileON += onfile;
    318     fileON += "CalibratedEvts";
    319325    fileON += ".root";
    320326
    321327    TString fileOFF = inPath;
    322328    fileOFF += offfile;
    323     fileOFF += "CalibratedEvts";
    324329    fileOFF += ".root";
    325330
    326331    TString fileMC  = mcfile;
    327332    fileMC += mcfile;
    328     fileMC += "CalibratedEvts";
    329333    fileMC += ".root";
    330334
     
    339343    //--------------------------------------------------
    340344    // type of data to be padded
    341     //TString typeInput = "ON";
    342     TString typeInput = "OFF";
     345    TString typeInput = "ON";
     346    //TString typeInput = "OFF";
    343347    //TString typeInput = "MC";
    344348    gLog << "typeInput = " << typeInput << endl;
     
    366370    outNameImage += "Hillas";
    367371    outNameImage += typeInput;
    368     outNameImage += "1.root";
     372    outNameImage += "1a.root";
    369373    gLog << "padded data to be written onto : " << outNameImage << endl;
    370374
     
    680684    MGeomApply        apply;
    681685
    682     MPedestalWorkaround waround;
     686    //MPedestalWorkaround waround;
    683687
    684688    // a way to find out whether one is dealing with MC :
     
    693697    //                                             "MCT1PointingCorrCalc");
    694698    //}
     699    MSourcePosfromStarPos sourcefromstar;
     700    sourcefromstar.SetSourceAndStarPosition("Crab", 22, 0, 52, 5, 34, 32,
     701                                        "Zeta-Tau", 21, 8, 33, 5, 37, 38.7);
     702    sourcefromstar.AddFile("~wittek/datacrab_feb04/positions.4.txt", 0);
    695703
    696704    MBlindPixelCalc blindbeforepad;
     
    706714    contbasic.SetName("SelBasic");
    707715
    708     //MFillH fillblind("BlindPixels[MHBlindPixels]", "MBlindPixels");
    709     //fillblind.SetName("HBlind");
     716    MFillH fillblind("BlindPixels[MHBlindPixels]", "MBlindPixels");
     717    fillblind.SetName("HBlind");
    710718
    711719    MSigmabarCalc sigbarcalc;
     
    750758    selstandard.SetHillasName(fHilName);
    751759    selstandard.SetImgParName(fImgParName);
    752     selstandard.SetCuts(100, 4, 20, 0.0, 1.0, 0.0, 0.0);
     760    selstandard.SetCuts(200, 6, 600, 0.4, 1.1, 0.0, 0.0);
    753761    MContinue contstandard(&selstandard);
    754762    contstandard.SetName("SelStandard");
     
    786794    //tliston.AddToList(&f2);
    787795    tliston.AddToList(&apply);
    788     tliston.AddToList(&waround);
     796    //tliston.AddToList(&waround);
     797    tliston.AddToList(&sourcefromstar);
    789798
    790799    //tliston.AddToList(&blindbeforepad);
     
    793802    //  tliston.AddToList(&pointcorr);
    794803
    795     //tliston.AddToList(&blind);
    796     tliston.AddToList(&contbasic);
    797 
    798     //tliston.AddToList(&fillblind);
     804    tliston.AddToList(&blind);
     805    //tliston.AddToList(&contbasic);
     806
     807    tliston.AddToList(&fillblind);
    799808    tliston.AddToList(&sigbarcalc);
    800809    tliston.AddToList(&fillsigtheta);
     
    17831792    TString parSCinit = outPath;
    17841793    //parSCinit += "parSC_060204";
     1794    //parSCinit = "parSC_240204a";
    17851795    parSCinit = "";
    17861796
     
    18021812
    18031813    TString parSCfile = outPath;
    1804     parSCfile += "parSC_130204a";
     1814    parSCfile += "parSC_240204a";
    18051815
    18061816    gLog << "parSCfile = " << parSCfile << endl;
     
    18431853    filenameTrain += typeInput;
    18441854    filenameTrain += "1.root";
    1845     Int_t howManyTrain = 7000;
     1855    Int_t howManyTrain = 20000;
    18461856    gLog << "filenameTrain = " << filenameTrain << ",   howManyTrain = "
    18471857         << howManyTrain  << endl;
     
    18531863    filenameTest += typeInput;
    18541864    filenameTest += "1.root";
    1855     Int_t howManyTest = 7000;
     1865    Int_t howManyTest = 20000;
    18561866
    18571867    gLog << "filenameTest = " << filenameTest << ",   howManyTest = "
Note: See TracChangeset for help on using the changeset viewer.