Changeset 9615 for trunk/MagicSoft


Ignore:
Timestamp:
07/09/10 15:19:10 (14 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9612 r9615  
    1919                                                 -*-*- END OF LINE -*-*-
    2020
     21 2010/07/09 Thomas Bretz
     22
     23   * mpointing/MSrcPosCam.[h,cc]:
     24     - now the particle position is stored in any case in the headers
     25       so in case we have a view cone we must keep the position fixed
     26     - added the fix for the MC monte carlos (for them X needs to
     27       change its sign due to a bug in the reflector program)
     28
     29   * mars.rc, star.rc:
     30     - changed time contraint in cleaning from aboslute values
     31       to relative values (units now ns/deg)
     32
     33   * mimage/MImgCleanStd.cc:
     34     - changed time contraint in cleaning from aboslute values
     35       to relative values (units now ns/deg)
     36
     37
     38
    2139 2010/07/07 Daniela Dorner
    2240
  • trunk/MagicSoft/Mars/NEWS

    r9595 r9615  
    3838     has been implemented to set an artificial run-number:
    3939        ---run-number=12345
     40
     41 ;star:
     42
     43   * The time constraint in the image cleaning is now scaled with the
     44     pixel distance. Consequently, the value given is not absolute in
     45     ns anymore, but in ns/deg. This means that the values for MAGIC
     46     have to be scaled by a factor of 10.
    4047
    4148
  • trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc

    r9369 r9615  
    664664    MArrayI indices;
    665665
     666    // Add conversion factor for dx here
     667    const Double_t dtmax = lvl*fCam->GetConvMm2Deg();
     668
    666669    const UInt_t npixevt = fEvt->GetNumPixels();
    667670    for (UInt_t idx=0; idx<npixevt; idx++)
     
    689692                continue;
    690693
     694            const Double_t dt = TMath::Abs(npix.GetArrivalTime()-tm0);
     695            const Double_t dx = gpix.GetDist((*fCam)[idx2]);
     696
    691697            // If this pixel is to far away (in arrival time) don't count
    692             if (TMath::Abs(npix.GetArrivalTime()-tm0)>lvl)
     698            if (dt>dtmax*dx)
    693699                continue;
    694700
Note: See TracChangeset for help on using the changeset viewer.