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

Legend:

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

    r2173 r2849  
    2323!
    2424\* ======================================================================== */
     25
     26
     27/////////////////////////////////////////////////////////////////////////////
     28//
     29// MCerPhotPix
     30//
     31// Storage container for the signal in a pixel in number of photons.
     32//
     33// Version 2:
     34// Added fIsSaturated, boolean variable set to kTRUE whenever one or more of
     35// the low gain FADC slices of the pixel is in saturation.
     36//
     37////////////////////////////////////////////////////////////////////////////
     38
    2539#include "MCerPhotPix.h"
    2640
     
    3751//
    3852MCerPhotPix::MCerPhotPix(Int_t pix, Float_t phot, Float_t errphot) :
    39     fPixId(pix), fRing(1), fIsCore(kFALSE), fPhot(phot), fErrPhot(errphot)
     53  fPixId(pix), fRing(1), fIsCore(kFALSE), fPhot(phot), fErrPhot(errphot), fIsSaturated(kFALSE)
    4054{
    4155}
     
    5064    gLog << (fRing>0?"   Used ":" Unused ");
    5165    gLog << (fIsCore?" Core ":"      ");
     66    gLog << (fIsSaturated?" Saturated ":"Not Saturated");
    5267    gLog << "Nphot= " << fPhot << " Error(Nphot)=" << fErrPhot << endl;
    5368}
  • trunk/MagicSoft/Mars/manalysis/MCerPhotPix.h

    r2056 r2849  
    1414    UShort_t fRing;      // NT: number of analyzed rings around the core pixels (fRing>0 means: used)
    1515    Bool_t   fIsCore;    // the pixel is a Core pixel -> kTRUE
     16    Bool_t   fIsSaturated; // the pixel is saturated
    1617
    1718    Float_t  fPhot;      // The number of Cerenkov photons
     
    4142    void     Set(Float_t np, Float_t ep) { fPhot = np; fErrPhot = ep; }
    4243
     44    void     SetPixelSaturated()         { fIsSaturated = kTRUE; }
     45    Bool_t   IsPixelSaturated() const    { return fIsSaturated; }
     46
    4347    void     AddNumPhotons(Float_t f)    { fPhot += f; }
    4448
     
    4751    void     Print(Option_t *opt = NULL) const;
    4852
    49     ClassDef(MCerPhotPix, 1)  // class containing information about the Cerenkov Photons in a pixel
     53    ClassDef(MCerPhotPix, 2)  // class containing information about the Cerenkov Photons in a pixel
    5054};
    5155
Note: See TracChangeset for help on using the changeset viewer.