Changeset 3105
- Timestamp:
- 02/12/04 00:07:50 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MArray.cc
r1080 r3105 38 38 #include "MArray.h" 39 39 40 #include <TArrayF.h> 41 #include <TArrayD.h> 42 40 43 ClassImp(MArray); 41 44 45 // -------------------------------------------------------------------------- 46 // 47 // Cuts the last entries of an array containing only zeros. 48 // 49 void 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 // 66 void 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 14 14 #endif 15 15 16 class TArrayF; 17 class TArrayD; 16 18 class MArray : public TObject 17 19 { … … 30 32 virtual void Set(UInt_t n) = 0; 31 33 34 static void CutEdges(TArrayF *arr); 35 static void CutEdges(TArrayD *arr); 36 37 32 38 ClassDef(MArray, 1) //Abstract array base class for TObject derived Arrays 33 39 }; -
trunk/MagicSoft/Mars/mfilter/MFCosmics.cc
r3085 r3105 177 177 const Float_t pedrms = ped.GetPedestalRms()*fSqrtHiGainSamples; 178 178 const Float_t sumhi = sig.GetExtractedSignalHiGain(); 179 179 180 180 // 181 181 // We consider a pixel as presumably due to cosmics … … 186 186 } 187 187 188 188 189 // 189 190 // If the camera contains more than fMaxEmptyPixels
Note:
See TracChangeset
for help on using the changeset viewer.