Changeset 9022 for trunk


Ignore:
Timestamp:
07/20/08 18:38:24 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9019 r9022  
    7171   * mjobs/MSequenceSQL.[h,cc]:
    7272     - adapted to changes in MSequence
     73
     74   * datacenter/macros/stage.C
     75     - added
     76
     77   * mjobs/MJStar.cc:
     78     - changed displayed title according to the other jobs
     79     - changed Setup*Runs to GetRuns
     80     - unified output when finished
     81     - make sure the weight for the rate tab is not 0
    7382
    7483
  • trunk/MagicSoft/Mars/datacenter/macros/plotdb.C

    r9017 r9022  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.49 2008-07-20 14:21:40 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.50 2008-07-20 17:33:22 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    460460        else
    461461        {
    462             TString v(value);
    463 
    464             TString as = v(TPRegexp(" +[aA][sS] +[a-zA-Z0-9]+ *$"));
     462            TString  v(value);
     463            TPRegexp regexp(" +[aA][sS] +[a-zA-Z0-9]+ *$");
     464
     465            TString as = v(regexp);
    465466            Ssiz_t  p  = v.Index(as);
    466467
  • trunk/MagicSoft/Mars/mjobs/MJStar.cc

    r8970 r9022  
    119119
    120120    if (fDisplay)
     121    {
     122        TString title = "--  Star: ";
     123        title += fSequence.GetSequence();
     124        title += "  --";
     125        fDisplay->SetTitle(title, kFALSE);
     126
    121127        cont.Add(fDisplay);
     128    }
    122129
    123130    const TString oname = Form("star%08d.root", fSequence.GetSequence());
     
    145152    *fLog << fSequence.GetFileName() << endl;
    146153    *fLog << endl;
    147 
     154 
    148155    // --------------------------------------------------------------------------------
    149156
    150157    MDirIter iter;
    151     if (fSequence.SetupDatRuns(iter, MSequence::kCalibrated)<=0)
     158    if (fSequence.GetRuns(iter, MSequence::kCalibrated)<=0)
    152159        return kFALSE;
    153160
     
    269276    // Plot the trigger pattern rates vs. run-number
    270277    MH3 hrate("MRawRunHeader.GetFileID", "MTriggerPattern.GetUnprescaled");
    271     hrate.SetWeight("1./MRawRunHeader.GetRunLength");
     278    hrate.SetWeight("1./TMath::Max(MRawRunHeader.GetRunLength,1)");
    272279    hrate.SetName("Rate");
    273280    hrate.SetTitle("Event rate after cleaning [Hz];File Id;Trigger Type;");
     
    546553        return kFALSE;
    547554
    548     *fLog << all << GetDescriptor() << ": Done." << endl;
    549     *fLog << endl << endl;
     555    *fLog << all << GetDescriptor() << ": Done." << endl << endl << endl;;
    550556
    551557    return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.