Changeset 5739 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 01/08/05 11:33:28 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractedSignalCam.h
r5601 r5739 16 16 { 17 17 private: 18 TClonesArray *fArray; //-> FIXME: Change TClonesArray away from a pointer?19 18 20 Byte_t fFirstUsedSliceHiGain; 21 Byte_t fFirstUsedSliceLoGain; 19 TClonesArray *fArray; //-> FIXME: Change TClonesArray away from a pointer? 22 20 23 Byte_t fLastUsedSliceHiGain; 24 Byte_t fLastUsedSliceLoGain; 21 Byte_t fFirstUsedSliceHiGain; // First High Gain FADC used for extraction (incl.) 22 Byte_t fFirstUsedSliceLoGain; // First Low Gain FADC used for extraction (incl.) 23 24 Byte_t fLastUsedSliceHiGain; // Last High Gain FADC used for extraction (incl.) 25 Byte_t fLastUsedSliceLoGain; // Last Low Gain FADC used for extraction (incl.) 26 27 Float_t fUsedWindowHiGain; // High Gain FADC extraction window 28 Float_t fUsedWindowLoGain; // Low Gain FADC extraction window 25 29 26 Float_t fUsedWindowHiGain; 27 Float_t fUsedWindowLoGain; 28 30 Int_t fNdf; // Number of degrees of freedom for a possible fit 31 29 32 public: 30 33 … … 32 35 ~MExtractedSignalCam(); 33 36 34 void Print(Option_t *o="") const; 35 void Clear(Option_t *o=""); 36 void SetLogStream(MLog *lg); 37 void Reset() { Clear(); } 37 void Print(Option_t *o="") const; 38 void Clear(Option_t *o=""); 39 void Reset() { Clear(); } 38 40 39 void InitSize(const UInt_t i);40 Int_t GetSize() const;41 void InitSize(const UInt_t i); 42 Int_t GetSize () const; 41 43 42 Float_t GetNumUsedHiGainFADCSlices() const { return fUsedWindowHiGain; }43 Float_t GetNumUsedLoGainFADCSlices() const { return fUsedWindowLoGain; }44 Byte_t GetFirstUsedSliceHiGain() const { return fFirstUsedSliceHiGain; } 45 Byte_t GetFirstUsedSliceLoGain() const { return fFirstUsedSliceLoGain; } 44 46 45 Byte_t GetFirstUsedSliceHiGain() const { return fFirstUsedSliceHiGain;}46 Byte_t GetFirstUsedSliceLoGain() const { return fFirstUsedSliceLoGain;}47 Byte_t GetLastUsedSliceHiGain() const { return fLastUsedSliceHiGain; } 48 Byte_t GetLastUsedSliceLoGain() const { return fLastUsedSliceLoGain; } 47 49 48 Byte_t GetLastUsedSliceHiGain() const { return fLastUsedSliceHiGain;}49 Byte_t GetLastUsedSliceLoGain() const { return fLastUsedSliceLoGain;}50 Float_t GetNumUsedHiGainFADCSlices() const { return fUsedWindowHiGain; } 51 Float_t GetNumUsedLoGainFADCSlices() const { return fUsedWindowLoGain; } 50 52 51 void SetUsedFADCSlices(Byte_t firsth, Byte_t lasth, Float_t winh, 52 Byte_t firstl, Byte_t lastl, Float_t winl) 53 Float_t GetNdf() const { return fNdf; } 54 Float_t GetProb( const Int_t pixidx) const; 55 56 void SetLogStream ( MLog *lg ); 57 void SetNdf ( Int_t ndf ) { fNdf = ndf; } 58 void SetUsedFADCSlices(Byte_t firsth, Byte_t lasth, Float_t winh, 59 Byte_t firstl, Byte_t lastl, Float_t winl) 53 60 { 54 61 fFirstUsedSliceHiGain = firsth; … … 66 73 void DrawPixelContent(Int_t num) const; 67 74 68 ClassDef(MExtractedSignalCam, 1) // Storage Container for extracted signals in the camera75 ClassDef(MExtractedSignalCam, 2) // Storage Container for extracted signals in the camera 69 76 }; 70 77 -
trunk/MagicSoft/Mars/msignal/MExtractedSignalPix.h
r4274 r5739 9 9 { 10 10 private: 11 11 12 Float_t fExtractedSignalHiGain; // mean value of the extracted signal 12 13 Float_t fExtractedSignalHiGainError; // error of the mean value of the extracted signal … … 14 15 Float_t fExtractedSignalLoGainError; // error of the mean value of the extracted signal 15 16 17 Float_t fChisquare; // Chi-square of a possible fit the pulse 18 16 19 Bool_t fLoGainUsed; 17 20 Byte_t fNumHiGainSaturated; … … 19 22 20 23 public: 21 24 MExtractedSignalPix(const char* name=NULL, const char* title=NULL); 22 25 23 24 26 void Clear(Option_t *o=""); 27 void Print(Option_t *o="") const; 25 28 26 // Setter 27 void SetExtractedSignal(Float_t sig, Float_t sigerr); 28 void SetExtractedSignal(Float_t sighi, Float_t sighierr,Float_t siglo, Float_t sigloerr); 29 void SetGainSaturation(Bool_t sat, Byte_t higain, Byte_t logain); 29 // Setter 30 void SetExtractedSignal( Float_t sig, Float_t sigerr); 31 void SetExtractedSignal( Float_t sighi, Float_t sighierr,Float_t siglo, Float_t sigloerr); 32 void SetGainSaturation ( Bool_t sat, Byte_t higain, Byte_t logain); 33 void SetChisquare ( Float_t chi2 ) { fChisquare = chi2; } 34 35 // Getter 36 Float_t GetExtractedSignalHiGain() const { return fExtractedSignalHiGain; } 37 Float_t GetExtractedSignalHiGainError() const { return fExtractedSignalHiGainError; } 30 38 31 // Getter 32 Float_t GetExtractedSignalHiGain() const { return fExtractedSignalHiGain; } 33 Float_t GetExtractedSignalHiGainError() const { return fExtractedSignalHiGainError; } 39 Float_t GetExtractedSignalLoGain() const { return fExtractedSignalLoGain; } 40 Float_t GetExtractedSignalLoGainError() const { return fExtractedSignalLoGainError; } 34 41 35 Float_t GetExtractedSignalLoGain() const { return fExtractedSignalLoGain;}36 Float_t GetExtractedSignalLoGainError() const { return fExtractedSignalLoGainError;}42 Byte_t GetNumHiGainSaturated() const { return fNumHiGainSaturated; } 43 Byte_t GetNumLoGainSaturated() const { return fNumLoGainSaturated; } 37 44 38 Byte_t GetNumHiGainSaturated() const { return fNumHiGainSaturated; } 39 Byte_t GetNumLoGainSaturated() const { return fNumLoGainSaturated; } 45 Float_t GetChisquare() const { return fChisquare; } 46 47 Bool_t IsLoGainUsed() const { return fLoGainUsed; } 48 Bool_t IsValid() const; 40 49 41 Bool_t IsLoGainUsed() const { return fLoGainUsed; } 42 Bool_t IsValid() const; 43 44 ClassDef(MExtractedSignalPix, 1) // Storage Container for Extracted Signal information of one pixel 50 ClassDef(MExtractedSignalPix, 2) // Storage Container for Extracted Signal information of one pixel 45 51 }; 46 52
Note:
See TracChangeset
for help on using the changeset viewer.