Changeset 4813 for trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
- Timestamp:
- 08/30/04 16:51:41 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
r4793 r4813 469 469 } 470 470 471 fSumhiarea .Set(nareas); 472 fSumloarea .Set(nareas); 473 fTimehiarea .Set(nareas); 474 fTimeloarea .Set(nareas); 475 fSumhisector.Set(nsectors); 476 fSumlosector.Set(nsectors); 477 fTimehisector.Set(nsectors); 478 fTimelosector.Set(nsectors); 479 480 fSathiarea .Set(nareas); 481 fSatloarea .Set(nareas); 482 fSathisector.Set(nsectors); 483 fSatlosector.Set(nsectors); 484 471 485 return kTRUE; 472 486 } … … 512 526 const UInt_t lofirst = signal->GetFirstUsedSliceLoGain(); 513 527 514 Float_t sumhiarea [nareas], sumloarea [nareas], timehiarea [nareas], timeloarea [nareas]; 515 Float_t sumhisector[nsectors], sumlosector[nsectors], timehisector[nsectors], timelosector[nsectors]; 516 Int_t sathiarea [nareas], satloarea [nareas]; 517 Int_t sathisector[nsectors], satlosector[nsectors]; 518 519 memset(sumhiarea, 0, nareas * sizeof(Float_t)); 520 memset(sumloarea, 0, nareas * sizeof(Float_t)); 521 memset(timehiarea, 0, nareas * sizeof(Float_t)); 522 memset(timeloarea, 0, nareas * sizeof(Float_t)); 523 memset(sathiarea, 0, nareas * sizeof(Int_t )); 524 memset(satloarea, 0, nareas * sizeof(Int_t )); 525 memset(sumhisector, 0, nsectors*sizeof(Float_t)); 526 memset(sumlosector, 0, nsectors*sizeof(Float_t)); 527 memset(timehisector,0, nsectors*sizeof(Float_t)); 528 memset(timelosector,0, nsectors*sizeof(Float_t)); 529 memset(sathisector, 0, nsectors*sizeof(Int_t )); 530 memset(satlosector, 0, nsectors*sizeof(Int_t )); 528 fSumhiarea .Reset(); 529 fSumloarea .Reset(); 530 fTimehiarea .Reset(); 531 fTimeloarea .Reset(); 532 fSumhisector.Reset(); 533 fSumlosector.Reset(); 534 fTimehisector.Reset(); 535 fTimelosector.Reset(); 536 537 fSathiarea .Reset(); 538 fSatloarea .Reset(); 539 fSathisector.Reset(); 540 fSatlosector.Reset(); 531 541 532 542 for (UInt_t i=0; i<npixels; i++) … … 559 569 const Int_t sector = (*fGeom)[i].GetSector(); 560 570 561 sumhiarea[aidx] += sumhi;562 sumloarea[aidx] += sumlo;563 sathiarea[aidx] += sathi;564 satloarea[aidx] += satlo;565 566 sumhisector[sector] += sumhi;567 sumlosector[sector] += sumlo;568 sathisector[sector] += sathi;569 satlosector[sector] += satlo;571 fSumhiarea[aidx] += sumhi; 572 fSumloarea[aidx] += sumlo; 573 fSathiarea[aidx] += sathi; 574 fSatloarea[aidx] += satlo; 575 576 fSumhisector[sector] += sumhi; 577 fSumlosector[sector] += sumlo; 578 fSathisector[sector] += sathi; 579 fSatlosector[sector] += satlo; 570 580 } 571 581 … … 591 601 const Int_t sector = (*fGeom)[pixid].GetSector(); 592 602 593 timehiarea[aidx] += timehi;594 timeloarea[aidx] += timelo;595 596 timehisector[sector] += timehi;597 timelosector[sector] += timelo;603 fTimehiarea[aidx] += timehi; 604 fTimeloarea[aidx] += timelo; 605 606 fTimehisector[sector] += timehi; 607 fTimelosector[sector] += timelo; 598 608 } 599 609 … … 609 619 MHCalibrationChargePix &lopix = (MHCalibrationChargePix&)GetAverageLoGainArea(j); 610 620 611 hipix.FillHistAndArray( sumhiarea[j]/npix);612 lopix.FillHistAndArray( sumloarea[j]/npix);613 614 hipix.SetSaturated( sathiarea[j]/npix);615 lopix.SetSaturated( satloarea[j]/npix);616 617 hipix.FillAbsTime( timehiarea[j]/npix);618 lopix.FillAbsTime( timeloarea[j]/npix);621 hipix.FillHistAndArray(fSumhiarea[j]/npix); 622 lopix.FillHistAndArray(fSumloarea[j]/npix); 623 624 hipix.SetSaturated(fSathiarea[j]/npix); 625 lopix.SetSaturated(fSatloarea[j]/npix); 626 627 hipix.FillAbsTime(fTimehiarea[j]/npix); 628 lopix.FillAbsTime(fTimeloarea[j]/npix); 619 629 620 630 } … … 631 641 MHCalibrationChargePix &lopix = (MHCalibrationChargePix&)GetAverageLoGainSector(j); 632 642 633 hipix.FillHistAndArray( sumhisector[j]/npix);634 lopix.FillHistAndArray( sumlosector[j]/npix);635 636 hipix.SetSaturated( sathisector[j]/npix);637 lopix.SetSaturated( satlosector[j]/npix);638 639 hipix.FillAbsTime( timehisector[j]/npix);640 lopix.FillAbsTime( timelosector[j]/npix);643 hipix.FillHistAndArray(fSumhisector[j]/npix); 644 lopix.FillHistAndArray(fSumlosector[j]/npix); 645 646 hipix.SetSaturated(fSathisector[j]/npix); 647 lopix.SetSaturated(fSatlosector[j]/npix); 648 649 hipix.FillAbsTime(fTimehisector[j]/npix); 650 lopix.FillAbsTime(fTimelosector[j]/npix); 641 651 642 652 }
Note:
See TracChangeset
for help on using the changeset viewer.