Ignore:
Timestamp:
04/16/09 12:04:29 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r9378 r9425  
    6161
    6262#include "MGeomCam.h"
    63 #include "MPulseShape.h"
     63#include "MParSpline.h"
    6464#include "MTriggerPattern.h"
    6565
     
    136136    }
    137137
    138     fPulse = (MPulseShape*)pList->FindObject("MPulseShape");
     138    fPulse = (MParSpline*)pList->FindObject("PulseShape", "MParSpline");
    139139    if (!fPulse)
    140140    {
    141         *fLog << err << "MPulsShape not found... aborting." << endl;
     141        *fLog << err << "PulsShape [MParSpline] not found... aborting." << endl;
    142142        return kFALSE;
    143143    }
     
    173173    }
    174174
     175    // FIXME: Is there a way to write them as LAST entry in the file?
    175176    fRunHeader->SetReadyToSave();
    176177
     
    195196        for (UInt_t idx=0; idx<fGeom->GetNumPixels(); idx++)
    196197        {
     198            // FIXME: Scale number of photons with the pixel size!
    197199            const Int_t num = TMath::Nint(gRandom->Gaus(fNumPhotons, fNumPhotons/10));
    198200
     
    229231    // Length (ns), Pulse position (Units ns)
    230232    const Float_t pp = fPulsePos->GetVal();
    231     const Float_t pw = fPulse->GetPulseWidth();
     233    const Float_t pw = fPulse->GetWidth();
    232234
    233235    const Float_t first = cnt>0 ? fEvt->GetFirst()->GetTime() : 0;
Note: See TracChangeset for help on using the changeset viewer.