Changeset 7830 for trunk/MagicSoft/Mars
- Timestamp:
- 08/01/06 14:24:19 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7829 r7830 57 57 * msignal/MSignalPix.[h,cc]: 58 58 - added new (non I/O) member fLoGainUsed 59 60 * msignal/MSignalCam.cc: 61 - added cases 10 and 11 to GetPixelContent 62 - added some more comments 59 63 60 64 -
trunk/MagicSoft/Mars/NEWS
r7829 r7830 31 31 factors to be 10 after the first calibration update. 32 32 33 - callisto: Fixed the hi-/lo-gain offset for the Digital Filter. It 34 was off by more than one slice (which gives wrong values for 35 pixels which have saturated the hi-gain) This was a problem 36 mainly for timing studies, not for the automatic standard analysis. 37 38 - callisto: Implemented two new tabs, the pulse position of pulses 39 not saturating the hi-gain (and above 20phe) and the pulse-position 40 saturating the hi-gain (means the pulse position of signal extracted 41 from the lo-gain) This can be used to check (and/or correct) the 42 hi-/lo-gain offset. 43 44 - callisto: The signal threshold for the pulse position has been 45 changed from 15phe to 20phe and the scaling of the outer pixels has 46 been switched off. 47 33 48 - star: changed the fit for the ffective on time such that initial 34 35 36 37 38 39 40 41 42 43 49 values are calculated automatically now instead of using build 50 in values. This makes the fit more indepedant of the underlaying 51 rates. With a test of ~350 sequences in the test database it could 52 be shown that the new fit gives the same result +/-1sek. 53 The highest deviation was +5s the lowest -10s. You can now control 54 the bahaviour with two resource values: 55 MHEffectiveOnTime.FistBin: 3 56 MHEffectiveOnTime.NumEvents: 12000 57 Use FirstBin=1 and NumEvents=120 to fit the effective on time 58 from the resulting gamma candidates 44 59 45 60 - ganymed: now pruduces valid error codes if failed -
trunk/MagicSoft/Mars/msignal/MSignalCam.cc
r7804 r7830 589 589 // Returns, depending on the type flag: 590 590 // 591 // 0: Number of Photons*PixRatio 591 // 0: Number of Photons*PixRatio <default> 592 592 // 1: Error*sqrt(PixRatio) 593 593 // 2: Cleaning level = Num Photons*sqrt(PixRatio)/Error … … 595 595 // 4: Error 596 596 // 5: Island index 597 // 6: arrival time of mapped pixels 598 // 7: arrival time if signa avove 20phe 599 // 8: arrival time 600 // 10: arrival time if extracted from lo-gain 601 // 11: arrival time if extracted from hi-gain (and signal above 20phe) 597 602 // 598 603 Bool_t MSignalCam::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const … … 610 615 switch (type) 611 616 { 612 case 1: 617 case 1: // scaled error of phtoons 613 618 val = pix->GetErrorPhot()*TMath::Sqrt(ratio); 614 619 return kTRUE; 615 case 2: 620 621 case 2: // significance of number of photons 616 622 if (pix->GetErrorPhot()<=0) 617 623 return kFALSE; 618 624 val = pix->GetNumPhotons()*TMath::Sqrt(ratio)/pix->GetErrorPhot(); 619 625 return kTRUE; 620 case 3: 626 627 case 3: // number of photo electrons 621 628 val = pix->GetNumPhotons(); 622 629 break; 623 case 4: 630 631 case 4: // error of signal 624 632 val = pix->GetErrorPhot(); 625 633 break; 626 case 5: 634 635 case 5: // index of island 627 636 val = pix->GetIdxIsland(); 628 637 break; 629 case 6: 638 639 case 6: // arrival time of mapped pixels only 630 640 if (pix->IsPixelUnmapped()) 631 641 return kFALSE; 632 642 val = pix->GetArrivalTime(); 633 643 break; 634 case 7: 635 if (pix->IsPixelUnmapped() || pix->GetNumPhotons()*ratio<15) // maybe 15 as static data member? 644 645 case 7: // pulse position above 15phe 646 // The number of photons is not scaled with the ratio because 647 // otherwise to many large pixels survive (maybe because the 648 // fluctuations scale different than expected) 649 if (pix->IsPixelUnmapped() || pix->GetNumPhotons()<20) 636 650 return kFALSE; 637 651 val = pix->GetArrivalTime(); 638 652 break; 639 case 8: 653 654 case 8: // arrival time 640 655 val = pix->GetArrivalTime(); 641 656 break; 657 658 case 10: // lo gain time 659 if (pix->IsPixelUnmapped() || !pix->IsLoGainUsed()) 660 return kFALSE; 661 val = pix->GetArrivalTime(); 662 return kTRUE; 663 664 case 11: // hi gain time 665 if (pix->IsPixelUnmapped() || pix->IsLoGainUsed()) 666 return kFALSE; 667 668 // The number of photons is not scaled with the ratio because 669 // otherwise to many large pixels survive (maybe because the 670 // fluctuations scale different than expected) 671 if (pix->GetNumPhotons()<20) 672 return kFALSE; 673 674 val = pix->GetArrivalTime(); 675 return kTRUE; 676 642 677 default: 643 678 val = pix->GetNumPhotons()*ratio;
Note:
See TracChangeset
for help on using the changeset viewer.