Changeset 6985 for trunk


Ignore:
Timestamp:
04/29/05 12:39:44 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6980 r6985  
    2121
    2222                                                 -*-*- END OF LINE -*-*-
     23
     24 2005/04/29 Thomas Bretz
     25
     26   * manalysis/MEventRateCalc.cc:
     27     - fixed jumps when a new run is initiated
     28     - set as time a time which represents the starting point
     29       of the calculation interval in all cases
     30
     31
     32
     33 2005/04/28 Thomas Bretz
     34
     35   * manalysis/MMultiDimDistCalc.[h,cc]:
     36     - replaced MHadronness by MParameterD
     37
     38   * mhflux/MHEnergyEst.cc:
     39     - removed obsolete include of MEnergyEst
     40
     41   * mmuon/MHMuonPar.cc:
     42     - fixed a type in an axis label
     43
     44
    2345
    2446 2005/04/27 Thomas Bretz
  • trunk/MagicSoft/Mars/NEWS

    r6980 r6985  
    4343     different results with different compiler optimiztaion options
    4444     due to rounding errors.
     45
     46   - MEventRateCalc handles the calculation of the event rate more
     47     accurate now in case of the start of a new run inside a sequence
    4548
    4649
  • trunk/MagicSoft/Mars/manalysis/MEventRateCalc.cc

    r6455 r6985  
    155155Int_t MEventRateCalc::Process()
    156156{
    157     const ULong_t exec = GetNumExecutions()-1;
     157    const ULong_t exec = GetNumExecutions()-fNumFirstEvent-1;
    158158
    159159    //*fLog << all << fNumFirstEvent << " " << exec << endl;
     
    172172    const UInt_t cnt = n1<n2 ? n : n1-n2;
    173173
     174    if (cnt<n/10)
     175        return kTRUE;
     176
     177
    174178    // Calculate the rate
    175179    const Double_t rate = (Double_t)cnt/(fTimes[n1%n]-fTimes[n2%n]);
     
    190194    fRate->SetRate(exec>1?rate:0, cnt);
    191195    fRate->SetReadyToSave();
     196
     197    Double_t diff = fTimes[n1%n]- fTimes[n2%n];
     198    Double_t time = fTimes[n2%n]+ (cnt-n/10.)/(n-n/10.)*diff/2;
     199
     200    fTimeRate->SetMean(time, time);
     201
     202    //if (cnt>1000)
     203    //*fLog << all << *fTimeRate << " " << *fTime << " " << diff << " " << cnt << " " << n << " " << (float)(cnt-n/2)/n << endl;
    192204
    193205    // Store the corresponding time
  • trunk/MagicSoft/Mars/mjobs/MJCalib.cc

    r6913 r6985  
    4444// Sets:
    4545// - fDataFlag      to kIsUseRootData
    46 // - fRuns          to NULL
    4746// - fCheckedPixId  to fgCheckedPixId
    4847// - fPixelCheck    to kFALSE
     
    5150MJCalib::MJCalib() : fDataFlag(kIsUseRootData), fStorage(0),
    5251                     fIsPixelCheck(kFALSE), fIsPulsePosCheck(kFALSE),
    53                      fIsHiLoCalibration(kFALSE),
    54                      fRuns(NULL)
     52                     fIsHiLoCalibration(kFALSE)
    5553{
    5654  SetUseBlindPixel(kFALSE);
  • trunk/MagicSoft/Mars/mjobs/MJCalib.h

    r6913 r6985  
    4848    Bool_t fIsHiLoCalibration;          // Choose to calibrate the high-gain vs. low-gains
    4949   
    50     MRunIter *fRuns;                    // Data files, only used for test applications, default is sequence files!
    51 
    5250    Bool_t CheckEnvLocal();
    5351    Byte_t GetDataFlag() { return fDataFlag; }
     
    5957
    6058    MJCalib();
    61 
    62     void SetInput(MRunIter *iter) { fRuns = iter; }
    6359
    6460    Bool_t IsUseRawData()  const { return fDataFlag==kIsUseRawData;  }
Note: See TracChangeset for help on using the changeset viewer.