Changeset 5948 for trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
- Timestamp:
- 01/23/05 16:09:15 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
r5517 r5948 339 339 340 340 Int_t count = 0; 341 341 Int_t full = 0; 342 342 343 for (Int_t i=0; i<GetSize(); i++) 343 344 { … … 345 346 { 346 347 *fLog << i << " "; 348 full++; 347 349 count ++; 348 350 } 349 351 350 352 if (count == 0) 351 continue; 352 353 if (!(count % 25)) 354 *fLog << endl; 355 } 353 continue; 354 355 if (!(full % 25)) 356 { 357 full = 0; 358 *fLog << endl; 359 } 360 } 361 *fLog << endl; 356 362 *fLog << count << " normal pixels" << endl; 357 363 *fLog << endl; … … 359 365 *fLog << "Pixels unsuited for the whole run:" << endl; 360 366 367 full = 0; 368 count = 0; 361 369 for (Int_t i=0; i<GetSize(); i++) 362 370 { … … 364 372 { 365 373 *fLog << i << " "; 374 full++; 366 375 count ++; 367 376 } … … 370 379 continue; 371 380 372 if (!(count % 25)) 373 *fLog << endl; 374 } 375 376 *fLog << count << " unsuited pixels :-(" << endl; 377 *fLog << endl; 378 381 if (!(full % 25)) 382 { 383 full = 0; 384 *fLog << endl; 385 } 386 } 387 388 *fLog << endl; 389 *fLog << count << " unsuited pixels per run :-(" << endl; 390 *fLog << endl; 391 392 *fLog << "Pixels unsuited for this event:" << endl; 393 394 full = 0; 395 count = 0; 396 for (Int_t i=0; i<GetSize(); i++) 397 { 398 if ((*this)[i].IsUnsuitable(MBadPixelsPix::kUnsuitableEvt)) 399 { 400 *fLog << i << " "; 401 full++; 402 count ++; 403 } 404 405 if (count == 0) 406 continue; 407 408 if (!(full % 25)) 409 { 410 full = 0; 411 *fLog << endl; 412 } 413 } 414 415 *fLog << endl; 416 *fLog << count << " unsuited pixels per event :-(" << endl; 417 *fLog << endl; 418 419 full = 0; 379 420 count = 0; 380 421 … … 386 427 { 387 428 *fLog << i << " "; 429 full++; 388 430 count ++; 389 431 } … … 392 434 continue; 393 435 394 if (!(count % 25)) 395 *fLog << endl; 396 } 397 436 if (!(full % 25)) 437 { 438 full = 0; 439 *fLog << endl; 440 } 441 } 442 443 *fLog << endl; 398 444 *fLog << count << " unreliable pixels :-(" << endl; 399 445 *fLog << endl; … … 433 479 *fLog << "Pixels with " << text << ": " << endl; 434 480 UInt_t count = 0; 481 UInt_t full = 0; 435 482 436 483 for (Int_t i=0; i<GetSize(); i++) … … 439 486 { 440 487 *fLog << i << " "; 488 full++; 441 489 count++; 442 490 } … … 445 493 continue; 446 494 447 if (!(count % 25)) 448 *fLog << endl; 449 } 450 495 if (!(full % 25)) 496 { 497 full = 0; 498 *fLog << endl; 499 } 500 } 501 502 *fLog << endl; 451 503 *fLog << Form("%3i",count) << " pixels in total " << endl; 452 *fLog << endl;453 504 } 454 505
Note:
See TracChangeset
for help on using the changeset viewer.