Ignore:
Timestamp:
01/19/04 15:46:56 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mimage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mimage/MNewImagePar.cc

    r2624 r2849  
    3232// fLeakage2 ratio: (photons in the 2 outer rings of pixels) over fSize
    3333//
     34// Version 2:
     35// Added fNumSaturatedPixels: number of pixels in which at least one slice
     36// of the low gain FADC was saturated.
     37//
    3438/////////////////////////////////////////////////////////////////////////////
    3539#include "MNewImagePar.h"
     
    7478    fNumUsedPixels = -1;
    7579    fNumCorePixels = -1;
     80
     81    fNumSaturatedPixels = -1;
    7682}
    7783
     
    8692    fNumCorePixels = 0;
    8793
     94    fNumSaturatedPixels = 0;
     95
    8896    const UInt_t npixevt = evt.GetNumPixels();
    8997
     
    97105    {
    98106        const MCerPhotPix &pix = evt[i];
     107
     108        if (pix.IsPixelSaturated())
     109          fNumSaturatedPixels++;
     110
    99111        if (!pix.IsPixelUsed())
    100112            continue;
  • trunk/MagicSoft/Mars/mimage/MNewImagePar.h

    r2026 r2849  
    2222    Short_t fNumCorePixels; // number of core pixels
    2323
     24    Short_t fNumSaturatedPixels; // number of saturated pixels
     25
    2426public:
    2527    MNewImagePar(const char *name=NULL, const char *title=NULL);
     
    3638    Int_t GetNumCorePixels() const { return fNumCorePixels; }
    3739
     40    Short_t GetNumSaturatedPixels() const { return fNumSaturatedPixels; }
     41
    3842    void Print(Option_t *opt=NULL) const;
    3943
     
    4145              const MHillas &hillas);
    4246
    43     ClassDef(MNewImagePar, 1) // Container to hold new image parameters
     47    ClassDef(MNewImagePar, 2) // Container to hold new image parameters
    4448};
    4549
Note: See TracChangeset for help on using the changeset viewer.