Ignore:
Timestamp:
09/03/04 09:33:43 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
2 edited

Legend:

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

    r4716 r4838  
    374374// --------------------------------------------------------------------------
    375375//
     376// Function to calculate the cleaning level for all pixels in a given event.
     377// The level is the absolute number of photons times the area-ratio.
     378//
     379void MCameraData::CalcCleaningAbsolute(const MCerPhotEvt &evt, const MGeomCam &geom)
     380{
     381    const Int_t n = geom.GetNumPixels();
     382
     383    // Reset arrays
     384    fData.Set(n);
     385    fData.Reset();
     386
     387    fValidity.Set(n);
     388    fValidity.Reset();
     389
     390    const Int_t entries = evt.GetNumPixels();
     391
     392    // calculate cleaning levels
     393    for (Int_t i=0; i<entries; i++)
     394    {
     395        const MCerPhotPix &spix = evt[i];
     396
     397        const Int_t idx = spix.GetPixId();
     398
     399        // Set probability
     400        fData[idx]     = spix.GetNumPhotons() * geom.GetPixRatio(idx);
     401        fValidity[idx] = 1;
     402    }
     403}
     404
     405// --------------------------------------------------------------------------
     406//
    376407// Returns the contents of the pixel.
    377408//
  • trunk/MagicSoft/Mars/manalysis/MCameraData.h

    r4716 r4838  
    4545    void CalcCleaningProbability(const MCerPhotEvt &evt, const MPedPhotCam &pcam,
    4646                                 const MGeomCam &geom,   const MArrivalTime *tcam);
     47    void CalcCleaningAbsolute(const MCerPhotEvt &evt, const MGeomCam &geom);
    4748
    4849    const TArrayD &GetData() const { return fData; }
Note: See TracChangeset for help on using the changeset viewer.