Changeset 2641 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 12/11/03 14:01:52 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MExtractedSignalPix.cc
r2627 r2641 41 41 42 42 MExtractedSignalPix::MExtractedSignalPix(const char* name, const char* title) 43 : fExtractedSignal(-1.), 44 fExtractedSignalError(-1.), 43 : fExtractedSignalHiGain(-1.), 44 fExtractedSignalHiGainError(-1.), 45 fExtractedSignalLoGain(-1.), 46 fExtractedSignalLoGainError(-1.), 45 47 fIsLoGainUsed(kFALSE), 46 48 fNumHiGainSaturated(0), … … 62 64 { 63 65 64 fExtractedSignal = -1.;65 fExtractedSignal Error = -1.;66 fExtractedSignalHiGain = -1.; 67 fExtractedSignalHiGainError = -1.; 66 68 fIsLoGainUsed = kFALSE; 67 69 fNumHiGainSaturated = 0; … … 75 77 *fLog << all << GetDescriptor() << ":" << endl; 76 78 77 *fLog << " Signal: " << fExtractedSignal 78 << " +- " << fExtractedSignal Error79 *fLog << " Signal: " << fExtractedSignalHiGain 80 << " +- " << fExtractedSignalHiGainError 79 81 << " LoGain? " << fIsLoGainUsed 80 82 << " Nr. Sat. Hi Gain: " << fNumHiGainSaturated -
trunk/MagicSoft/Mars/manalysis/MExtractedSignalPix.h
r2634 r2641 10 10 private: 11 11 12 Float_t fExtractedSignal; // mean value of the extracted signal 13 Float_t fExtractedSignalError; // error of the mean value of the extracted signal 12 Float_t fExtractedSignalHiGain; // mean value of the extracted signal 13 Float_t fExtractedSignalHiGainError; // error of the mean value of the extracted signal 14 Float_t fExtractedSignalLoGain; // mean value of the extracted signal 15 Float_t fExtractedSignalLoGainError; // error of the mean value of the extracted signal 14 16 Bool_t fIsLoGainUsed; 15 17 Byte_t fNumHiGainSaturated; … … 25 27 void Clear(Option_t *o=""); 26 28 27 Float_t GetExtractedSignal() const { return fExtractedSignal; } 28 Float_t GetExtractedSignalError() const { return fExtractedSignalError; } 29 Float_t GetExtractedSignalHiGain() const { return fExtractedSignalHiGain; } 30 Float_t GetExtractedSignalHiGainError() const { return fExtractedSignalHiGainError; } 31 32 Float_t GetExtractedSignalLoGain() const { return fExtractedSignalLoGain; } 33 Float_t GetExtractedSignalLoGainError() const { return fExtractedSignalLoGainError; } 29 34 30 35 Float_t GetMeanArrivalTime() const { return fMeanArrivalTime; } … … 33 38 void SetExtractedSignal(Float_t sig, Float_t sigerr) 34 39 { 35 fExtractedSignal = sig; 36 fExtractedSignalError = sigerr; 40 fExtractedSignalHiGain = sig; 41 fExtractedSignalHiGainError = sigerr; 42 } 43 44 void SetExtractedSignal(Float_t sighi, Float_t sighierr,Float_t siglo, Float_t sigloerr) 45 { 46 fExtractedSignalHiGain = sighi; 47 fExtractedSignalHiGainError = sighierr; 48 fExtractedSignalLoGain = siglo; 49 fExtractedSignalLoGainError = sigloerr; 37 50 } 38 51 … … 49 62 Bool_t IsLoGainUsed() { return fIsLoGainUsed; } 50 63 51 Bool_t IsValid() const { return fExtractedSignal >= 0 || fExtractedSignalError >= 0; }64 Bool_t IsValid() const { return fExtractedSignalHiGain >= 0. || fExtractedSignalHiGainError >= 0.; } 52 65 53 66 void PrintOut();
Note:
See TracChangeset
for help on using the changeset viewer.