Ignore:
Timestamp:
02/18/09 12:07:41 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msimcamera
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msimcamera/MSimGeomCam.cc

    r9342 r9347  
    3737//   MPhotonEvent
    3838//   fNameGeomCam [MGeomCam]
    39 //   IntendedTrigPos [MParameterD]
    4039//   MRawRunHeader
     40//   [IntendedPulsePos [MParameterD]]
     41//   [MPulseShape]
    4142//
    4243//  Output Containers:
     
    103104
    104105    fPulse = (MPulseShape*)pList->FindObject("MPulseShape");
     106/*
    105107    if (!fPulse)
    106108    {
     
    108110        return kFALSE;
    109111    }
    110 
     112 */
    111113    fPulsePos = (MParameterD*)pList->FindObject("IntendedPulsePos", "MParameterD");
     114/*
    112115    if (!fPulsePos)
    113116    {
     
    115118        return kFALSE;
    116119    }
    117 
     120*/
    118121    fHeader = (MRawRunHeader*)pList->FindObject("MRawRunHeader");
    119122    if (!fHeader)
     
    168171
    169172    // ------ FIXME: Move somewhere else? MSimCalibrationSignal ------
    170 
     173/*
    171174    if (!fEvt->IsSorted())
    172175    {
    173         *fLog << err << "ERROR - MPhotonEvent must be sorted!" << endl;
     176        *fLog << err << "ERROR - MSimGeomCam: MPhotonEvent must be sorted!" << endl;
    174177        return kERROR;
    175178    }
    176 
     179 */
    177180    const Float_t freq = fHeader->GetFreqSampling()/1000.;
    178181
     
    185188
    186189    // Length (ns), Pulse position (Units ns)
    187     const Float_t pp   = fPulsePos->GetVal();
    188     const Float_t pw   = fPulse->GetPulseWidth();
     190    const Float_t pp   = fPulsePos ? fPulsePos->GetVal()     : 0;
     191    const Float_t pw   = fPulse    ? fPulse->GetPulseWidth() : 0;
    189192
    190193    fStat->SetTimeMedDev(fEvt->GetTimeMedianDev());
  • trunk/MagicSoft/Mars/msimcamera/MSimSignalCam.cc

    r9274 r9347  
    3535//   MPhotonEvent
    3636//   MPhotonStatistics
     37//   [TriggerPos [MParameterD]]
    3738//
    3839//  Output Containers:
     
    9091
    9192    fTrigger = (MParameterD*)pList->FindObject("TriggerPos", "MParameterD");
     93/*
    9294    if (!fTrigger)
    9395    {
     
    9597        return kFALSE;
    9698    }
    97 
     99*/
    98100    fSignal = (MSignalCam*)pList->FindCreateObj("MSignalCam");
    99101    if (!fSignal)
     
    111113{
    112114    const UInt_t npix = fSignal->GetNumPixels();
     115
     116    if (npix==0)
     117    {
     118        *fLog << err << "ERROR - MSignalCam has 0 entries. Presumably MGeomApply::ReInit not done." << endl;
     119        return kFALSE;
     120    }
    113121
    114122    if (fCont.GetSize()!=npix)
     
    163171    // What about events with trigger<0?
    164172    const Float_t trig  = fTrigger && fTrigger->GetVal()>=0 ? fTrigger->GetVal()  : 0;
    165     const Float_t first = fStat->GetTimeFirst()+trig /*+50+40*/;
     173    const Float_t first = fStat->GetTimeFirst()+trig;
    166174
    167175    // Loop over all pixels and set signal and arrival time.
Note: See TracChangeset for help on using the changeset viewer.