Changeset 2325 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
09/07/03 17:37:19 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2324 r2325  
    1212       reason for the discrepancies in the gamma/hadron separation
    1313       results we were observing lately. The meaning of Size was
    14        different among the different people working on the matter, and
     14       different among the different people working on the subject, and
    1515       hence, when we compared samples with a given Size cut we were
    1616       actually comparing different energy ranges.
     17
     18     - Turned fSumQuadWeights to its original meaning, the quadratic
     19       sum (square root of the sum of the squares) of the values in the
     20       fWeight array. Why was this changed?? (sqrt removed) Only because
     21       of the name of the variable??
     22
     23     - Changed the calculation of the mean pedestal to fit the meaning
     24       of fSumQuadWeights.
     25
     26     - Moved the call to ScalePedestals() to the end of the ReInit
     27       function. Formerly it was called before the setting of the
     28       variable fEnableFix, and then the mean pedestal in each FADC
     29       slice was wrong by 0.5 units... once more: please Thomas B,
     30       be careful with these kind of changes.
    1731
    1832
  • 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.