Ignore:
Timestamp:
01/25/09 14:32:11 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msignal
Files:
2 edited

Legend:

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

    r8939 r9261  
    127127Int_t MSignalCalc::Process()
    128128{
     129    if (!fPedestals)
     130        return kFALSE;
     131
    129132    const Int_t npix = fRawEvt->GetNumPixels();
    130133    const Int_t nhi  = fRunHeader->GetNumSamplesHiGain();
     
    259262        // Preliminary: Do not overwrite pedestals calculated by
    260263        // MMcPedestalCopy and MMcPedestalNSBAdd
    261         if (fPedestals)
    262             (*fPedestals)[i].Set(b/fRunHeader->GetScale(), sigb/fRunHeader->GetScale());
     264        (*fPedestals)[i].Set(b/fRunHeader->GetScale(), sigb/fRunHeader->GetScale());
    263265    }
    264266
     
    266268    //fCerPhotEvt->SetReadyToSave();
    267269
    268     if (fPedestals)
    269         fPedestals->SetReadyToSave();
     270    fPedestals->SetReadyToSave();
    270271
    271272    return kTRUE;
  • trunk/MagicSoft/Mars/msignal/MSignalCam.cc

    r9212 r9261  
    570570//  7: arrival time if signa avove 20phe
    571571//  8: arrival time
    572 // 10: arrival time if extracted from lo-gain
    573 // 11: arrival time if extracted from hi-gain (and signal above 20phe)
     572// 10: as 0, but returns kFALSE if signal <=0
     573// 11: as 8, but returns kFALSE if signal <=0
    574574//
    575575Bool_t MSignalCam::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const
     
    648648        */
    649649
     650    case 10:
     651        val = pix.GetNumPhotons()*ratio;
     652        return val>0;
     653
     654    case 11:
     655        val = pix.GetArrivalTime();
     656        return pix.GetNumPhotons()>0;
     657
    650658    case 9:
    651659    default:
Note: See TracChangeset for help on using the changeset viewer.