Changeset 6038


Ignore:
Timestamp:
01/27/05 10:44:51 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6037 r6038  
    2929     enabled the calibration of data with interlaced calibration events     
    3030
     31   * msignal/MArrivalTime.[h,cc]
     32   * mcalib/MCalibrateRelTime.cc
     33     - removed Error of calibrated arrival time, as agreed on the last
     34       software calibration meeting yesterday
    3135
    3236 2005/01/27 Thomas Bretz
     
    3943
    4044   * star.rc:
    41      - according to Daniel M. we have agreed to chenge the default
     45     - according to Daniel M. we have agreed to change the default
    4246       cleaning level to adapt it roughly to the new pedestal
    4347
  • trunk/MagicSoft/Mars/mcalib/MCalibrateRelTimes.cc

    r5947 r6038  
    160160
    161161        const Float_t offset    = pix.GetTimeOffset();
    162         const Float_t precision = pix.GetTimePrecision();
    163162
    164163        MArrivalTimePix &sig = (*fSignals)[pixidx];
    165164
    166165        Float_t signal;
    167         Float_t sigerr;
    168166
    169167        if (sig.IsLoGainUsed())
    170         {
    171             signal = sig.GetArrivalTimeLoGain();
    172             sigerr = sig.GetArrivalTimeLoGainError();
    173         }
     168          signal = sig.GetArrivalTimeLoGain();
    174169        else
    175         {
    176             signal = sig.GetArrivalTimeHiGain();
    177             sigerr = sig.GetArrivalTimeHiGainError();
    178         }
     170          signal = sig.GetArrivalTimeHiGain();
    179171
    180172        const Float_t time = signal - offset;
    181         const Float_t err  = sigerr*sigerr + precision*precision;
    182173
    183174        fArrivalTime->SetTime(pixidx, time);
    184         fArrivalTime->SetTimeErr(pixidx, err>0 ? TMath::Sqrt(err) : 0);
    185175
    186176    } /* for (UInt_t pixidx=0; pixidx<npix; pixidx++) */
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc

    r6037 r6038  
    6161#include "MCalibrationChargePINDiode.h"
    6262#include "MCalibrationHiLoCam.h"
     63#include "MCalibrationPatternDecode.h"
    6364
    6465#include "MCalibrationChargeCalc.h"
     
    393394
    394395    // Check for interleaved events
    395     MTriggerPatternDecode decode;
     396    MCalibrationPatternDecode caldec;
     397    MTriggerPatternDecode     decode;
    396398
    397399    MFTriggerPattern ftp;
     
    606608    MTaskList tlist2;
    607609
     610    tlist2.AddToList(&caldec);
    608611    tlist2.AddToList(&decode);
    609612    tlist2.AddToList(&apply);
  • trunk/MagicSoft/Mars/msignal/MArrivalTime.cc

    r5143 r6038  
    6464{
    6565    fData.Reset(-1);
    66     fDataErr.Reset(-1);
    6766}
    6867
     
    7069{
    7170    fData.Set(i);
    72     fDataErr.Set(i);
    7371}
    7472
     
    8280}
    8381     
    84 
    85 // -------------------------------------------------------------------------
    86 //
    87 // Set the arrival time error in one pixel
    88 //
    89 void MArrivalTime::SetTimeErr(const Int_t i, const Float_t t)
    90 {
    91     fDataErr[i] = t;
    92 }
    9382
    9483void MArrivalTime::Print(Option_t *o) const
  • trunk/MagicSoft/Mars/msignal/MArrivalTime.h

    r4828 r6038  
    2222private:
    2323  TArrayF fData;     // Stores the calibrated arrival times
    24   TArrayF fDataErr;  // Stores the calibrated arrival time errors
    2524
    2625public:
     
    3534
    3635    void SetTime(const Int_t i, const Float_t time);
    37     void SetTimeErr(const Int_t i, const Float_t timeerr);   
    38    
     36
    3937    const TArrayF &GetData() const { return fData; }
    40     const TArrayF &GetDataErr() const { return fDataErr; }
    4138
    4239    Double_t operator[](int i)       { return fData[i]; }
     
    5249    void DrawPixelContent(Int_t num) const;
    5350
    54      ClassDef(MArrivalTime, 1)    // class for an event containing the arrival times
     51     ClassDef(MArrivalTime, 2)    // class for an event containing the arrival times
    5552};
    5653
Note: See TracChangeset for help on using the changeset viewer.