Changeset 3461
- Timestamp:
- 03/10/04 17:15:01 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3459 r3461 40 40 - many enhancements 41 41 - many speed improvements 42 43 * mbadpixels/MBadPixelsPix.[h,cc]: 44 - fixed 42 45 43 46 -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
r3460 r3461 73 73 { 74 74 fArray->ExpandCreate(i); 75 *fLog << endl << dbg << "INIT SIZE: " << i << endl;76 75 } 77 76 … … 108 107 MBadPixelsPix &MBadPixelsCam::operator[](Int_t i) 109 108 { 110 *fLog << dbg << "A: " << GetSize() << ": " << i << " " << fArray->UncheckedAt(i) << endl;111 109 return *static_cast<MBadPixelsPix*>(fArray->UncheckedAt(i)); 112 110 } … … 118 116 const MBadPixelsPix &MBadPixelsCam::operator[](Int_t i) const 119 117 { 120 *fLog << dbg << "B: " << GetSize() << ": " << i << " " << fArray->UncheckedAt(i) << endl;121 118 return *static_cast<MBadPixelsPix*>(fArray->UncheckedAt(i)); 122 119 } -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsMerge.cc
r3460 r3461 92 92 { 93 93 MBadPixelsCam *cam = (MBadPixelsCam*)pList->FindCreateObj("MBadPixelsCam"); 94 *fLog << endl << dbg << "MERGE: " << cam << endl;95 94 if (!cam) 96 95 return kFALSE; -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.cc
r3449 r3461 37 37 using namespace std; 38 38 39 const Int_t MBadPixelsPix::fgRunMask=MBadPixelsPix::kUnsuitableRun; 39 const Int_t MBadPixelsPix::fgRunMask = 40 MBadPixelsPix::kUnsuitableRun | 41 MBadPixelsPix::kUnreliableRun; 42 40 43 // ------------------------------------------------------------------------ 41 44 // … … 43 46 // 44 47 MBadPixelsPix::MBadPixelsPix(const char* name, const char* title) 45 : fInfo( 2)48 : fInfo(5) 46 49 { 47 50 fName = name ? name : "MBadPixelsPix"; -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h
r3449 r3461 19 19 20 20 enum UnsuitableType_t { 21 kUnsuitableRun 22 kUnsuitableEvt 23 kUnreliableRun 21 kUnsuitableRun = BIT(1), 22 kUnsuitableEvt = BIT(2), 23 kUnreliableRun = BIT(3) 24 24 }; 25 26 static const Int_t fgRunMask; // All types which are not event wise determined 25 27 26 28 // All types are initialized to normal behaviour … … 45 47 }; 46 48 47 48 static const Int_t fgRunMask; // All types which are not event wise determined49 50 49 void Reset(); 51 50 void Clear(Option_t *o=""); … … 56 55 57 56 // Setter 58 void SetUnsuitableRun( UnsuitableType_t typ=kUnsuitableRun) { fInfo[0] |= typ; }59 void SetSuitableRun( UnsuitableType_t typ=kUnsuitableRun) { fInfo[0] &= ~typ; }57 void SetUnsuitableRun() { fInfo[0] |= kUnsuitableRun; } 58 void SetSuitableRun() { fInfo[0] &= ~kUnsuitableRun; } 60 59 61 void SetUnsuitableEvt( UnsuitableType_t typ=kUnsuitableEvt) { fInfo[0] |= typ; }62 void SetSuitableEvt( UnsuitableType_t typ=kUnsuitableEvt) { fInfo[0] &= ~typ; }60 void SetUnsuitableEvt() { fInfo[0] |= kUnsuitableEvt; } 61 void SetSuitableEvt() { fInfo[0] &= ~kUnsuitableEvt; } 63 62 64 void SetUnreliableRun( UnsuitableType_t typ=kUnreliableRun) { fInfo[0] |= typ; }65 void SetReliableRun( UnsuitableType_t typ=kUnreliableRun) { fInfo[0] &= ~typ; }63 void SetUnreliableRun() { fInfo[0] |= kUnreliableRun; } 64 void SetReliableRun() { fInfo[0] &= ~kUnreliableRun; } 66 65 67 66 // Calibration 68 void SetHiGainSaturation ( CalibrationType_t typ=kHiGainSaturation ) 69 { fInfo[1] |= typ; } 70 void SetLoGainSaturation ( CalibrationType_t typ=kLoGainSaturation ) 71 { fInfo[1] |= typ; } 72 void SetCombinedMethodNotValid ( CalibrationType_t typ=kCombinedMethodNotValid ) 73 { fInfo[1] |= typ; } 74 void SetPINDiodeMethodNotValid ( CalibrationType_t typ=kPINDiodeMethodNotValid ) 75 { fInfo[1] |= typ; } 76 void SetFFactorMethodNotValid ( CalibrationType_t typ=kFFactorMethodNotValid ) 77 { fInfo[1] |= typ; } 78 void SetBlindPixelMethodNotValid ( CalibrationType_t typ=kBlindPixelMethodNotValid ) 79 { fInfo[1] |= typ; } 80 void SetMeanTimeInLastBin ( CalibrationType_t typ=kMeanTimeInLastBin ) 81 { fInfo[1] |= typ; } 82 void SetMeanTimeInFirstBin ( CalibrationType_t typ=kMeanTimeInFirstBin ) 83 { fInfo[1] |= typ; } 84 void SetLoGainOscillating ( CalibrationType_t typ=kLoGainOscillating ) 85 { fInfo[1] |= typ; } 86 void SetHiGainOscillating ( CalibrationType_t typ=kHiGainOscillating ) 87 { fInfo[1] |= typ; } 88 void SetConvHiLoNotValid ( CalibrationType_t typ=kConvHiLoNotValid ) 89 { fInfo[1] |= typ; } 90 void SetChargeSigmaNotValid ( CalibrationType_t typ=kChargeSigmaNotValid ) 91 { fInfo[1] |= typ; } 92 void SetChargeRelErrNotValid ( CalibrationType_t typ=kChargeRelErrNotValid ) 93 { fInfo[1] |= typ; } 94 void SetChargeErrNotValid ( CalibrationType_t typ=kChargeErrNotValid ) 95 { fInfo[1] |= typ; } 96 void SetChargeIsPedestal ( CalibrationType_t typ=kChargeIsPedestal ) 97 { fInfo[1] |= typ; } 98 void SetLoGainNotFitted ( CalibrationType_t typ=kLoGainNotFitted ) 99 { fInfo[1] |= typ; } 100 void SetHiGainNotFitted ( CalibrationType_t typ=kHiGainNotFitted ) 101 { fInfo[1] |= typ; } 67 void SetHiGainSaturation () { fInfo[1] |= kHiGainSaturation; } 68 void SetLoGainSaturation () { fInfo[1] |= kLoGainSaturation; } 69 void SetCombinedMethodNotValid () { fInfo[1] |= kCombinedMethodNotValid; } 70 void SetPINDiodeMethodNotValid () { fInfo[1] |= kPINDiodeMethodNotValid; } 71 void SetFFactorMethodNotValid () { fInfo[1] |= kFFactorMethodNotValid; } 72 void SetBlindPixelMethodNotValid () { fInfo[1] |= kBlindPixelMethodNotValid; } 73 void SetMeanTimeInLastBin () { fInfo[1] |= kMeanTimeInLastBin; } 74 void SetMeanTimeInFirstBin () { fInfo[1] |= kMeanTimeInFirstBin; } 75 void SetLoGainOscillating () { fInfo[1] |= kLoGainOscillating; } 76 void SetHiGainOscillating () { fInfo[1] |= kHiGainOscillating; } 77 void SetConvHiLoNotValid () { fInfo[1] |= kConvHiLoNotValid; } 78 void SetChargeSigmaNotValid () { fInfo[1] |= kChargeSigmaNotValid; } 79 void SetChargeRelErrNotValid () { fInfo[1] |= kChargeRelErrNotValid; } 80 void SetChargeErrNotValid () { fInfo[1] |= kChargeErrNotValid; } 81 void SetChargeIsPedestal () { fInfo[1] |= kChargeIsPedestal; } 82 void SetLoGainNotFitted () { fInfo[1] |= kLoGainNotFitted; } 83 void SetHiGainNotFitted () { fInfo[1] |= kHiGainNotFitted; } 102 84 103 85 // Getter 104 Bool_t IsUnsuitableRun( UnsuitableType_t typ=kUnsuitableRun) const { return fInfo[0]&typ; }105 Bool_t IsSuitableRun( UnsuitableType_t typ=kUnsuitableRun) const { return !(fInfo[0]&typ); }86 Bool_t IsUnsuitableRun() const { return fInfo[0]&kUnsuitableRun; } 87 Bool_t IsSuitableRun() const { return !(fInfo[0]&kUnsuitableRun); } 106 88 107 Bool_t IsUnsuitableEvt( UnsuitableType_t typ=kUnsuitableEvt) const { return fInfo[0]&typ; }108 Bool_t IsSuitableEvt( UnsuitableType_t typ=kUnsuitableEvt) const { return !(fInfo[0]&typ); }89 Bool_t IsUnsuitableEvt() const { return fInfo[0]&kUnsuitableEvt; } 90 Bool_t IsSuitableEvt() const { return !(fInfo[0]&kUnsuitableEvt); } 109 91 110 Bool_t IsUnreliableRun( UnsuitableType_t typ=kUnreliableRun) const { return fInfo[0]&typ; }111 Bool_t IsReliableRun( UnsuitableType_t typ=kUnreliableRun) const { return !(fInfo[0]&typ); }92 Bool_t IsUnreliableRun() const { return fInfo[0]&kUnreliableRun; } 93 Bool_t IsReliableRun() const { return !(fInfo[0]&kUnreliableRun); } 112 94 113 95 Bool_t IsOK() const { return fInfo[0]==0; }
Note:
See TracChangeset
for help on using the changeset viewer.