Ignore:
Timestamp:
05/14/04 17:41:08 (21 years ago)
Author:
jlopez
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mtemp/mifae/library
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/mifae/library/MCalibrateDC.cc

    r4073 r4075  
    5151using namespace std;
    5252
    53 MCalibrateDC::MCalibrateDC(TString filename, const char *name, const char *title)
     53MCalibrateDC::MCalibrateDC(TString filename, const char *name, const char *title) : fMinDCAllowed(0.5) //[ua]
    5454{
    5555  fName  = name  ? name  : "MCalibrateDC";
     
    116116        DCCalibrationCalc();
    117117 
     118        UInt_t numPixelsSetUnsuedForDC = 0;
     119       
    118120        for (UInt_t pix=1; pix<fNumPixels; pix++)
    119           fDCCalibrationFactor[pix] = fDCCalibration/fDisplay[pix];
    120 
     121          {
     122            if (fDisplay.GetBinContent(pix+1) > fMinDCAllowed)
     123              fDCCalibrationFactor[pix] = fDCCalibration/fDisplay.GetBinContent(pix+1);
     124            else
     125              {
     126                numPixelsSetUnsuedForDC++;
     127                fDCCalibrationFactor[pix] = 0.; //FIXME: Maybe to introduce a setunused in MCameraDC ?
     128              }
     129          }
     130
     131        *fLog << inf << GetName() << " set unused " << numPixelsSetUnsuedForDC << " because too low dc." << endl;
     132       
    121133      }
    122134
     
    193205    UInt_t numexecutions = read.GetNumExecutions();
    194206    UInt_t numPixels = fDisplay.GetNumPixels();
    195     for (UInt_t pix = 1; pix < numPixels; pix++)
     207    for (UInt_t pix = 1; pix <= numPixels; pix++)
    196208      fDisplay[pix] /= numexecutions;
    197209   
  • trunk/MagicSoft/Mars/mtemp/mifae/library/MCalibrateDC.h

    r4073 r4075  
    4343    MHCamera fDisplay;
    4444
     45    const Double_t fMinDCAllowed;
     46   
    4547    UInt_t fNumPixels ;
    46     TArrayD fDCCalibrationFactor;
     48    TArrayD  fDCCalibrationFactor;
    4749    Double_t fDCMissCalibrationFactor;
    4850   
  • trunk/MagicSoft/Mars/mtemp/mifae/library/MPSFFitCalc.cc

    r3984 r4075  
    5353const Float_t sqrt2 = sqrt(2.);
    5454const Float_t sqrt3 = sqrt(3.);
    55 const Bool_t usePrintOut = kFALSE;
    56 const Int_t minuitPrintOut = -1;
     55const Bool_t usePrintOut = kTRUE;
     56const Int_t minuitPrintOut = 0;
    5757
    5858UInt_t  numPixels;
Note: See TracChangeset for help on using the changeset viewer.