Ignore:
Timestamp:
12/22/03 20:35:39 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r2678 r2744  
    2929//  This task calculates the event rates from the event times and numbers.
    3030//
    31 //  It is under construction: More information comming soon....
    32 //
     31//  The algorithm is explained in Process()
    3332//
    3433//  Input Containers:
     
    3837//    MEventRate
    3938//    MTimeRate [MTime] (missing)
     39//
     40//  FIXME: For convinience we could implement a mode which always takes
     41//         n events to calculate the event rate and sets the corresponding
     42//         time. This mode could be used to UPADTE files with the event
     43//         rate.
    4044//
    4145//////////////////////////////////////////////////////////////////////////////
     
    6872//
    6973// The PreProcess searches for the following input containers:
    70 //  ...
     74//   MTime
     75//
     76// The PreProcess searches for the following input containers:
     77//   MEventRate
     78//
     79// Reset all times in the buffer
    7180//
    7281Int_t MEventRateCalc::PreProcess(MParList *pList)
     
    9099// --------------------------------------------------------------------------
    91100//
     101// Calculate the events rate as (t1-t0)/n while t1 is the n-th event after
     102// t0. If there are not yet enough events in the buffer n is the number
     103// of available events. Otherwise the number setup in SetNumEvents.
    92104//
    93105Int_t MEventRateCalc::Process()
     
    109121    fRate->SetReadyToSave();
    110122
    111     // *fLog << inf << "   ---   Event Rate [Hz]: " << rate << "  (" << cnt << ")" << endl;
    112 
    113123    return kTRUE;
    114124}
Note: See TracChangeset for help on using the changeset viewer.