Changeset 8446
- Timestamp:
- 04/25/07 15:39:43 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8444 r8446 19 19 -*-*- END OF LINE -*-*- 20 20 21 2007/04/25 Thomas Bretz 22 23 * mbadpixels/MBadPixelsCam.cc: 24 - removed obsolete code from Print() which tried to align the output 25 26 * mhcalib/MHCalibrationChargeCam.cc: 27 - increased the shown binning range further 28 29 * mhcalib/MHCalibrationPulseTimeCam.cc: 30 - unimportant changes 31 32 * mjobs/MJPedestal.cc: 33 - changed a comment 34 35 * mpedestal/MPedestalSubtractedEvt.h: 36 - fixed a bug of preset upper limits. The last slice is fNumSamples-1 37 not fNumSamples 38 39 40 21 41 2007/04/24 Thomas Bretz 22 42 -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
r8423 r8446 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MBadPixelsCam.cc,v 1. 49 2007-04-20 08:55:17tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MBadPixelsCam.cc,v 1.50 2007-04-25 14:39:41 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 394 394 395 395 Int_t count = 0; 396 Int_t full = 0;397 396 398 397 for (Int_t i=0; i<GetSize(); i++) … … 401 400 { 402 401 *fLog << i << " "; 403 full++;404 402 count ++; 405 403 } 406 407 if (count == 0) 408 continue; 409 410 if (!(full % 25)) 411 { 412 full = 0; 413 *fLog << endl; 414 } 415 } 416 *fLog << endl; 404 } 417 405 *fLog << count << " normal pixels" << endl; 418 406 *fLog << endl; 419 407 420 408 *fLog << "Pixels unsuited for the whole run:" << endl; 421 422 full = 0; 409 423 410 count = 0; 424 411 for (Int_t i=0; i<GetSize(); i++) … … 427 414 { 428 415 *fLog << i << " "; 429 full++;430 416 count ++; 431 417 } 432 433 if (count == 0) 434 continue; 435 436 if (!(full % 25)) 437 { 438 full = 0; 439 *fLog << endl; 440 } 441 } 442 443 *fLog << endl; 418 } 419 444 420 *fLog << count << " unsuited pixels per run :-(" << endl; 445 421 *fLog << endl; 446 422 447 423 *fLog << "Pixels unsuited for this event:" << endl; 448 424 449 full = 0;450 425 count = 0; 451 426 for (Int_t i=0; i<GetSize(); i++) … … 454 429 { 455 430 *fLog << i << " "; 456 full++;457 431 count ++; 458 432 } 459 460 if (count == 0) 461 continue; 462 463 if (!(full % 25)) 464 { 465 full = 0; 466 *fLog << endl; 467 } 468 } 469 470 *fLog << endl; 433 } 434 471 435 *fLog << count << " unsuited pixels per event :-(" << endl; 472 436 *fLog << endl; 473 474 full = 0; 437 475 438 count = 0; 476 439 477 440 *fLog << all << "Pixels unreliable for the whole run:" << endl; 478 441 479 442 for (Int_t i=0; i<GetSize(); i++) 480 443 { … … 482 445 { 483 446 *fLog << i << " "; 484 full++;485 447 count ++; 486 448 } 487 488 if (count == 0) 489 continue; 490 491 if (!(full % 25)) 492 { 493 full = 0; 494 *fLog << endl; 495 } 496 } 497 498 *fLog << endl; 449 } 450 499 451 *fLog << count << " unreliable pixels :-(" << endl; 500 452 *fLog << endl; … … 502 454 *fLog << all << "Unsuited pixels statistics:" << endl; 503 455 *fLog << endl; 504 456 505 457 PrintBadPixels(MBadPixelsPix::kPreviouslyExcluded,"Previously excluded"); 506 458 PrintBadPixels(MBadPixelsPix::kChargeIsPedestal,"Signal smaller 3 Pedestal RMS"); … … 519 471 *fLog << all << "Unreliable pixels statistics:" << endl; 520 472 *fLog << endl; 521 473 522 474 PrintBadPixels(MBadPixelsPix::kChargeSigmaNotValid,"Signal Sigma smaller Pedestal RMS"); 523 475 PrintBadPixels(MBadPixelsPix::kHiGainNotFitted ,"High Gain Signals could not be fitted"); … … 554 506 *fLog << "Pixels with " << text << ": " << endl; 555 507 UInt_t count = 0; 556 UInt_t full = 0;557 508 558 509 for (Int_t i=0; i<GetSize(); i++) … … 561 512 { 562 513 *fLog << i << " "; 563 full++;564 514 count++; 565 515 } 566 567 if (count == 0)568 continue;569 570 if (!(full % 25))571 {572 full = 0;573 *fLog << endl;574 }575 516 } 576 517 577 *fLog << endl;578 518 *fLog << Form("%3i",count) << " pixels in total " << endl; 579 519 } -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc
r8417 r8446 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationChargeCam.cc,v 1.5 6 2007-04-18 15:33:56tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationChargeCam.cc,v 1.57 2007-04-25 14:39:43 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 1274 1274 xaxe->SetTitle(hist->GetXaxis()->GetTitle()); 1275 1275 yaxe->SetTitle(hist->GetYaxis()->GetTitle()); 1276 xaxe->SetRange(hist->GetMaximumBin()- 30, hist->GetMaximumBin()+30);1276 xaxe->SetRange(hist->GetMaximumBin()-50, hist->GetMaximumBin()+50); 1277 1277 1278 1278 gStyle->SetOptFit(); -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc
r8434 r8446 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.3 7 2007-04-23 19:06:28tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.38 2007-04-25 14:39:43 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 390 390 391 391 // Get position of maximum 392 const Int_t pos = evt->GetMax(idx /*, first, last*/);392 const Int_t pos = evt->GetMax(idx); 393 393 const Float_t max = evt->GetSamples(idx)[pos]; 394 394 … … 413 413 for (UInt_t j=0; j<nareas; j++) 414 414 { 415 const Int_t npix = fAverageAreaNum[j]; 416 417 if (npix > fNumPixelsRequired) 415 if (fAverageAreaNum[j] > fNumPixelsRequired) 418 416 { 417 sumarea[j] /= fAverageAreaNum[j]; 418 419 419 if (IsOscillations()) 420 GetAverageHiGainArea(j).FillHistAndArray(sumarea[j] /npix);420 GetAverageHiGainArea(j).FillHistAndArray(sumarea[j]); 421 421 else 422 GetAverageHiGainArea(j).FillHist(sumarea[j] /npix);422 GetAverageHiGainArea(j).FillHist(sumarea[j]); 423 423 424 424 } … … 427 427 for (UInt_t j=0; j<nsectors; j++) 428 428 { 429 const Int_t npix = fAverageSectorNum[j]; 430 431 if (npix > 0) 429 if (fAverageSectorNum[j] > 0) 432 430 { 431 sumsector[j] /= fAverageSectorNum[j]; 432 433 433 if (IsOscillations()) 434 GetAverageHiGainSector(j).FillHistAndArray(sumsector[j] /npix);434 GetAverageHiGainSector(j).FillHistAndArray(sumsector[j]); 435 435 else 436 GetAverageHiGainSector(j).FillHist(sumsector[j] /npix);436 GetAverageHiGainSector(j).FillHist(sumsector[j]); 437 437 } 438 438 } -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r8439 r8446 1070 1070 hpedcam.SetRenorm(kTRUE); 1071 1071 1072 // To have it in the parlist !1072 // To have it in the parlist for MEnv! 1073 1073 MHCalibrationPulseTimeCam pulcam; 1074 1074 plist.AddToList(&pulcam); -
trunk/MagicSoft/Mars/mpedestal/MPedestalSubtractedEvt.h
r8361 r8446 49 49 Int_t GetMax(const Int_t pixidx, UInt_t &val) const 50 50 { 51 return GetMax(pixidx, 0, fNumSamples , val);51 return GetMax(pixidx, 0, fNumSamples-1, val); 52 52 } 53 53 … … 55 55 { 56 56 UInt_t val; 57 return GetMax(pixidx, 0, fNumSamples , val);57 return GetMax(pixidx, 0, fNumSamples-1, val); 58 58 } 59 59 Int_t GetSaturation(const Int_t pixidx, Int_t limit) const 60 60 { 61 61 Int_t first=0; 62 Int_t last=fNumSamples ;62 Int_t last=fNumSamples-1; 63 63 return GetSaturation(pixidx, limit, first, last); 64 64 }
Note:
See TracChangeset
for help on using the changeset viewer.