Ignore:
Timestamp:
01/30/07 14:16:45 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbadpixels
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc

    r8165 r8279  
    11/* ======================================================================== *\
     2! $Name: not supported by cvs2svn $:$Id: MBadPixelsCam.cc,v 1.48 2007-01-30 14:16:44 tbretz Exp $
     3! --------------------------------------------------------------------------
    24!
    35! *
     
    1719!
    1820!   Author(s): Thomas Bretz 1/2004 <mailto:tbretz@astro.uni-wuerzburg.de>
    19 !             Markus Gaug  3/2004 <mailto:markus@ifae.es>
     21!   Author(s): Markus Gaug  3/2004 <mailto:markus@ifae.es>
    2022!
    2123!   Copyright: MAGIC Software Development, 2000-2004
     
    3638#include <iostream>
    3739
     40#include <TArrayC.h>
    3841#include <TClonesArray.h>
    3942
     
    525528  PrintBadPixels(MBadPixelsPix::kRelTimeOscillating ,"Relative Arr. Times Oscillation");
    526529  PrintBadPixels(MBadPixelsPix::kDeviatingFFactor   ,"Deviating global F-Factor");
     530}
     531
     532TArrayC MBadPixelsCam::GetUnsuitable(MBadPixelsPix::UnsuitableType_t typ) const
     533{
     534    TArrayC rc(GetSize());
     535
     536    for (Int_t i=0; i<rc.GetSize(); i++)
     537        rc[i] = (*this)[i].IsUnsuitable(typ) ? 0 : 1;
     538
     539    return rc;
     540}
     541
     542TArrayC MBadPixelsCam::GetUncalibrated(MBadPixelsPix::UncalibratedType_t typ) const
     543{
     544    TArrayC rc(GetSize());
     545
     546    for (Int_t i=0; i<rc.GetSize(); i++)
     547        rc[i] = (*this)[i].IsUncalibrated(typ) ? 0 : 1;
     548
     549    return rc;
    527550}
    528551
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.h

    r8149 r8279  
     1/* ======================================================================== *\
     2!  $Name: not supported by cvs2svn $:$Id: MBadPixelsCam.h,v 1.11 2007-01-30 14:16:44 tbretz Exp $
     3\* ======================================================================== */
    14#ifndef MARS_MBadPixelsCam
    25#define MARS_MBadPixelsCam
     
    912#endif
    1013
     14class TArrayC;
     15class TClonesArray;
     16
    1117class MGeomPix;
    12 class TClonesArray;
    1318
    1419class MBadPixelsCam : public MParContainer, public MCamEvent
     
    5055    Short_t GetNumMaxCluster(const MGeomCam &geom, Int_t aidx=-1) { return GetNumMaxCluster(MBadPixelsPix::kUnsuitableRun, geom, aidx); }
    5156
     57    TArrayC GetUnsuitable(MBadPixelsPix::UnsuitableType_t typ=MBadPixelsPix::kUnsuitable) const;
     58    TArrayC GetUncalibrated(MBadPixelsPix::UncalibratedType_t typ) const;
     59
    5260    void   AsciiRead(istream &fin);
    5361    Bool_t AsciiWrite(ostream &out) const;
Note: See TracChangeset for help on using the changeset viewer.