Changeset 7830 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 08/01/06 14:24:19 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.