Changeset 7733 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
05/23/06 17:07:28 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7732 r7733  
    5050       of an arrival time extracted outside the fadc range. This
    5151       avoids possible unfortuante coincidences in arrival times.
     52
     53   * mbadpixels/MBadPixelsTreat.[h,cc]:
     54     - added new data member fMaxArrivalTimeDiff, which is the maximum
     55       arrival time difference allowed for the badpixel algorithm
     56       to determin whether a pixels belongs to a shower
     57     - changed the old value (0.5) to 1.0 as suggested by Stefan
     58       due to a recent study on the fraction of pixels surviving the
     59       image cleaning
    5260
    5361
  • trunk/MagicSoft/Mars/NEWS

    r7726 r7733  
    33 *** Version  <cvs>
    44
     5   - genetral: changed the binning of the azimuthal profile of the camera
     6     such that it is aligned with the 60deg boundaries.
     7     
    58   - merpp: better handling of problems with the TH, TD part of the
    69     CC-REPORT for files older than 200507190 and 200412210
     
    1114   - merpp: implementd latest changes in starguider reports (sinc 9th May)
    1215
     16   - callisto: if an arrival time is extracted outside the fadc range is
     17     was set to the boundary before. Now a random number is assigned
     18     instead to avoid unfortunate coincidences of arrival times just
     19     by this arbitrary value.
     20
     21   - callisto: added a new option to callisto.rc which allows
     22     to set the maximum arrival time difference allowed for the
     23     badpixel algorithm to determin whether a pixels belongs to a shower:
     24       MJCalibrateSignal.MBadPixelsTreat.MaxArrivalTimeDiff: 1.0
     25
     26   - callisto: changed the old value (0.5) for MaxArrivalTimeDiff
     27     to 1.0 as suggested by Stefan due to a recent study on the fraction
     28     of pixels surviving the image cleaning
     29   
    1330   - star: Show also the number of stars correlated correctly by the
    1431     starguider
     
    3451     eventloop the first and second loop could be accelerated by ~20%
    3552
    36    - general: Added a missing feature in the MFilterLIst class which
     53   - general: Added a missing feature in the MFilterList class which
    3754     prevented MFEnergySlope from working correctly in trainenergy.C
    3855
  • trunk/MagicSoft/Mars/callisto.rc

    r7497 r7733  
    415415#MJCalibrateSignal.MBadPixelsCalc.PedestalLevelVariance: 3.0
    416416#MJCalibrateSignal.MBadPixelsTreat.NumMinNeighbors:    3
     417#MJCalibrateSignal.MBadPixelsTreat.MaxArrivalTimeDiff: 1.0
    417418#MJCalibrateSignal.MBadPixelsTreat.UseInterpolation:   yes
    418419#MJCalibrateSignal.MBadPixelsTreat.ProcessPedestalEvt: yes
  • trunk/MagicSoft/Mars/callisto_Dec04Jan05.rc

    r7595 r7733  
    426426#MJCalibrateSignal.MBadPixelsCalc.PedestalLevelVariance: 3.0
    427427#MJCalibrateSignal.MBadPixelsTreat.NumMinNeighbors:    3
     428#MJCalibrateSignal.MBadPixelsTreat.MaxArrivalTimeDiff: 1.0
    428429#MJCalibrateSignal.MBadPixelsTreat.UseInterpolation:   yes
    429430#MJCalibrateSignal.MBadPixelsTreat.ProcessPedestalEvt: yes
  • trunk/MagicSoft/Mars/callisto_MarApr05.rc

    r7564 r7733  
    415415#MJCalibrateSignal.MBadPixelsCalc.PedestalLevelVariance: 3.0
    416416#MJCalibrateSignal.MBadPixelsTreat.NumMinNeighbors:    3
     417#MJCalibrateSignal.MBadPixelsTreat.MaxArrivalTimeDiff: 1.0
    417418#MJCalibrateSignal.MBadPixelsTreat.UseInterpolation:   yes
    418419#MJCalibrateSignal.MBadPixelsTreat.ProcessPedestalEvt: yes
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc

    r7377 r7733  
    1818!   Author(s): Oscar Blanch 12/2001 <mailto:blanch@ifae.es>
    1919!   Author(s): Thomas Bretz 08/2002 <mailto:tbretz@astro.uni-wuerzburg.de>
     20!   Author(s): Stefan Ruegamer <mailto:snruegam@astro.uni-wuerzburg.de>
    2021!
    21 !   Copyright: MAGIC Software Development, 2000-2004
     22!   Copyright: MAGIC Software Development, 2000-2006
    2223!
    2324!
     
    107108MBadPixelsTreat::MBadPixelsTreat(const char *name, const char *title)
    108109    : fGeomCam(0), fEvt(0), fBadPixels(0), fPedPhot1(0), fPedPhot2(0),
    109     fFlags(0), fNumMinNeighbors(3)
     110    fFlags(0), fNumMinNeighbors(3), fMaxArrivalTimeDiff(1.0)
    110111{
    111112    fName  = name  ? name  : gsDefName.Data();
     
    425426void MBadPixelsTreat::InterpolateTimes() const
    426427{
    427     const Double_t tdiffshoweredge = 0.5;
    428 
    429428    const Int_t n = fEvt->GetNumPixels();
    430429    for (int i=0; i<n; i++)
     
    471470
    472471            // Calculate mean arrival time of pixel probably inside the shower
    473             if (TMath::Abs(tm1 - tm2)<tdiffshoweredge)
     472            if (TMath::Abs(tm1 - tm2)<fMaxArrivalTimeDiff)
    474473            {
    475474                sum2 += tm1+tm2;
     
    601600//   MBadPixelsTreat.ProcessPedestalEvt:  no
    602601//   MBadPixelsTreat.NumMinNeighbors:     3
     602//   MBadPixelsTreat.MaxArrivalTimeDiff:  1.0
    603603//
    604604Int_t MBadPixelsTreat::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
     
    640640        SetNumMinNeighbors(GetEnvValue(env, prefix, "NumMinNeighbors", fNumMinNeighbors));
    641641    }
     642    if (IsEnvDefined(env, prefix, "MaxArrivalTimeDiff", print))
     643    {
     644        rc = kTRUE;
     645        SetMaxArrivalTimeDiff(GetEnvValue(env, prefix, "MaxArrivalTimeDiff", fMaxArrivalTimeDiff));
     646    }
    642647    return rc;
    643648}
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.h

    r7376 r7733  
    2424    TList fPedPhotCams;
    2525
    26     Byte_t fFlags;       // flag for the method which is used
    27     Byte_t fNumMinNeighbors;
     26    Byte_t  fFlags;                // flag for the method which is used
     27    Byte_t  fNumMinNeighbors;      // Number of neighbors required
     28    Float_t fMaxArrivalTimeDiff;   // Maximum allowed arrival time difference of neighboring pixels
    2829
    2930    TList fNamePedPhotCams;
     
    9596    Bool_t IsUseInterpolation() const   { return TESTBIT(fFlags, kUseInterpolation); }
    9697
    97     void SetNumMinNeighbors(Byte_t num) { fNumMinNeighbors=num; }
     98    void SetNumMinNeighbors(Byte_t num)   { fNumMinNeighbors=num; }
     99    void SetMaxArrivalTimeDiff(Float_t d) { fMaxArrivalTimeDiff=d; }
    98100    void AddNamePedPhotCam(const char *name="MPedPhotCam");
    99101    void SetNamePedPhotCam(const char *name)
Note: See TracChangeset for help on using the changeset viewer.