Changeset 3770


Ignore:
Timestamp:
04/16/04 21:34:13 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3769 r3770  
    4646       "SetWindows". No change in behaviour of the function.
    4747
     48
    4849 2004/04/16: Markus Gaug
    4950
     
    6162       into the "low-gain samples" and mislead thus sliding window to
    6263       be maximized on the tail of the high-gain pulse.
     64
     65   * mcalib/MHPedestalPix.cc
     66     - fixed a bug which made normalization to values per slice not happen
    6367
    6468 2004/04/15: Markus Gaug
  • trunk/MagicSoft/Mars/manalysis/MHPedestalCam.cc

    r3668 r3770  
    312312  }
    313313
     314
     315  fLambda.Set(npixels);
     316  fLambdaErr.Set(npixels);
     317
    314318  return kTRUE;
    315319
     
    442446                  MBadPixelsPix::kLoGainOscillating);
    443447
     448
    444449  return kTRUE;
    445450 
     451
    446452}
    447453
     
    476482// 12: Fourier spectrum not OK
    477483//
     484// Poisson fit:
     485// ============
     486//
     487// 13: Poisson fit lambda
     488// 14: Poisson fit lambda error
     489//
    478490Bool_t MHPedestalCam::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const
    479491{
    480492
    481493  if (fHiGainArray->GetSize() <= idx)
     494    return kFALSE;
     495
     496  if ((*this)[idx].IsExcluded())
    482497    return kFALSE;
    483498
     
    540555        val = 1.;
    541556      break;
     557    case 13:
     558      if (!(*this)[idx].IsPoissonFitOK())
     559        return kFALSE;
     560      val = fLambda[idx];
     561      break;
     562    case 14:
     563      if (!(*this)[idx].IsPoissonFitOK())
     564        return kFALSE;
     565      val = fLambdaErr[idx];
     566      break;
    542567    default:
    543568      return kFALSE;
  • trunk/MagicSoft/Mars/manalysis/MHPedestalPix.cc

    r3642 r3770  
    4242#include "MHPedestalPix.h"
    4343
     44#include "MLog.h"
     45#include "MLogManip.h"
     46
    4447#include <TH1.h>
    4548
     
    4851using namespace std;
    4952//
    50 const Int_t   MHPedestalPix::fgChargeNbins    = 450 ;
    51 const Axis_t  MHPedestalPix::fgChargeFirst    = -0.5;
     53const Int_t   MHPedestalPix::fgChargeNbins    = 500;
     54const Axis_t  MHPedestalPix::fgChargeFirst    = -49.5;
    5255const Axis_t  MHPedestalPix::fgChargeLast     = 449.5;
    5356// --------------------------------------------------------------------------
     
    103106{
    104107
    105   if (fMean == fMeanErr == fSigma == fSigmaErr == 0.)
    106     return;
    107 
    108108  //
    109109  // One never knows...
     
    113113 
    114114  const Float_t sqslices = TMath::Sqrt(fNSlices);
    115  
     115
    116116  SetMean     ( GetMean()    / fNSlices  );
    117117  //
Note: See TracChangeset for help on using the changeset viewer.