Ignore:
Timestamp:
08/01/06 14:24:19 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MSignalCam.cc

    r7804 r7830  
    589589// Returns, depending on the type flag:
    590590//
    591 //  0: Number of Photons*PixRatio
     591//  0: Number of Photons*PixRatio <default>
    592592//  1: Error*sqrt(PixRatio)
    593593//  2: Cleaning level = Num Photons*sqrt(PixRatio)/Error
     
    595595//  4: Error
    596596//  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)
    597602//
    598603Bool_t MSignalCam::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const
     
    610615    switch (type)
    611616    {
    612     case 1:
     617    case 1: // scaled error of phtoons
    613618        val = pix->GetErrorPhot()*TMath::Sqrt(ratio);
    614619        return kTRUE;
    615     case 2:
     620
     621    case 2: // significance of number of photons
    616622        if (pix->GetErrorPhot()<=0)
    617623            return kFALSE;
    618624        val = pix->GetNumPhotons()*TMath::Sqrt(ratio)/pix->GetErrorPhot();
    619625        return kTRUE;
    620     case 3:
     626
     627    case 3: // number of photo electrons
    621628        val = pix->GetNumPhotons();
    622629        break;
    623     case 4:
     630
     631    case 4: // error of signal
    624632        val = pix->GetErrorPhot();
    625633        break;
    626     case 5:
     634
     635    case 5: // index of island
    627636        val = pix->GetIdxIsland();
    628637        break;
    629     case 6:
     638
     639    case 6: // arrival time of mapped pixels only
    630640        if (pix->IsPixelUnmapped())
    631641            return kFALSE;
    632642        val = pix->GetArrivalTime();
    633643        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)
    636650            return kFALSE;
    637651        val = pix->GetArrivalTime();
    638652        break;
    639     case 8:
     653
     654    case 8: // arrival time
    640655        val = pix->GetArrivalTime();
    641656        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
    642677    default:
    643678        val = pix->GetNumPhotons()*ratio;
Note: See TracChangeset for help on using the changeset viewer.