Changeset 2934 for trunk/MagicSoft
- Timestamp:
- 01/27/04 20:55:13 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2930 r2934 13 13 - include CheckBounds, also in operator[] 14 14 15 * m analysis/MCalibrationCam.[h,cc]15 * mcalib/MCalibrationCam.[h,cc] 16 16 - apparently, there was a reference to InitSize(UInt_t i) instead 17 17 of InitSize(Int_t i), where compiler complained, now changed 18 19 * mcalib/MHCalibration* 20 * mcalib/MCalibration* 21 - fixed all Clear()'s, Reset()'s, direct intializers 18 22 19 23 -
trunk/MagicSoft/Mars/mcalib/MCalibrationPix.cc
r2922 r2934 56 56 MCalibrationPix::MCalibrationPix(const char *name, const char *title) 57 57 : fPixId(-1), 58 fCharge(-1.),59 fErrCharge(-1.),60 fSigmaCharge(-1.),61 fErrSigmaCharge(-1.),62 fRSigmaSquare(-1.),63 fChargeProb(-1.),64 fPed(-1.),65 fPedRms(-1.),66 fErrPedRms(0.),67 58 fElectronicPedRms(1.5), 68 59 fErrElectronicPedRms(0.3), 69 fTime(-1.),70 fSigmaTime(-1.),71 fTimeChiSquare(-1.),72 60 fFactor(1.32), 73 61 fFactorError(0.04), 74 fPheFFactorMethod(-1.),75 fPheFFactorMethodError(-1.),76 fConversionFFactorMethod(-1.),77 fConversionBlindPixelMethod(-1.),78 fConversionPINDiodeMethod(-1.),79 fConversionErrorFFactorMethod(-1.),80 fConversionErrorBlindPixelMethod(-1.),81 fConversionErrorPINDiodeMethod(-1.),82 fConversionSigmaFFactorMethod(-1.),83 fConversionSigmaBlindPixelMethod(-1.),84 fConversionSigmaPINDiodeMethod(-1.),85 fFlags(0),86 62 fChargeLimit(3.), 87 63 fChargeErrLimit(0.), 88 fChargeRelErrLimit(1.) 64 fChargeRelErrLimit(1.), 65 fFlags(0) 89 66 { 90 67 … … 103 80 if (!fHist) 104 81 *fLog << warn << dbginf << " Could not create MHCalibrationPixel " << endl; 82 83 Clear(); 84 } 85 86 MCalibrationPix::~MCalibrationPix() 87 { 88 delete fHist; 89 } 90 91 92 // ------------------------------------------------------------------------ 93 // 94 // Invalidate values 95 // 96 void MCalibrationPix::Clear(Option_t *o) 97 { 98 99 fHist->Reset(); 105 100 106 101 CLRBIT(fFlags, kHiGainSaturation); … … 112 107 CLRBIT(fFlags, kPINDiodeMethodValid); 113 108 114 } 115 116 MCalibrationPix::~MCalibrationPix() 117 { 118 delete fHist; 119 } 120 121 109 fCharge = -1.; 110 fErrCharge = -1.; 111 fSigmaCharge = -1.; 112 fErrSigmaCharge = -1.; 113 fRSigmaSquare = -1.; 114 fChargeProb = -1.; 115 fPed = -1.; 116 fPedRms = -1.; 117 fErrPedRms = 0.; 118 fTime = -1.; 119 fSigmaTime = -1.; 120 fTimeChiSquare = -1.; 121 fPheFFactorMethod = -1.; 122 fPheFFactorMethodError = -1.; 123 fConversionFFactorMethod = -1.; 124 fConversionBlindPixelMethod = -1.; 125 fConversionPINDiodeMethod = -1.; 126 fConversionErrorFFactorMethod = -1.; 127 fConversionErrorBlindPixelMethod = -1.; 128 fConversionErrorPINDiodeMethod = -1.; 129 fConversionSigmaFFactorMethod = -1.; 130 fConversionSigmaBlindPixelMethod = -1.; 131 fConversionSigmaPINDiodeMethod = -1.; 132 133 } 122 134 123 135 … … 130 142 } 131 143 132 133 // ------------------------------------------------------------------------134 //135 // Invalidate values136 //137 void MCalibrationPix::Clear(Option_t *o)138 {139 140 fHist->Reset();141 142 CLRBIT(fFlags, kHiGainSaturation);143 CLRBIT(fFlags, kExcluded);144 CLRBIT(fFlags, kFitValid);145 CLRBIT(fFlags, kFitted);146 CLRBIT(fFlags, kBlindPixelMethodValid);147 CLRBIT(fFlags, kFFactorMethodValid);148 CLRBIT(fFlags, kPINDiodeMethodValid);149 150 }151 144 152 145 // -------------------------------------------------------------------------- … … 554 547 if (fCharge < fChargeRelErrLimit*fErrCharge) 555 548 { 556 *fLog << warn << "WARNING: Error of Fitted Charge is greater than "557 << fChargeRelErrLimit << "* Fitted Charges itselfin Pixel " << fPixId << endl;549 *fLog << warn << "WARNING: Fitted Charge is smaller than " 550 << fChargeRelErrLimit << "* its error in Pixel " << fPixId << endl; 558 551 return kFALSE; 559 552 } -
trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.cc
r2932 r2934 63 63 fTimeLast(15.75), 64 64 fHivsLoGain(NULL), 65 fHPSD(NULL), 65 66 fChargeGausFit(NULL), 66 67 fTimeGausFit(NULL), … … 166 167 fChargeProb = -1.; 167 168 fChargeNdf = -1; 169 168 170 fTimeChisquare = -1.; 169 171 fTimeProb = -1.; … … 178 180 179 181 fOffset = 0.; 180 fSlope = 0 ;182 fSlope = 0.; 181 183 182 184 if (fChargeGausFit) -
trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.h
r2933 r2934 182 182 virtual void CutAllEdges(); 183 183 184 ClassDef(MHCalibrationPixel, 0) // Histograms for each calibrated pixel184 ClassDef(MHCalibrationPixel, 1) // Histograms for each calibrated pixel 185 185 }; 186 186
Note:
See TracChangeset
for help on using the changeset viewer.