Changeset 3105


Ignore:
Timestamp:
02/12/04 00:07:50 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MArray.cc

    r1080 r3105  
    3838#include "MArray.h"
    3939
     40#include <TArrayF.h>
     41#include <TArrayD.h>
     42
    4043ClassImp(MArray);
    4144
     45// --------------------------------------------------------------------------
     46//
     47//  Cuts the last entries of an array containing only zeros.
     48//
     49void MArray::CutEdges(TArrayD *arr)
     50{
     51 
     52  Int_t i;
     53 
     54  for (i=arr->GetSize()-1;i>=0;i--)
     55    if (arr->At(i) != 0)
     56      {
     57        arr->Set(i+1);
     58        break;
     59      }
     60}
     61
     62// --------------------------------------------------------------------------
     63//
     64//  Cuts the last entries of an array containing only zeros.
     65//
     66void MArray::CutEdges(TArrayF *arr)
     67{
     68 
     69  Int_t i;
     70 
     71  for (i=arr->GetSize()-1;i>=0;i--)
     72    if (arr->At(i) != 0)
     73      {
     74        arr->Set(i+1);
     75        break;
     76      }
     77}
     78
  • trunk/MagicSoft/Mars/mbase/MArray.h

    r1014 r3105  
    1414#endif
    1515
     16class TArrayF;
     17class TArrayD;
    1618class MArray : public TObject
    1719{
     
    3032   virtual void Set(UInt_t n) = 0;
    3133
     34   static void  CutEdges(TArrayF *arr);
     35   static void  CutEdges(TArrayD *arr);       
     36   
     37   
    3238   ClassDef(MArray, 1)  //Abstract array base class for TObject derived Arrays
    3339};
  • trunk/MagicSoft/Mars/mfilter/MFCosmics.cc

    r3085 r3105  
    177177      const Float_t pedrms      = ped.GetPedestalRms()*fSqrtHiGainSamples;
    178178      const Float_t sumhi       = sig.GetExtractedSignalHiGain();
    179          
     179
    180180      //
    181181      // We consider a pixel as presumably due to cosmics
     
    186186    }
    187187 
     188
    188189  //
    189190  // If the camera contains more than fMaxEmptyPixels
Note: See TracChangeset for help on using the changeset viewer.