Changeset 7354 for trunk/MagicSoft


Ignore:
Timestamp:
09/16/05 12:04:53 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7353 r7354  
    2626       interpolation but was never used
    2727
    28    * mcalib/MCalibrateData.cc:
     28   * mcalib/MCalibrateData.cc :
    2929     - removed an obsolete calibConv=-1 in case the pixel is unsuitable
    3030       (UpdateConversionFactors)
     
    4040       depending on the flag IsLoGainUsed()
    4141
     42   * msignal/MSignalPix.h:
     43     - removed '!' from fRing data member to allow the status unmapped
     44       to be stored after the badpixel treatment
     45     - increased version number
     46     - removed some obsolete comments
     47     - added Copy() member function
     48
    4249
    4350
     
    6572
    6673   * mbase/MStatusDisplay.[h,cc]:
    67      - a simple improvement to teh usage of DrawClonePad.
     74     - a simple improvement to the usage of DrawClonePad.
    6875
    6976   * mgui/MCamEvent.[h,cc]:
  • trunk/MagicSoft/Mars/NEWS

    r7349 r7354  
    33 *** Version <cvs>
    44
    5    * general: added new tutorial macro macros/tutorials/threshold.C:
     5   - general: added new tutorial macro macros/tutorials/threshold.C:
    66     how to calculate the threshold
    77
    8    * general: added a new game. Start it from the interpreter with
    9         MagicJam j;
    10 
    11    * callisto: MBadPixelsCalc now raises an error instead of simply stopping
     8   - general: added a new game. Start it from the interpreter with
     9        MagicJam j; (other games are: MineSweeper, MagicSnake, MagicDomino
     10                     and MagicReversi)
     11
     12   - callisto: MBadPixelsCalc now raises an error instead of simply stopping
    1213     the eventloop if something went wrong. This is necessary for the
    1314     automatic processing
    1415
    15    * callisto: Fixed a bug in the treatment of times in the bad pixel
     16   - callisto: Fixed a bug in the treatment of times in the bad pixel
    1617     treatment. No neighbors have been taken into account, the new
    1718     arrival time was always calculated by the pixels 0 to 5.
    1819
    19    * callisto: Fixed a bug which caused the random and peak-search pedestal
     20   - callisto: The status "unmapped" (for pixel which cannot be interpolated)
     21     got lost when the events were stored by the calibration... fixed.
     22
     23   - callisto: Fixed a bug which caused the random and peak-search pedestal
    2024     extracted with an extractor to be exchanged for the first (roughly)
    21      500 events. (The were simple exchanged in callisto.cc) This bug might
     25     500 events. (They were simply exchanged in callisto.cc) This bug might
    2226     have been introduced in Mars 0.9.4 when the order of calculation of the
    2327     two types of pedestal in callisto got exchanged. The bug only effects
  • trunk/MagicSoft/Mars/msignal/MSignalPix.h

    r6856 r7354  
    1313private:
    1414    Bool_t   fIsCore;        //! the pixel is a Core pixel -> kTRUE
    15     Short_t  fRing;          //! NT: number of analyzed rings around the core pixels, fRing>0 means: used, fRing= 0 means: unused, fRing= -1 means: unmapped (no possible to use in the calculation of the image parameters)
     15    Short_t  fRing;          //  NT: number of analyzed rings around the core pixels, fRing>0 means: used, fRing= 0 means: unused, fRing= -1 means: unmapped (no possible to use in the calculation of the image parameters)
    1616    Short_t  fIdxIsland;     //! the pixel is a Core pixel -> kTRUE
    1717
     
    1919    Float_t  fErrPhot;       // the error of fPhot
    2020    Float_t  fArrivalTime;   // Calibrated Arrival Time
    21     // FIXME: arrival time t, and it's error sigma t
    2221
    2322public:
    24     MSignalPix(/*Int_t pix=-1,*/ Float_t phot=0, Float_t errphot=0);
     23    MSignalPix(Float_t phot=0, Float_t errphot=0);
    2524
    2625    void Clear(Option_t *o=0);
     26    void Copy(TObject &obj) const
     27    {
     28        MSignalPix &pix = (MSignalPix&)obj;
     29        pix.fIsCore     = fIsCore;
     30        pix.fRing       = fRing;
     31        pix.fIdxIsland  = fIdxIsland;
     32        pix.fPhot       = fPhot;
     33        pix.fErrPhot    = fErrPhot;
     34    }
    2735
    2836    Float_t GetNumPhotons() const       { return fPhot;    }
     
    3240    Bool_t  IsPixelUsed() const         { return fRing>0; }
    3341    Bool_t  IsPixelUnmapped() const     { return fRing==-1; }
    34     void    SetPixelUnused()            { fRing=0; }
    35     void    SetPixelUsed()              { fRing=1; }
    36     void    SetPixelUnmapped()          { fRing=-1;}
     42    void    SetPixelUnused()            { fRing=0;  }
     43    void    SetPixelUsed()              { fRing=1;  }
     44    void    SetPixelUnmapped()          { fRing=-1; }
    3745    void    SetIdxIsland(Short_t num)   { fIdxIsland=num; }
    3846    Short_t GetIdxIsland() const        { return fIdxIsland; }
     
    4452    Bool_t  IsPixelCore() const         { return fIsCore;  }
    4553
    46     void    SetNumPhotons(Float_t f)    { MMath::ReducePrecision(f); fPhot     = f; }
     54    void    SetNumPhotons(Float_t f)    { MMath::ReducePrecision(f); fPhot    = f; }
    4755    void    SetErrorPhot(Float_t f)     { MMath::ReducePrecision(f); fErrPhot = f; }
    4856    void    Set(Float_t np, Float_t ep) { MMath::ReducePrecision(np); MMath::ReducePrecision(ep);  fPhot = np; fErrPhot = ep; }
     
    5664    Bool_t  IsSortable() const { return kTRUE; }
    5765
    58     ClassDef(MSignalPix, 6)  // class containing information about the Cerenkov Photons in a pixel
     66    ClassDef(MSignalPix, 7)  // class containing information about the Cerenkov Photons in a pixel
    5967};
    6068
Note: See TracChangeset for help on using the changeset viewer.