Ignore:
Timestamp:
01/30/07 14:16:45 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 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
Note: See TracChangeset for help on using the changeset viewer.