Ignore:
Timestamp:
09/07/03 17:37:19 (22 years ago)
Author:
moralejo
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc

    r2324 r2325  
    151151        return kTRUE;
    152152
    153     ScalePedestals();
    154 
    155153    MMcRunHeader *mcrunheader = (MMcRunHeader*)pList->FindObject("MMcRunHeader");
    156154    if (!mcrunheader)
     
    161159
    162160    fEnableFix = kFALSE;
     161
    163162    if (mcrunheader->GetCamVersion() <= 40)
    164163        fEnableFix = kTRUE;
    165164
     165    ScalePedestals();
     166
    166167    return kTRUE;
    167168}
     
    175176        MPedestalPix &ped = (*fPedestals)[idx];
    176177
     178        // This converts the pedestal info contained in ped  from the pedestal
     179        // of each FADC slice to the pedesal of the pixel signal (depends on
     180        // how many FADC slices are added up).
     181
    177182        const Double_t offset = fEnableFix ? ped.GetPedestal()-0.5 : ped.GetPedestal();
    178         ped.Set(offset, ped.GetPedestalRms()*sqrt(fSumQuadWeights));
     183
     184        ped.Set(offset*fSumQuadWeights*fSumQuadWeights,
     185                ped.GetPedestalRms()*fSumQuadWeights);
    179186    }
    180187
Note: See TracChangeset for help on using the changeset viewer.