Changeset 7731


Ignore:
Timestamp:
05/23/06 16:31:41 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7730 r7731  
    2323   * mranforest/MRanTree.cc:
    2424     - should be if(!Finite) instead of if(Finite)
     25
     26   * mhbase/MH3.cc:
     27     - fixed a problem which arouse in root 4.04/02g namely that
     28       is the draw-option is " " nothing is displayed. Therefore
     29       all " " are removed before the histogram is drawn
     30
     31   * mhist/MHCamera.cc:
     32     - when the azimuthal profile was produced the binning was optimized
     33       with the OptimizeLimits. This doesn't make sense because it
     34       changed the alignment of the bins with the 60deg boundaries
     35
     36   * mreport/MReportStarguider.cc:
     37     - fixed a typo in a comment and removed an obsolete one
     38
     39   * msignal/MExtractTimeAndCharge.cc:
     40     - instead of setting the arrival time to a value at the border of
     41       the meaningful range a random number is assigned in the case
     42       of an arrival time extracted outside the fadc range. This
     43       avoids possible unfortuante coincidences in arrival times.
    2544
    2645
  • trunk/MagicSoft/Mars/mhbase/MH3.cc

    r7696 r7731  
    579579    str.ReplaceAll("profx", "");
    580580    str.ReplaceAll("profy", "");
     581    str.ReplaceAll(" ", "");
    581582
    582583    // FIXME: We may have to remove all our own options from str!
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r7342 r7731  
    798798    }
    799799
    800     Double_t min = 0;
    801     Double_t max = 360;
    802 
    803     Int_t newbins=0;
    804     THLimitsFinder::OptimizeLimits(nbins, newbins, min, max, kFALSE);
    805 
    806     MBinning bins(nbins, min, max);
     800    //Double_t min = 0;
     801    //Double_t max = 360;
     802
     803    //Int_t newbins=0;
     804    //THLimitsFinder::OptimizeLimits(nbins, newbins, min, max, kFALSE);
     805
     806    MBinning bins(nbins, 0, 360);
    807807    bins.Apply(*h1);
    808808
  • trunk/MagicSoft/Mars/mreport/MReportStarguider.cc

    r7726 r7731  
    161161        (ver>=200603080))
    162162    {         
    163         // For the momment this are only placeholders....
     163        // For the moment this are only placeholders....
    164164        Float_t dx, dy;
    165165        n=sscanf(str.Data(), "%f %f %n", &dx, &dy, &len);
     
    176176    if (ver>=200605080)
    177177    {
    178         // For the momment this are only placeholders....
    179178        fNumCorrelatedStars = fNumIdentifiedStars;
    180179        n=sscanf(str.Data(), "%df %n", &fNumIdentifiedStars, &len);
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc

    r7095 r7731  
    6363#include "MExtractTimeAndCharge.h"
    6464
     65#include <TRandom.h>
     66
    6567#include "MLog.h"
    6668#include "MLogManip.h"
     
    8789const Float_t MExtractTimeAndCharge::fgLoGainStartShift = -3.5;
    8890const Byte_t  MExtractTimeAndCharge::fgLoGainSwitch = 120;
     91
    8992// --------------------------------------------------------------------------
    9093//
     
    197200      // Make sure that in cases the time couldn't be correctly determined
    198201      // more meaningfull default values are assigned
    199       if (timehi<0)
    200           timehi = -1;
    201       if (timehi>pixel.GetNumHiGainSamples())
    202           timehi = pixel.GetNumHiGainSamples();
     202      if (timehi<=0 || timehi>pixel.GetNumHiGainSamples())
     203          timehi = gRandom->Uniform(pixel.GetNumHiGainSamples());
    203204     
    204205      Float_t sumlo =0., deltasumlo =-1.; // invalidate logain of MExtractedSignalPix
     
    235236          // Make sure that in cases the time couldn't be correctly determined
    236237          // more meaningfull default values are assigned
    237           if (timelo<0)
    238               timelo = -1;
    239           if (timelo>pixel.GetNumLoGainSamples())
    240               timelo = pixel.GetNumLoGainSamples();
     238          if (timelo<=0 || timelo>pixel.GetNumLoGainSamples())
     239              timelo = gRandom->Uniform(pixel.GetNumLoGainSamples());
    241240      }
    242241
Note: See TracChangeset for help on using the changeset viewer.