Changeset 8279 for trunk/MagicSoft/Mars/mbadpixels
- Timestamp:
- 01/30/07 14:16:45 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mbadpixels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
r8165 r8279 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MBadPixelsCam.cc,v 1.48 2007-01-30 14:16:44 tbretz Exp $ 3 ! -------------------------------------------------------------------------- 2 4 ! 3 5 ! * … … 17 19 ! 18 20 ! Author(s): Thomas Bretz 1/2004 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! 21 ! Author(s): Markus Gaug 3/2004 <mailto:markus@ifae.es> 20 22 ! 21 23 ! Copyright: MAGIC Software Development, 2000-2004 … … 36 38 #include <iostream> 37 39 40 #include <TArrayC.h> 38 41 #include <TClonesArray.h> 39 42 … … 525 528 PrintBadPixels(MBadPixelsPix::kRelTimeOscillating ,"Relative Arr. Times Oscillation"); 526 529 PrintBadPixels(MBadPixelsPix::kDeviatingFFactor ,"Deviating global F-Factor"); 530 } 531 532 TArrayC 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 542 TArrayC 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; 527 550 } 528 551 -
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 \* ======================================================================== */ 1 4 #ifndef MARS_MBadPixelsCam 2 5 #define MARS_MBadPixelsCam … … 9 12 #endif 10 13 14 class TArrayC; 15 class TClonesArray; 16 11 17 class MGeomPix; 12 class TClonesArray;13 18 14 19 class MBadPixelsCam : public MParContainer, public MCamEvent … … 50 55 Short_t GetNumMaxCluster(const MGeomCam &geom, Int_t aidx=-1) { return GetNumMaxCluster(MBadPixelsPix::kUnsuitableRun, geom, aidx); } 51 56 57 TArrayC GetUnsuitable(MBadPixelsPix::UnsuitableType_t typ=MBadPixelsPix::kUnsuitable) const; 58 TArrayC GetUncalibrated(MBadPixelsPix::UncalibratedType_t typ) const; 59 52 60 void AsciiRead(istream &fin); 53 61 Bool_t AsciiWrite(ostream &out) const;
Note:
See TracChangeset
for help on using the changeset viewer.