Changeset 3115
- Timestamp:
- 02/12/04 12:42:48 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3112 r3115 4 4 5 5 -*-*- END OF LINE -*-*- 6 2004/02/12: Markus Gaug 7 8 * mbase/MArray.[h,cc]: 9 - changed name of StripZeros 10 11 * mcalib/MHGausEvent.cc: 12 - corrected call to StripZeros 13 14 6 15 2004/02/12: Thomas Bretz 7 16 -
trunk/MagicSoft/Mars/mbase/MArray.cc
r3112 r3115 47 47 // Cuts the last entries of an array containing only zeros. 48 48 // 49 void MArray:: CutEdges(TArrayD &arr)49 void MArray::StripZeros(TArrayD &arr) 50 50 { 51 51 const Int_t n = arr.GetSize(); … … 63 63 // Cuts the last entries of an array containing only zeros. 64 64 // 65 void MArray:: CutEdges(TArrayF &arr)65 void MArray::StripZeros(TArrayF &arr) 66 66 { 67 67 const Int_t n = arr.GetSize(); -
trunk/MagicSoft/Mars/mbase/MArray.h
r3112 r3115 32 32 virtual void Set(UInt_t n) = 0; 33 33 34 static void CutEdges(TArrayF &arr);35 static void CutEdges(TArrayD &arr);34 static void StripZeros(TArrayF &arr); 35 static void StripZeros(TArrayD &arr); 36 36 37 37 ClassDef(MArray, 1) //Abstract array base class for TObject derived Arrays -
trunk/MagicSoft/Mars/mcalib/MCalibrate.h
r2949 r3115 35 35 public: 36 36 37 enum CalibrationMode_t{kNone=0,kBlindPixel,kFfactor,kPinDiode,kCombined };37 enum CalibrationMode_t{kNone=0,kBlindPixel,kFfactor,kPinDiode,kCombined, kDummy}; 38 38 static const CalibrationMode_t kDefault = kBlindPixel; 39 39 -
trunk/MagicSoft/Mars/mcalib/MCalibrationPix.cc
r3065 r3115 113 113 CLRBIT(fFlags, kFFactorMethodValid); 114 114 CLRBIT(fFlags, kPINDiodeMethodValid); 115 CLRBIT(fFlags, kCombinedMethodValid); 115 116 116 117 fCharge = -1.; … … 143 144 fMeanConversionBlindPixelMethod = -1.; 144 145 fMeanConversionPINDiodeMethod = -1.; 146 fMeanConversionCombinedMethod = -1.; 145 147 146 148 fErrorConversionFFactorMethod = -1.; 147 149 fErrorConversionBlindPixelMethod = -1.; 148 150 fErrorConversionPINDiodeMethod = -1.; 151 fErrorConversionCombinedMethod = -1.; 149 152 150 153 fSigmaConversionFFactorMethod = -1.; 151 154 fSigmaConversionBlindPixelMethod = -1.; 152 155 fSigmaConversionPINDiodeMethod = -1.; 156 fSigmaConversionCombinedMethod = -1.; 153 157 154 158 fFactorCalculated = kFALSE; … … 191 195 fErrorConversionFFactorMethod = err; 192 196 fSigmaConversionFFactorMethod = sig; 197 } 198 199 // -------------------------------------------------------------------------- 200 // 201 // Set the conversion factors from outside (only for MC) 202 // 203 void MCalibrationPix::SetConversionCombinedMethod(Float_t c, Float_t err, Float_t sig) 204 { 205 fMeanConversionCombinedMethod = c; 206 fErrorConversionCombinedMethod = err; 207 fSigmaConversionCombinedMethod = sig; 193 208 } 194 209 … … 395 410 } 396 411 397 412 Float_t MCalibrationPix::GetTotalFFactorCombinedMethod() 413 { 414 return 1.; 415 } 416 417 Float_t MCalibrationPix::GetTotalFFactorErrorCombinedMethod() 418 { 419 420 return 1.; 421 } 398 422 399 423 Float_t MCalibrationPix::GetMeanConversionFFactorMethod() … … 485 509 { 486 510 return TESTBIT(fFlags, kPINDiodeMethodValid); 511 } 512 513 Bool_t MCalibrationPix::IsCombinedMethodValid() 514 { 515 return TESTBIT(fFlags, kCombinedMethodValid); 487 516 } 488 517 -
trunk/MagicSoft/Mars/mcalib/MCalibrationPix.h
r3065 r3115 56 56 Float_t fMeanConversionBlindPixelMethod; // The conversion factor to Ph's (Blind Pixel method) 57 57 Float_t fMeanConversionPINDiodeMethod; // The conversion factor to Ph's (PIN Diode method) 58 Float_t fMeanConversionCombinedMethod; // The conversion factor to Ph's (all methods combined) 58 59 59 60 Float_t fErrorConversionFFactorMethod; // The error of the conversion factor to Phe's (F-factor method) 60 61 Float_t fErrorConversionBlindPixelMethod; // The error of the conversion factor to Ph's (Blind Pixel method) 61 62 Float_t fErrorConversionPINDiodeMethod; // The error of the conversion factor to Ph's (PIN Diode method) 63 Float_t fErrorConversionCombinedMethod; // The error of the conversion factor to Ph's (all methods combined) 62 64 63 65 Float_t fSigmaConversionFFactorMethod; // The sigma of conversion factor to Phe's (F-factor method) 64 66 Float_t fSigmaConversionBlindPixelMethod; // The conversion factor to Ph's (Blind Pixel method) 65 67 Float_t fSigmaConversionPINDiodeMethod; // The conversion factor to Ph's (PIN Diode method) 68 Float_t fSigmaConversionCombinedMethod; // The conversion factor to Ph's (all methods combined) 66 69 67 70 Float_t fTotalFFactor; // The F-Factor of the total readout system (Sigma(out)/mean(out)*Mean(in)/sigma(in) … … 80 83 kChargeValid, kTimeFitValid, 81 84 kFitted, kOscillating, 82 kBlindPixelMethodValid, kFFactorMethodValid, kPINDiodeMethodValid };85 kBlindPixelMethodValid, kFFactorMethodValid, kPINDiodeMethodValid, kCombinedMethodValid }; 83 86 84 87 MHCalibrationPixel *fHist; // Pointer to the histograms performing the fits, etc. … … 128 131 Float_t GetSigmaConversionPINDiodeMethod() const { return fSigmaConversionPINDiodeMethod ; } 129 132 133 Float_t GetMeanConversionCombinedMethod() const { return fMeanConversionCombinedMethod ; } 134 Float_t GetErrorConversionCombinedMethod() const { return fErrorConversionCombinedMethod ; } 135 Float_t GetSigmaConversionCombinedMethod() const { return fSigmaConversionCombinedMethod ; } 136 130 137 Float_t GetPheFFactorMethod(); 131 138 Float_t GetPheFFactorMethodError(); … … 144 151 Float_t GetTotalFFactorPINDiodeMethod(); 145 152 Float_t GetTotalFFactorErrorPINDiodeMethod(); 153 154 Float_t GetTotalFFactorCombinedMethod(); 155 Float_t GetTotalFFactorErrorCombinedMethod(); 146 156 147 157 Bool_t IsExcluded() const; … … 154 164 Bool_t IsPINDiodeMethodValid() const; 155 165 Bool_t IsFFactorMethodValid(); 166 Bool_t IsCombinedMethodValid(); 156 167 157 168 // Setter … … 164 175 void SetConversionBlindPixelMethod(Float_t c, Float_t err, Float_t sig); 165 176 void SetConversionPINDiodeMethod(Float_t c, Float_t err, Float_t sig); 177 void SetConversionCombinedMethod(Float_t c, Float_t err, Float_t sig); 166 178 167 179 // Bit Setters -
trunk/MagicSoft/Mars/mcalib/MHGausEvent.cc
r3112 r3115 177 177 178 178 // This cuts only the non-used zero's, but MFFT will later cut the rest 179 MArray:: CutEdges(*fEvents);179 MArray::StripZeros(*fEvents); 180 180 181 181 MFFT fourier;
Note:
See TracChangeset
for help on using the changeset viewer.