Changeset 9027 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
07/22/08 16:28:14 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MTime.cc

    r9017 r9027  
    781781
    782782    // recalculate tm_yday and tm_wday
    783     if (mktime(&time)<0)
    784         return "";
     783    mktime(&time);
     784
     785    // We get errors for example for 1910-01-01
     786    //    if (mktime(&time)<0)
     787    //        return "";
    785788
    786789    char ret[128];
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc

    r9017 r9027  
    411411
    412412    MH3 hpat("MRawRunHeader.GetFileID", "MTriggerPattern.GetUnprescaled");
    413     hpat.SetWeight("1./TMath::Max(MRawRunHeader.GetRunLength,1)");
     413    if (fSequence.IsMonteCarlo())
     414        hpat.SetWeight("100./MMcRunHeader.fNumSimulatedShowers");
     415    else
     416        hpat.SetWeight("1./TMath::Max(MRawRunHeader.GetRunLength,1)");
    414417    hpat.SetName("TrigPat");
    415418    hpat.SetTitle("Rate of the trigger pattern [Hz];File Id;Trigger Pattern;Rate [Hz]");
     
    756759    // Build tasklist
    757760
    758     MTaskList tlist2;
     761    MTaskList tlist2("PedEvents");
    759762
    760763    tlist2.AddToList(&caldec);
     
    768771    // Pedestal extraction
    769772
    770     MTaskList tlist3;
     773    MTaskList tlist3("CalEvents");
    771774    tlist3.SetFilter(&fped);         // Deny events with cal-trigger
    772775
  • trunk/MagicSoft/Mars/mjobs/MJStar.cc

    r9024 r9027  
    277277    // Plot the trigger pattern rates vs. run-number
    278278    MH3 hrate("MRawRunHeader.GetFileID", "MTriggerPattern.GetUnprescaled");
    279     hrate.SetWeight("1./TMath::Max(MRawRunHeader.GetRunLength,1)");
     279    if (fSequence.IsMonteCarlo())
     280        hrate.SetWeight("100./MMcRunHeader.fNumSimulatedShowers");
     281    else
     282        hrate.SetWeight("1./TMath::Max(MRawRunHeader.GetRunLength,1)");
    280283    hrate.SetName("Rate");
    281284    hrate.SetTitle("Event rate after cleaning [Hz];File Id;Trigger Type;");
Note: See TracChangeset for help on using the changeset viewer.