Ignore:
Timestamp:
05/13/04 15:51:30 (21 years ago)
Author:
jlopez
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4061 r4063  
    5151  fTitle = title ? title : "Taks to intercalibrate the DC of all pmts from a continuos light run";
    5252
     53  fFileName = filename;
     54 
    5355  fStartingMissCalibration.Set(2004,3,8);
    5456  fEndingMissCalibration.Set(2004,4,15);
    55  
    56   fDCMissCalibrationFactor = 30./40.96;
    57   fFileName = filename;
    5857 
    5958  Int_t   nbins = 120;
     
    6463  fDCCalibration = 1.;
    6564  fDCCalibrationRMS = 0.;
     65
     66  fDCMissCalibrationFactor = 30./40.95;
    6667}
    6768MCalibrateDC::~MCalibrateDC()
     
    124125          MGeomPix& pixel = (*fGeomCam)[pix];
    125126          if (pixel.GetSector() >=3 && pixel.GetSector() <=5)
    126             fDCCalibrationFactor[pix]*=fDCMissCalibrationFactor;
     127            (*fCurr)[pix] *= fDCCalibrationFactor[pix]*fDCMissCalibrationFactor;
     128          else
     129            (*fCurr)[pix] *= fDCCalibrationFactor[pix];
     130
    127131        }
    128132    }
    129 
    130   for (UInt_t pix=1; pix<fNumPixels; pix++)
    131     (*fCurr)[pix]= (*fCurr)[pix]*fDCCalibrationFactor[pix];
     133  else
     134    for (UInt_t pix=1; pix<fNumPixels; pix++)
     135      (*fCurr)[pix] *= fDCCalibrationFactor[pix];
    132136         
    133137  return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.