Changeset 4075 for trunk/MagicSoft/Mars/mtemp/mifae/library
- Timestamp:
- 05/14/04 17:41:08 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mifae/library
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/library/MCalibrateDC.cc
r4073 r4075 51 51 using namespace std; 52 52 53 MCalibrateDC::MCalibrateDC(TString filename, const char *name, const char *title) 53 MCalibrateDC::MCalibrateDC(TString filename, const char *name, const char *title) : fMinDCAllowed(0.5) //[ua] 54 54 { 55 55 fName = name ? name : "MCalibrateDC"; … … 116 116 DCCalibrationCalc(); 117 117 118 UInt_t numPixelsSetUnsuedForDC = 0; 119 118 120 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 121 133 } 122 134 … … 193 205 UInt_t numexecutions = read.GetNumExecutions(); 194 206 UInt_t numPixels = fDisplay.GetNumPixels(); 195 for (UInt_t pix = 1; pix < numPixels; pix++)207 for (UInt_t pix = 1; pix <= numPixels; pix++) 196 208 fDisplay[pix] /= numexecutions; 197 209 -
trunk/MagicSoft/Mars/mtemp/mifae/library/MCalibrateDC.h
r4073 r4075 43 43 MHCamera fDisplay; 44 44 45 const Double_t fMinDCAllowed; 46 45 47 UInt_t fNumPixels ; 46 TArrayD fDCCalibrationFactor;48 TArrayD fDCCalibrationFactor; 47 49 Double_t fDCMissCalibrationFactor; 48 50 -
trunk/MagicSoft/Mars/mtemp/mifae/library/MPSFFitCalc.cc
r3984 r4075 53 53 const Float_t sqrt2 = sqrt(2.); 54 54 const Float_t sqrt3 = sqrt(3.); 55 const Bool_t usePrintOut = k FALSE;56 const Int_t minuitPrintOut = -1;55 const Bool_t usePrintOut = kTRUE; 56 const Int_t minuitPrintOut = 0; 57 57 58 58 UInt_t numPixels;
Note:
See TracChangeset
for help on using the changeset viewer.