Ignore:
Timestamp:
04/11/03 19:42:54 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MCT1SupercutsCalc.cc

    r1934 r1947  
    136136//
    137137MCT1SupercutsCalc::MCT1SupercutsCalc(const char *hilname,
    138                const char *hilsrcname, const char *name, const char *title)
     138                                     const char *hilsrcname, const char *name, const char *title)
     139: fHadronnessName("MHadronness"), fHilName(hilname), fHilSrcName(hilsrcname)
    139140{
    140141    fName  = name  ? name  : "MCT1SupercutsCalc";
    141142    fTitle = title ? title : "Class to evaluate the Supercuts";
    142143
    143     fHilName    = hilname;
    144     fHilSrcName = hilsrcname;
    145 
    146144    InitParams();
    147145}
     
    186184        return kFALSE;
    187185    }
    188 
    189186
    190187    fCam = (MGeomCam*)pList->FindObject("MGeomCam");
     
    274271  //      << width << endl;
    275272
    276   if (    newdist  < 1.05
    277        && newdist  < CtsMCut (fDistUp,   dmls, dmcza, dmls2, dd2)
    278        && newdist  > CtsMCut (fDistLo,   dmls, dmcza, dmls2, dd2)
    279        && dist     < 1.05
    280        && length   < CtsMCut (fLengthUp, dmls, dmcza, dmls2, dd2)
    281        && length   > CtsMCut (fLengthLo, dmls, dmcza, dmls2, dd2)
    282        && width    < CtsMCut (fWidthUp,  dmls, dmcza, dmls2, dd2)
    283        && width    > CtsMCut (fWidthLo,  dmls, dmcza, dmls2, dd2)
    284        //&& asym   < CtsMCut (asymup,    dmls, dmcza, dmls2, dd2)
    285        //&& asym   > CtsMCut (asymlow,   dmls, dmcza, dmls2, dd2)
    286        && dist     < CtsMCut (fDistUp,   dmls, dmcza, dmls2, dd2)
    287        && dist     > CtsMCut (fDistLo,   dmls, dmcza, dmls2, dd2)  )
    288     fHadronness->SetHadronness(0.25);
     273  if (newdist < 1.05                                         &&
     274      newdist < CtsMCut (fDistUp,   dmls, dmcza, dmls2, dd2) &&
     275      newdist > CtsMCut (fDistLo,   dmls, dmcza, dmls2, dd2) &&
     276      dist    < 1.05                                         &&
     277      length  < CtsMCut (fLengthUp, dmls, dmcza, dmls2, dd2) &&
     278      length  > CtsMCut (fLengthLo, dmls, dmcza, dmls2, dd2) &&
     279      width   < CtsMCut (fWidthUp,  dmls, dmcza, dmls2, dd2) &&
     280      width   > CtsMCut (fWidthLo,  dmls, dmcza, dmls2, dd2) &&
     281      //asym  < CtsMCut (asymup,    dmls, dmcza, dmls2, dd2) &&
     282      //asym  > CtsMCut (asymlow,   dmls, dmcza, dmls2, dd2) &&
     283      dist    < CtsMCut (fDistUp,   dmls, dmcza, dmls2, dd2) &&
     284      dist    > CtsMCut (fDistLo,   dmls, dmcza, dmls2, dd2)  )
     285      fHadronness->SetHadronness(0.25);
    289286  else
    290     fHadronness->SetHadronness(0.75);
     287      fHadronness->SetHadronness(0.75);
     288
     289  fHadronness->SetReadyToSave();
    291290
    292291  return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.