Changeset 3420
- Timestamp:
- 03/07/04 15:48:12 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3419 r3420 23 23 * mbadpixels/MBadPixelsPix.h 24 24 - include the CalibrationType_t infos 25 - exchange "Unsuitable" by "UnsuitableRun" 25 - exchange "SetUnsuitable" by "SetUnsuitableRun" 26 27 * mbadpixels/MBadPixelsCam.cc 28 * mbadpixels/MBadPixelsCalc.cc 29 - exchange "SetUnsuitable" by "SetUnsuitableRun" 26 30 27 31 -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCalc.cc
r3068 r3420 51 51 // 52 52 // Output Containers: 53 // MBadPix les53 // MBadPixels 54 54 // 55 55 ///////////////////////////////////////////////////////////////////////////// … … 150 150 151 151 if (pixPedRms*nratio > fPedestalLevel * meanPedRMS || pixPedRms == 0) 152 (*fBadPixels)[i].SetUnsuitable (MBadPixelsPix::kUnsuitableEvt);152 (*fBadPixels)[i].SetUnsuitableEvt(MBadPixelsPix::kUnsuitableEvt); 153 153 } 154 154 } -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
r3068 r3420 210 210 InitSize(idx); 211 211 212 (*this)[idx].SetUnsuitable ();212 (*this)[idx].SetUnsuitableRun(); 213 213 } 214 214 } … … 225 225 226 226 for (int i=0; i<GetSize(); i++) 227 if ((*this)[i].IsUnsuitable ())227 if ((*this)[i].IsUnsuitableRun()) 228 228 fout << " " << i; 229 229 -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h
r3068 r3420 19 19 20 20 enum UnsuitableType_t { 21 kUnsuitableRun = BIT(1),22 kUnsuitableEvt = BIT(2)21 kUnsuitableRun = BIT(1), 22 kUnsuitableEvt = BIT(2) 23 23 }; 24 24 25 enum CalibrationType_t { 26 kHiGainSaturation = BIT(1), 27 kLoGainSaturation = BIT(2), 28 kHiGainFitted = BIT(3), 29 kLoGainFitted = BIT(4), 30 kCalcChargeNotPedestal = BIT(5), 31 kCalcChargeErrValid = BIT(6), 32 kCalcChargeRelErrValid = BIT(7), 33 kCalcChargeSigmaValid = BIT(8), 34 kConversionHiLoValid = BIT(9), 35 kHiGainOscillating = BIT(10), 36 kLoGainOscillating = BIT(11), 37 kMeanTimeInFirstBin = BIT(12), 38 kMeanTimeInLastBin = BIT(13), 39 kBlindPixelMethodValid = BIT(14), 40 kFFactorMethodValid = BIT(15), 41 kPINDiodeMethodValid = BIT(16), 42 kCombinedMethodValid = BIT(17) 43 }; 44 45 25 46 static const Char_t fgRunMask; // All types which are not event wise determined 26 47 … … 33 54 34 55 // Setter 35 void SetUnsuitable(UnsuitableType_t typ=kUnsuitableRun) { fInfo[0] |= typ; } 36 void SetSuitable(UnsuitableType_t typ=kUnsuitableRun) { fInfo[0] &= ~typ; } 56 void SetUnsuitableRun(UnsuitableType_t typ=kUnsuitableRun) { fInfo[0] |= typ; } 57 void SetSuitableRun(UnsuitableType_t typ=kUnsuitableRun) { fInfo[0] &= ~typ; } 58 59 void SetUnsuitableEvt(UnsuitableType_t typ=kUnsuitableEvt) { fInfo[0] |= typ; } 60 void SetSuitableEvt(UnsuitableType_t typ=kUnsuitableEvt) { fInfo[0] &= ~typ; } 61 62 // Calibration 63 void SetHiGainSaturation ( CalibrationType_t typ=kHiGainSaturation ) { fInfo[1] |= typ; } 64 void SetNoHiGainSaturation( CalibrationType_t typ=kHiGainSaturation ) { fInfo[1] &= ~typ; } 65 66 void SetLoGainSaturation ( CalibrationType_t typ=kLoGainSaturation ) { fInfo[1] |= typ; } 67 void SetNoLoGainSaturation( CalibrationType_t typ=kLoGainSaturation ) { fInfo[1] &= ~typ; } 68 69 void SetCombinedMethodValid ( CalibrationType_t typ=kCombinedMethodValid ) { fInfo[1] |= typ; } 70 void SetNoCombinedMethodValid( CalibrationType_t typ=kCombinedMethodValid ) { fInfo[1] &= ~typ; } 71 72 void SetPINDiodeMethodValid ( CalibrationType_t typ=kPINDiodeMethodValid ) { fInfo[1] |= typ; } 73 void SetNoPINDiodeMethodValid( CalibrationType_t typ=kPINDiodeMethodValid ) { fInfo[1] &= ~typ; } 74 75 void SetFFactorMethodValid ( CalibrationType_t typ=kFFactorMethodValid ) { fInfo[1] |= typ; } 76 void SetNoFFactorMethodValid( CalibrationType_t typ=kFFactorMethodValid ) { fInfo[1] &= ~typ; } 77 78 void SetBlindPixelMethodValid ( CalibrationType_t typ=kBlindPixelMethodValid ) { fInfo[1] |= typ; } 79 void SetNoBlindPixelMethodValid( CalibrationType_t typ=kBlindPixelMethodValid ) { fInfo[1] &= ~typ; } 80 81 void SetMeanTimeInLastBin ( CalibrationType_t typ=kMeanTimeInLastBin ) { fInfo[1] |= typ; } 82 void SetNoMeanTimeInLastBin( CalibrationType_t typ=kMeanTimeInLastBin ) { fInfo[1] &= ~typ; } 83 84 void SetMeanTimeInFirstBin ( CalibrationType_t typ=kMeanTimeInFirstBin ) { fInfo[1] |= typ; } 85 void SetNoMeanTimeInFirstBin( CalibrationType_t typ=kMeanTimeInFirstBin ) { fInfo[1] &= ~typ; } 86 87 void SetLoGainOscillating ( CalibrationType_t typ=kLoGainOscillating ) { fInfo[1] |= typ; } 88 void SetNoLoGainOscillating( CalibrationType_t typ=kLoGainOscillating ) { fInfo[1] &= ~typ; } 89 90 void SetHiGainOscillating ( CalibrationType_t typ=kHiGainOscillating ) { fInfo[1] |= typ; } 91 void SetNoHiGainOscillating( CalibrationType_t typ=kHiGainOscillating ) { fInfo[1] &= ~typ; } 92 93 void SetConversionHiLoValid ( CalibrationType_t typ=kConversionHiLoValid ) { fInfo[1] |= typ; } 94 void SetNoConversionHiLoValid( CalibrationType_t typ=kConversionHiLoValid ) { fInfo[1] &= ~typ; } 95 96 void SetCalcChargeSigmaValid ( CalibrationType_t typ=kCalcChargeSigmaValid ) { fInfo[1] |= typ; } 97 void SetNoCalcChargeSigmaValid( CalibrationType_t typ=kCalcChargeSigmaValid ) { fInfo[1] &= ~typ; } 98 99 void SetCalcChargeRelErrValid ( CalibrationType_t typ=kCalcChargeRelErrValid ) { fInfo[1] |= typ; } 100 void SetNoCalcChargeRelErrValid( CalibrationType_t typ=kCalcChargeRelErrValid ) { fInfo[1] &= ~typ; } 101 102 void SetCalcChargeErrValid ( CalibrationType_t typ=kCalcChargeErrValid ) { fInfo[1] |= typ; } 103 void SetNoCalcChargeErrValid( CalibrationType_t typ=kCalcChargeErrValid ) { fInfo[1] &= ~typ; } 104 105 void SetCalcChargeNotPedestal ( CalibrationType_t typ=kCalcChargeNotPedestal ) { fInfo[1] |= typ; } 106 void SetNoCalcChargeNotPedestal( CalibrationType_t typ=kCalcChargeNotPedestal ) { fInfo[1] &= ~typ; } 107 108 void SetLoGainFitted ( CalibrationType_t typ=kLoGainFitted ) { fInfo[1] |= typ; } 109 void SetNoLoGainFitted( CalibrationType_t typ=kLoGainFitted ) { fInfo[1] &= ~typ; } 110 111 void SetHiGainFitted ( CalibrationType_t typ=kHiGainFitted ) { fInfo[1] |= typ; } 112 void SetNoHiGainFitted( CalibrationType_t typ=kHiGainFitted ) { fInfo[1] &= ~typ; } 37 113 38 114 // Getter 39 Bool_t IsUnsuitable(UnsuitableType_t typ=kUnsuitableRun) const { return fInfo[0]&typ; } 40 Bool_t IsSuitable(UnsuitableType_t typ=kUnsuitableRun) const { return !(fInfo[0]&typ); } 115 Bool_t IsUnsuitableRun(UnsuitableType_t typ=kUnsuitableRun) const { return fInfo[0]&typ; } 116 Bool_t IsSuitableRun(UnsuitableType_t typ=kUnsuitableRun) const { return !(fInfo[0]&typ); } 117 118 Bool_t IsUnsuitableEvt(UnsuitableType_t typ=kUnsuitableEvt) const { return fInfo[0]&typ; } 119 Bool_t IsSuitableEvt(UnsuitableType_t typ=kUnsuitableEvt) const { return !(fInfo[0]&typ); } 41 120 42 121 Bool_t IsOK() const { return fInfo[0]==0; } 43 122 Bool_t IsBad() const { return fInfo[0]!=0; } 123 Bool_t IsLoGainBad() const { return (fInfo[1]&kLoGainSaturation 124 || !(fInfo[1]&kConversionHiLoValid) 125 || fInfo[1]&kLoGainOscillating ); } 44 126 45 127 void Merge(const MBadPixelsPix &pix); -
trunk/MagicSoft/Mars/mbadpixels/MMcBadPixelsSet.cc
r3068 r3420 131 131 // Case for Crab Nebula FOV 132 132 // 133 (*fBadPixels)[400].SetUnsuitable ();134 (*fBadPixels)[401].SetUnsuitable ();135 (*fBadPixels)[402].SetUnsuitable ();136 (*fBadPixels)[437].SetUnsuitable ();137 (*fBadPixels)[438].SetUnsuitable ();138 (*fBadPixels)[439].SetUnsuitable ();133 (*fBadPixels)[400].SetUnsuitableRun(); 134 (*fBadPixels)[401].SetUnsuitableRun(); 135 (*fBadPixels)[402].SetUnsuitableRun(); 136 (*fBadPixels)[437].SetUnsuitableRun(); 137 (*fBadPixels)[438].SetUnsuitableRun(); 138 (*fBadPixels)[439].SetUnsuitableRun(); 139 139 140 140 *fLog << inf;
Note:
See TracChangeset
for help on using the changeset viewer.