Changeset 3477 for trunk/MagicSoft
- Timestamp:
- 03/11/04 16:56:05 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mbadpixels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
r3476 r3477 160 160 void MBadPixelsCam::Print(Option_t *o) const 161 161 { 162 163 162 *fLog << all << GetDescriptor() << ":" << endl; 164 163 165 *fLog << all <<"Pixels without problems:" << endl;166 *fLog << all <<endl;164 *fLog << "Pixels without problems:" << endl; 165 *fLog << endl; 167 166 168 167 Int_t count = 0; 169 168 170 169 for (Int_t i=0; i<GetSize(); i++) 171 172 if ( (*this)[i].IsSuitableRun())173 170 { 171 if (!(*this)[i].IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 172 { 174 173 *fLog << i << " "; 175 174 count ++; 176 175 } 177 176 178 177 if (count == 0) 179 continue;178 continue; 180 179 181 180 if (!(count % 25)) 182 *fLog << endl;183 184 *fLog << endl; 185 *fLog << all << count << " normal pixels :-))" << endl;181 *fLog << endl; 182 } 183 *fLog << endl; 184 *fLog << count << " normal pixels :-))" << endl; 186 185 *fLog << endl; 187 186 count = 0; 188 187 189 188 190 *fLog << all <<"Pixels unsuited for the whole run:" << endl;191 *fLog << all <<endl;189 *fLog << "Pixels unsuited for the whole run:" << endl; 190 *fLog << endl; 192 191 193 192 for (Int_t i=0; i<GetSize(); i++) 194 195 if ((*this)[i].IsUnsuitable Run())196 193 { 194 if ((*this)[i].IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 195 { 197 196 *fLog << i << " "; 198 197 count ++; 199 198 } 200 199 201 200 if (count == 0) 202 continue;201 continue; 203 202 204 203 if (!(count % 25)) 205 *fLog << endl;206 207 *fLog << endl; 208 *fLog << all << count << " unsuited pixels :-(" << endl;204 *fLog << endl; 205 } 206 *fLog << endl; 207 *fLog << count << " unsuited pixels :-(" << endl; 209 208 *fLog << endl; 210 209 … … 215 214 216 215 for (Int_t i=0; i<GetSize(); i++) 217 218 if ((*this)[i].IsUn reliableRun())219 216 { 217 if ((*this)[i].IsUnsuitable(MBadPixelsPix::kUnreliableRun)) 218 { 220 219 *fLog << i << " "; 221 220 count ++; 222 223 221 } 222 224 223 if (count == 0) 225 continue;224 continue; 226 225 227 226 if (!(count % 25)) 228 *fLog << endl;229 230 *fLog << endl; 231 *fLog << all << count << " unreliable pixels :-(" << endl;227 *fLog << endl; 228 } 229 *fLog << endl; 230 *fLog << count << " unreliable pixels :-(" << endl; 232 231 *fLog << endl; 233 232 } … … 317 316 break; 318 317 case 1: 319 val = (*this)[idx].IsUnsuitable Run();318 val = (*this)[idx].IsUnsuitable(MBadPixelsPix::kUnsuitableRun); 320 319 return val; 321 320 break; 322 321 case 2: 323 val = (*this)[idx].IsUnsuitable Evt();322 val = (*this)[idx].IsUnsuitable(MBadPixelsPix::kUnsuitableEvt); 324 323 return val; 325 324 break; 326 325 case 3: 327 val = (*this)[idx].IsUn reliableRun();326 val = (*this)[idx].IsUnsuitable(MBadPixelsPix::kUnreliableRun); 328 327 return val; 329 328 break; -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h
r3476 r3477 104 104 Bool_t IsCalibrationOscillating() const { return ( !IsHiGainSaturation() && IsHiGainOscillating()) 105 105 || ( IsHiGainSaturation() && IsLoGainOscillating()) ; } 106 Bool_t IsCalibrationResultOK() const { return IsSuitableRun()107 &&IsCalibrationSignalOK()108 && !IsCalibrationOscillating()109 && IsCalibrationFitOK()110 && ( (!IsHiGainSaturation() && !IsHiGainBad())106 Bool_t IsCalibrationResultOK() const { return !IsUnsuitable(kUnsuitableRun) && 107 IsCalibrationSignalOK() 108 && !IsCalibrationOscillating() 109 && IsCalibrationFitOK() 110 && ( (!IsHiGainSaturation() && !IsHiGainBad()) 111 111 || (IsHiGainSaturation() && !IsLoGainBad()) ) ;} 112 112
Note:
See TracChangeset
for help on using the changeset viewer.