Changeset 2902 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 01/24/04 01:40:03 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MArrivalTime.cc
r2785 r2902 62 62 } 63 63 64 void MArrivalTime::InitSize(Int_t i) 65 { 66 67 if (fData.GetSize() >= i) 68 return; 69 else 70 fData.Set(i); 71 } 72 73 // 74 // Set the arrival time in one pixel 75 // 76 void MArrivalTime::SetTime(Int_t i, Float_t t) 77 { 78 79 if (i < fData.GetSize()) 80 fData.AddAt(t,i); 81 else 82 { 83 fData.Set(i+1); 84 fData.AddAt(t,i); 85 } 86 } 87 64 88 // 65 89 // Calculates the arrival time for each pixel -
trunk/MagicSoft/Mars/manalysis/MArrivalTime.h
r2785 r2902 21 21 class MArrivalTime : public MCamEvent 22 22 { 23 private: 23 24 private: 24 25 TArrayF fData; // Stores the arrival times 25 26 … … 32 33 TArrayS fCluster; // Idxs of the pixels in the current cluster 33 34 TArrayS fakeData; //Test purpose 35 34 36 public: 37 35 38 MArrivalTime(const char *name=NULL, const char *title=NULL); 36 39 ~MArrivalTime() { } … … 48 51 Short_t idx, Short_t *dimCluster); 49 52 53 void SetTime(Int_t i, Float_t time); 54 void InitSize(Int_t i); 55 50 56 const TArrayF &GetData() const { return fData; } 51 57 -
trunk/MagicSoft/Mars/manalysis/MExtractedSignalPix.cc
r2768 r2902 72 72 { 73 73 74 fExtractedSignalHiGain = gkSignalInitializer;74 fExtractedSignalHiGain = gkSignalInitializer; 75 75 fExtractedSignalHiGainError = gkSignalInitializer; 76 fExtractedSignalLoGain = gkSignalInitializer;76 fExtractedSignalLoGain = gkSignalInitializer; 77 77 fExtractedSignalLoGainError = gkSignalInitializer; 78 78 … … 82 82 83 83 } 84 85 void MExtractedSignalPix::SetExtractedSignal(Float_t sig, Float_t sigerr) 86 { 87 88 fExtractedSignalHiGain = sig; 89 fExtractedSignalHiGainError = sigerr; 90 91 return; 92 } 93 94 95 void MExtractedSignalPix::SetExtractedSignal(Float_t sighi, Float_t sighierr, 96 Float_t siglo, Float_t sigloerr) 97 { 98 fExtractedSignalHiGain = sighi; 99 fExtractedSignalHiGainError = sighierr; 100 fExtractedSignalLoGain = siglo; 101 fExtractedSignalLoGainError = sigloerr; 102 103 return; 104 } 105 106 Bool_t MExtractedSignalPix::IsValid() const 107 { 108 109 return fExtractedSignalHiGain >= 0. || fExtractedSignalHiGainError >= 0.; 110 111 } 112 113 114 void MExtractedSignalPix::SetGainSaturation(Bool_t sat, Byte_t higain, Byte_t logain) 115 { 116 117 fIsLoGainUsed = sat; 118 fNumHiGainSaturated = higain; 119 fNumLoGainSaturated = logain; 120 121 return; 122 123 } 124 125 84 126 85 127 void MExtractedSignalPix::PrintOut() -
trunk/MagicSoft/Mars/manalysis/MExtractedSignalPix.h
r2845 r2902 19 19 Byte_t fNumLoGainSaturated; 20 20 21 // FIXME: Will be removed. Must be stored in MArrivalTime22 Float_t fMeanArrivalTime;23 Float_t fWidthArrivalTime;24 Float_t fTailArrivalTime;25 26 21 public: 27 22 … … 31 26 32 27 // Setter 33 void SetExtractedSignal(Float_t sig, Float_t sigerr) 34 { 35 fExtractedSignalHiGain = sig; fExtractedSignalHiGainError = sigerr; 36 } 37 38 void SetExtractedSignal(Float_t sighi, Float_t sighierr,Float_t siglo, Float_t sigloerr) 39 { 40 fExtractedSignalHiGain = sighi; 41 fExtractedSignalHiGainError = sighierr; 42 fExtractedSignalLoGain = siglo; 43 fExtractedSignalLoGainError = sigloerr; 44 } 45 46 void SetGainSaturation(Bool_t sat, Byte_t higain, Byte_t logain) 47 { 48 fIsLoGainUsed = sat; fNumHiGainSaturated = higain; fNumLoGainSaturated = logain; 49 } 50 51 void SetArrivalTimes(Float_t mean, Float_t width, Float_t tail) 52 { 53 fMeanArrivalTime = mean; fWidthArrivalTime = width; fTailArrivalTime = tail; 54 } 28 void SetExtractedSignal(Float_t sig, Float_t sigerr); 29 void SetExtractedSignal(Float_t sighi, Float_t sighierr,Float_t siglo, Float_t sigloerr); 30 void SetGainSaturation(Bool_t sat, Byte_t higain, Byte_t logain); 55 31 56 32 // Getter … … 61 37 Float_t GetExtractedSignalLoGainError() const { return fExtractedSignalLoGainError; } 62 38 63 Float_t GetMeanArrivalTime() const { return fMeanArrivalTime; }64 Float_t GetWidthArrivalTime() const { return fWidthArrivalTime; }65 Float_t GetTailArrivalTime() const { return fTailArrivalTime; }66 67 39 Byte_t GetNumLoGainSaturated() const { return fNumLoGainSaturated; } 68 40 69 41 Bool_t IsLoGainUsed() const { return fIsLoGainUsed; } 70 Bool_t IsValid() const { return fExtractedSignalHiGain >= 0. || fExtractedSignalHiGainError >= 0.; }42 Bool_t IsValid() const; 71 43 72 44 void PrintOut();
Note:
See TracChangeset
for help on using the changeset viewer.