Changeset 2695 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
12/17/03 17:14:00 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2694 r2695  
    3737     - removed fUseOrigDistrib accoring to href.GetEntries()==0 used in
    3838       MFEventSelector2 and MFillMatrix
     39
     40   * macros/CT1Analysis.C:
     41     - tried to make fUseOrigDistrib-stuff working again
    3942
    4043
  • trunk/MagicSoft/Mars/macros/CT1Analysis.C

    r2575 r2695  
    11191119    gref.SetName(mgname);
    11201120    MH::SetBinning(&gref.GetHist(), &bing);
    1121     for (Int_t i=1; i<=gref.GetNbins(); i++)
    1122       gref.GetHist().SetBinContent(i, 1.0);
     1121    //for (Int_t i=1; i<=gref.GetNbins(); i++)
     1122    //  gref.GetHist().SetBinContent(i, 1.0);
    11231123
    11241124    MFEventSelector2 selectorg(gref);
     
    11261126    selectorg.SetName("selectGammasTrainTest");
    11271127    selectorg.SetInverted();
    1128     selectorg.SetUseOrigDistribution(kTRUE);
     1128    //selectorg.SetUseOrigDistribution(kTRUE);
    11291129
    11301130    MContinue contg(&selectorg);
     
    18741874    findsuper.SetFilenameParam(parSCfile);
    18751875    findsuper.SetHadronnessName("HadSC");
    1876     findsuper.SetUseOrigDistribution(kTRUE);
     1876    //findsuper.SetUseOrigDistribution(kTRUE);
    18771877
    18781878    //--------------------------
  • trunk/MagicSoft/Mars/manalysis/MCT1FindSupercuts.cc

    r2574 r2695  
    247247    fTitle = title ? title : "Optimizer of the supercuts";
    248248
    249     fUseOrigDistribution = kFALSE;
    250 
    251249    //---------------------------
    252250    // camera geometry is needed for conversion mm ==> degree
     
    280278}
    281279
    282 
    283 // --------------------------------------------------------------------------
    284 //
    285 //
    286 //
    287 void MCT1FindSupercuts::SetUseOrigDistribution(Bool_t b)
    288 {
    289   fUseOrigDistribution = b;
    290 
    291   *fLog << "MCT1FindSupercuts : when defining training and test matrices use the original distribution"
    292         << endl;
    293 }
    294 
    295280// --------------------------------------------------------------------------
    296281//
     
    312297          << "',   select " << howmanytrain
    313298          << " events " << endl;
    314     if (!fUseOrigDistribution)
     299    if (!hreftrain.GetHist().GetEntries()==0)
    315300    {
    316301      *fLog << "     according to a distribution given by the MH3 object '"
     
    332317    seltrain.SetNumMax(howmanytrain);
    333318    seltrain.SetName("selectTrain");
    334     if (fUseOrigDistribution)
    335       seltrain.SetUseOrigDistribution(kTRUE);
    336319
    337320    MFillH filltrain(fMatrixTrain);
     
    416399          << "',   select " << howmanytest
    417400          << " events " << endl;
    418     if (!fUseOrigDistribution)
     401    if (!hreftest.GetHist().GetEntries()==0)
    419402    {
    420403      *fLog << "     according to a distribution given by the MH3 object '"
     
    436419    seltest.SetNumMax(howmanytest);
    437420    seltest.SetName("selectTest");
    438     if (fUseOrigDistribution)
    439       seltest.SetUseOrigDistribution(kTRUE);
    440421 
    441422    MFillH filltest(fMatrixTest);
     
    514495          << "',   select "   << howmanytrain
    515496          << " training and " << howmanytest << " test events " << endl;
    516     if (!fUseOrigDistribution)
     497    if (!href.GetHist().GetEntries()==0)
    517498    {
    518499      *fLog << "     according to a distribution given by the MH3 object '"
     
    535516    selector.SetName("selectTrainTest");
    536517    selector.SetInverted();
    537     if (fUseOrigDistribution)
    538       selector.SetUseOrigDistribution(kTRUE);
    539518
    540519    MContinue cont(&selector);
  • trunk/MagicSoft/Mars/manalysis/MCT1FindSupercuts.h

    r2574 r2695  
    3737  Int_t   fHowManyTrain;
    3838  Int_t   fHowManyTest;
    39 
    40   Bool_t  fUseOrigDistribution;
    4139
    4240  TString  fFilenameParam;
  • trunk/MagicSoft/Mars/manalysis/MFindSupercuts.cc

    r2663 r2695  
    247247    fTitle = title ? title : "Optimizer of the supercuts";
    248248
    249     fUseOrigDistribution = kFALSE;
    250 
    251249    //---------------------------
    252250    // camera geometry is needed for conversion mm ==> degree
     
    280278}
    281279
    282 
    283 // --------------------------------------------------------------------------
    284 //
    285 //
    286 //
    287 void MFindSupercuts::SetUseOrigDistribution(Bool_t b)
    288 {
    289   fUseOrigDistribution = b;
    290 
    291   *fLog << "MFindSupercuts : when defining training and test matrices use the original distribution"
    292         << endl;
    293 }
    294 
    295280// --------------------------------------------------------------------------
    296281//
     
    311296    *fLog << "fill training matrix from file '" << nametrain
    312297          << "',   select " << howmanytrain
    313           << " events " << endl;
    314     if (!fUseOrigDistribution)
     298        << " events " << endl;
     299    if (!hreftrain.GetHist().GetEntries()==0)
    315300    {
    316301      *fLog << "     according to a distribution given by the MH3 object '"
     
    332317    seltrain.SetNumMax(howmanytrain);
    333318    seltrain.SetName("selectTrain");
    334     if (fUseOrigDistribution)
    335       seltrain.SetUseOrigDistribution(kTRUE);
    336319
    337320    MFillH filltrain(fMatrixTrain);
     
    416399          << "',   select " << howmanytest
    417400          << " events " << endl;
    418     if (!fUseOrigDistribution)
     401    if (!hreftest.GetHist().GetEntries()==0)
    419402    {
    420403      *fLog << "     according to a distribution given by the MH3 object '"
     
    436419    seltest.SetNumMax(howmanytest);
    437420    seltest.SetName("selectTest");
    438     if (fUseOrigDistribution)
    439       seltest.SetUseOrigDistribution(kTRUE);
    440421 
    441422    MFillH filltest(fMatrixTest);
     
    514495          << "',   select "   << howmanytrain
    515496          << " training and " << howmanytest << " test events " << endl;
    516     if (!fUseOrigDistribution)
     497    if (!href.GetHist().GetEntries()==0)
    517498    {
    518499      *fLog << "     according to a distribution given by the MH3 object '"
     
    535516    selector.SetName("selectTrainTest");
    536517    selector.SetInverted();
    537     if (fUseOrigDistribution)
    538       selector.SetUseOrigDistribution(kTRUE);
    539518
    540519    MContinue cont(&selector);
  • trunk/MagicSoft/Mars/mtools/MTFillMatrix.cc

    r2692 r2695  
    146146// at MFEventSelector2 which is used to select the events.
    147147//
     148// FIXME: Make a copy of ref.
     149//
    148150MTFillMatrix::MTFillMatrix(const MH3 &ref)
    149151: fReference(ref), fReader(0), fDestMatrix1(0),
     
    166168        return kFALSE;
    167169    }
    168 
    169     const Bool_t useorigdistrib = fReference.GetHist().GetEntries()==0;
    170170
    171171    *fLog << inf;
     
    174174    *fLog << "Fill " << fDestMatrix2->GetDescriptor() << " with " << fNumDestEvents2 << endl;
    175175        *fLog << "Distribution choosen ";
    176     if (!useorigdistrib)
     176    if (fReference.GetHist().GetEntries()>0)
    177177        *fLog << "from " << fReference.GetDescriptor();
    178178    else
     
    193193    selector.SetNumMax(fNumDestEvents1+fNumDestEvents2);
    194194    selector.SetInverted();
    195     if (useorigdistrib)
    196         selector.SetUseOrigDistribution(kTRUE);
    197195
    198196    //
Note: See TracChangeset for help on using the changeset viewer.