Ignore:
Timestamp:
01/13/04 13:22:38 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc

    r2653 r2781  
    3838//  Output Containers:
    3939//    MCerPhotEvt     the data container for all data.
    40 //    MPedestalCam    ct1 pedestals
     40//    MPedPhotCam     CT1 pedestals
    4141//    MMcEvt          monte carlo data container for MC files
    4242//    MMcTrig         mc data container for trigger information
     
    6767#include "MCerPhotEvt.h"
    6868
    69 #include "MPedestalPix.h"
    70 #include "MPedestalCam.h"
     69#include "MPedPhotPix.h"
     70#include "MPedPhotCam.h"
    7171
    7272#include "MGeomCam.h"
     
    355355    for (Int_t i=0; i<iMAXNUMPIX; i++)
    356356    {
    357         (*fPedest)[i].SetPedestalRms(outpars.frms_pedsig_phot[i]);
     357        (*fPedest)[i].Set(0, outpars.frms_pedsig_phot[i]);
    358358        *fLog << outpars.frms_pedsig_phot[i] << " ";
    359359        fPedRMS[i] = outpars.frms_pedsig_phot[i];
     
    722722// them if they don't exist.
    723723//
    724 // Initialize the size of the MPedestalCam container to 127 pixels (CT1 camera)
     724// Initialize the size of the MPedPhotCam container to 127 pixels (CT1 camera)
    725725//
    726726Int_t MCT1ReadPreProc::PreProcess(MParList *pList)
     
    754754    //  look for the pedestal class in the plist
    755755    //
    756     fPedest = (MPedestalCam*)pList->FindCreateObj("MPedestalCam");
     756    fPedest = (MPedPhotCam*)pList->FindCreateObj("MPedPhotCam");
    757757    if (!fPedest)
    758758        return kFALSE;
     
    901901    // reset pedestal RMS for this event
    902902    for (Int_t i=0; i<iMAXNUMPIX; i++)
    903         (*fPedest)[i].SetPedestalRms(fPedRMS[i]);
     903        (*fPedest)[i].Set(0, fPedRMS[i]);
    904904
    905905    //  int   isecs_since_midday; // seconds passed since midday before sunset (JD of run start)
     
    944944            continue;
    945945
    946         fNphot->AddPixel(i, 0.1*event.spixsig_10thphot[i],
    947                          (*fPedest)[i].GetPedestalRms());
     946        fNphot->AddPixel(i, 0.1*event.spixsig_10thphot[i], (*fPedest)[i].GetRms());
    948947    }
    949948    fNphot->FixSize();
Note: See TracChangeset for help on using the changeset viewer.