Changeset 2956
- Timestamp:
- 01/29/04 15:56:15 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2955 r2956 4 4 5 5 -*-*- END OF LINE -*-*- 6 2004/01/29: Markus Gaug 7 8 * mcalib/MCalibrationCalc.[h,cc], mcalib/MCalibrationCam.[h,cc], 9 mcalib/MCalibrationConfig.h 10 - put gkCalibrationBlindPixelId and gkCalibrationPINDiodeId 11 directly into the corresponding classes. 12 13 6 14 2004/01/29: Nicola Galante 7 15 8 16 * mhistmc/MHMcTriggerLvl2.[h,cc]: 9 - In method MHMcTriggerLvl2::GetHistByName(const TString name) added 10 string checking to return also fHistCellPseudoSize, fHistCellPseudoSizeNorm 17 - In method MHMcTriggerLvl2::GetHistByName(const TString name) 18 added string checking to return also 19 fHistCellPseudoSize, fHistCellPseudoSizeNorm 11 20 and fHistCellPseudoSizeEnergy. 12 21 - Added inline functions GetHistCellPseudoSize() and -
trunk/MagicSoft/Mars/mcalib/MCalibrationCalc.cc
r2952 r2956 121 121 : fPedestals(NULL), fCalibrations(NULL), fSignals(NULL), 122 122 fRawEvt(NULL), fRunHeader(NULL), fArrivalTime(NULL), fEvtTime(NULL) 123 // fBlindPixelId(559), fPINDiodeId(9999) 123 124 { 124 125 … … 460 461 { 461 462 462 case gkCalibrationBlindPixelId:463 case kBlindPixelId: 463 464 464 465 if (!blindpixel.FillCharge(sumhi)) … … 478 479 break; 479 480 480 case gkCalibrationPINDiodeId:481 case kPINDiodeId: 481 482 482 483 if (!pindiode.FillCharge(sumhi)) -
trunk/MagicSoft/Mars/mcalib/MCalibrationCalc.h
r2943 r2956 50 50 MTime *fEvtTime; // Time of the event 51 51 52 enum { kBlindPixelId = 559, // ID of the blind pixel 53 kPINDiodeId = 9999}; // ID of the PIN Diode 54 52 55 Int_t fEvents; // Number of events 53 56 Int_t fCosmics; // Number of events due to supposed cosmics -
trunk/MagicSoft/Mars/mcalib/MCalibrationCam.cc
r2943 r2956 72 72 : fOffsets(NULL), 73 73 fSlopes(NULL), 74 fOffvsSlope(NULL) 74 fOffvsSlope(NULL), 75 fBlindPixelId(559), 76 fPINDiodeId(9999) 75 77 { 76 78 fName = name ? name : "MCalibrationCam"; … … 181 183 fPINDiode->Clear(); 182 184 183 fNumPhotInsidePlexiglassAvailable = kFALSE;184 185 fMeanPhotInsidePlexiglass = -1.; 185 186 fMeanPhotErrInsidePlexiglass = -1.; 186 fNumPhotOutsidePlexiglassAvailable = kFALSE;187 187 fMeanPhotOutsidePlexiglass = -1.; 188 188 fMeanPhotErrOutsidePlexiglass = -1.; 189 189 190 190 fNumExcludedPixels = 0; 191 192 CLRBIT(fFlags,kBlindPixelMethodValid); 193 CLRBIT(fFlags,kPINDiodeMethodValid); 194 CLRBIT(fFlags,kNumPhotInsidePlexiglassAvailable); 195 CLRBIT(fFlags,kNumPhotOutsidePlexiglassAvailable); 191 196 192 197 return; … … 223 228 return TESTBIT(fFlags,kPINDiodeMethodValid); 224 229 } 230 231 232 Bool_t MCalibrationCam::IsNumPhotInsidePlexiglassAvailable() const 233 { 234 return TESTBIT(fFlags,kNumPhotInsidePlexiglassAvailable); 235 } 236 237 Bool_t MCalibrationCam::IsNumPhotOutsidePlexiglassAvailable() const 238 { 239 return TESTBIT(fFlags,kNumPhotOutsidePlexiglassAvailable); 240 } 241 225 242 226 243 … … 374 391 return kFALSE; 375 392 376 if (idx == gkCalibrationBlindPixelId) 393 if (idx == fBlindPixelId) 394 return kFALSE; 395 396 if (idx == fPINDiodeId) 377 397 return kFALSE; 378 398 … … 501 521 } 502 522 503 fNumPhotInsidePlexiglassAvailable = kTRUE;523 SETBIT(fFlags,kNumPhotInsidePlexiglassAvailable); 504 524 505 525 *fLog << inf << endl; … … 557 577 } 558 578 559 fNumPhotOutsidePlexiglassAvailable = kTRUE;579 SETBIT(fFlags,kNumPhotOutsidePlexiglassAvailable); 560 580 561 581 *fLog << inf << endl; … … 583 603 return kFALSE; 584 604 585 if (! fNumPhotInsidePlexiglassAvailable)605 if (!IsNumPhotInsidePlexiglassAvailable()) 586 606 if (!CalcNumPhotInsidePlexiglass()) 587 607 return kFALSE; … … 627 647 if (ipx < 0 || !IsPixelFitted(ipx)) 628 648 return kFALSE; 649 650 if (!IsNumPhotOutsidePlexiglassAvailable()) 651 if (!CalcNumPhotOutsidePlexiglass()) 652 return kFALSE; 653 654 mean = (*this)[ipx].GetMeanConversionPINDiodeMethod(); 655 err = (*this)[ipx].GetErrorConversionPINDiodeMethod(); 656 sigma = (*this)[ipx].GetSigmaConversionPINDiodeMethod(); 629 657 630 658 return kFALSE; -
trunk/MagicSoft/Mars/mcalib/MCalibrationCam.h
r2943 r2956 24 24 MCalibrationPINDiode *fPINDiode; //-> Pointer to the PIN Diode with fit results 25 25 26 Bool_t fNumPhotInsidePlexiglassAvailable; // TRUE: Blind Pixel could have been fitted well27 Float_t fMeanPhotInsidePlexiglass; // The mean number of photons in an INNER PIXEL inside the plexiglass28 Float_t fMeanPhotErrInsidePlexiglass; // The uncertainty about the number of photons in an INNER PIXEL29 30 Bool_t fNumPhotOutsidePlexiglassAvailable; // TRUE: PIN Diode could have been fitted well31 Float_t fMeanPhotOutsidePlexiglass; // The mean number of photons in an INNER PIXEL outside the plexiglass32 Float_t fMeanPhotErrOutsidePlexiglass; // The uncertainty about the number of photons in an INNER PIXEL33 26 34 27 TH1D* fOffsets; //! … … 37 30 TH2D* fOffvsSlope; //! 38 31 32 const Int_t fBlindPixelId; 33 const Int_t fPINDiodeId; 34 35 Float_t fMeanPhotInsidePlexiglass; // The mean number of photons in an INNER PIXEL inside the plexiglass 36 Float_t fMeanPhotErrInsidePlexiglass; // The uncertainty about the number of photons in an INNER PIXEL 37 Float_t fMeanPhotOutsidePlexiglass; // The mean number of photons in an INNER PIXEL outside the plexiglass 38 Float_t fMeanPhotErrOutsidePlexiglass; // The uncertainty about the number of photons in an INNER PIXEL 39 39 40 UInt_t fNumExcludedPixels; 40 41 41 42 Byte_t fFlags; 42 43 43 enum { kBlindPixelMethodValid, kPINDiodeMethodValid }; 44 enum { kBlindPixelMethodValid, kPINDiodeMethodValid, 45 kNumPhotInsidePlexiglassAvailable, kNumPhotOutsidePlexiglassAvailable }; 44 46 45 47 public: … … 62 64 void SetColor(const CalibrationColor_t color) { fColor = color; } 63 65 void SetNumPixelsExcluded(const UInt_t n) { fNumExcludedPixels = n; } 66 64 67 void SetBlindPixelMethodValid(const Bool_t b = kTRUE); 65 68 void SetPINDiodeMethodValid(const Bool_t b = kTRUE); … … 84 87 Bool_t IsBlindPixelMethodValid() const; 85 88 Bool_t IsPINDiodeMethodValid() const; 89 90 Bool_t IsNumPhotInsidePlexiglassAvailable() const; 91 Bool_t IsNumPhotOutsidePlexiglassAvailable() const; 92 86 93 87 94 // Others -
trunk/MagicSoft/Mars/mcalib/MCalibrationConfig.h
r2734 r2956 12 12 ///////////////////////////////////////////////////////////////////////////// 13 13 14 15 // The highest value of the High Gain in the linear regime16 const Byte_t gkSaturationLimit = 250;17 18 14 // The conversion factor between High Gain and Low Gain 19 15 const Float_t gkConversionHiLo = 10.; 20 16 const Float_t gkConversionHiLoError = 2.5; 21 17 22 // The penalty constant to produce overflow in the histogram23 const ULong_t gkLoGainOverFlow = 99999999;24 25 18 // ----- BLIND PIXEL ----------------------// 26 27 // Pixel ID of the Calibration Blind Pixel28 const UShort_t gkCalibrationBlindPixelId = 559;29 19 30 20 // Average QE of Blind Pixel (three colours)
Note:
See TracChangeset
for help on using the changeset viewer.