Changeset 1921 for trunk/MagicSoft


Ignore:
Timestamp:
04/08/03 10:52:14 (22 years ago)
Author:
wittek
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1920 r1921  
    1818   * manalysis/MMcTriggerLvl2Calc.cc
    1919     - added call to Fill method of MHMcTriggerLvl2
     20
     21
     22 2003/04/09: Wolfgang Wittek
     23
     24   * mfilter/MFCT1SelFinal.[h,cc]
     25     - add new member function SetHadronnessName()
     26
     27   * mhist/MHHadronness.[h,cc]
     28     - reset to SetOptStat(111100)
     29     - correct acceptance
     30
     31   * manalysis/MMultiDimDistCalc.[h,cc]
     32     - swap arguments if FindCreateObj
     33
    2034
    2135
  • trunk/MagicSoft/Mars/manalysis/MMultiDimDistCalc.cc

    r1910 r1921  
    152152    }
    153153
    154     fHadronness = (MHadronness*)plist->FindCreateObj(fHadronnessName, "MHadronness");
     154    fHadronness = (MHadronness*)plist->FindCreateObj("MHadronness", fHadronnessName);
    155155    if (!fHadronness)
    156156        return kFALSE;
  • trunk/MagicSoft/Mars/mfilter/MFCT1SelFinal.cc

    r1905 r1921  
    6464    fTitle = title ? title : "Class to evaluate the Final Cuts";
    6565
    66     fHilName    = HilName;
    67     fHilSrcName = HilSrcName;
     66    fHilName        = HilName;
     67    fHilSrcName     = HilSrcName;
     68    fHadronnessName = "MHadronness";
    6869
    6970    // default values of cuts
     
    106107    }
    107108
    108     fHadronness = (MHadronness*)pList->FindObject("MHadronness");
     109    fHadronness = (MHadronness*)pList->FindObject(fHadronnessName, "MHadronness");
    109110    if (!fHadronness)
    110111    {
     
    171172    *fLog << " " << setw(7) << fCut[1] << " (" << setw(3)
    172173          << (int)(fCut[1]*100/GetNumExecutions())
    173           << "%) Evts skipped due to: hadroness > "<< fHadronnessMax << endl;
     174          << "%) Evts skipped due to: hadronness > "<< fHadronnessMax
     175          << " (hadronness from '" << fHadronnessName << "')" << endl;
    174176
    175177    *fLog << " " << setw(7) << fCut[2] << " (" << setw(3)
  • trunk/MagicSoft/Mars/mfilter/MFCT1SelFinal.h

    r1905 r1921  
    3535    TString      fHilName;
    3636    TString      fHilSrcName;
     37    TString      fHadronnessName;
    3738 
    3839    Float_t      fHadronnessMax;
     
    4647                  const char *name=NULL, const char *title=NULL);
    4748
     49    void SetHadronnessName(const TString name) { fHadronnessName = name; }
    4850    Bool_t IsExpressionTrue() const  { return fResult; }
    4951
     
    5456    void SetCuts(Float_t hadmax, Float_t alphamax);
    5557
    56     ClassDef(MFCT1SelFinal, 0)   // Class to evaluate final cuts
     58    ClassDef(MFCT1SelFinal, 1)   // Class to evaluate final cuts
    5759};
    5860
  • trunk/MagicSoft/Mars/mhist/MHHadronness.cc

    r1910 r1921  
    266266    Float_t max=0;
    267267
     268
    268269    for (Int_t i=1; i<=n; i++)
    269270    {
    270         const Stat_t ip = sump!=0 ? fPhness->Integral(1, i)/sump : 0;
    271         const Stat_t ig = sumg!=0 ? fGhness->Integral(1, i)/sumg : 0;
     271        const Stat_t ip = sump!=0 ? fPhness->Integral(1, i) : 0;
     272        const Stat_t ig = sumg!=0 ? fGhness->Integral(1, i) : 0;
    272273
    273274        fIntPhness->SetBinContent(i, ip);
     
    463464    m->Draw();
    464465    */
     466
     467    gStyle->SetOptStat(111100);
     468
    465469    return &c;
    466470}
Note: See TracChangeset for help on using the changeset viewer.