- Timestamp:
- 01/26/04 15:25:08 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2913 r2914 4 4 5 5 -*-*- END OF LINE -*-*- 6 7 6 2004/01/26: Markus Gaug 8 7 9 * manalysis/MArrivalTime.[h,cc]: 10 * manalysis/MArrivalTimeCalc.[h,cc]: 8 * manalysis/MArrivalTime.[h,cc], manalysis/MArrivalTimeCalc.[h,cc]: 11 9 - moved calculation of arrival time from MArrivalTime to 12 MArrivalTimeCalc. MArrivalTime does not do any Process -job any13 more10 MArrivalTimeCalc. MArrivalTime does not do any Process-job 11 anymore 14 12 - TSpline5 now on stack. 15 13 16 14 * mcalib/MHCalibrationBlindPixel.[h,cc]: 17 15 - force mu_0 in Blind Pixel Fit to be around 0 in fKPoisson4 16 18 17 19 18 2004/01/26: Thomas Bretz … … 34 33 - fixed usage of InitSize 35 34 - removed CleanArray. Reset() is called automatically before Process() 35 36 * manalysis/MExtractedSignalCam.[h,cc]: 37 - added SetLogStream 38 - removed obsolete include MGeomCam 39 - replaced PrintOut by Print 40 - added const-qualifiers to all Getters 41 - fixed documentation 42 43 * manalysis/MExtractedSignalPix.[h,cc]: 44 - replaced PrintOut by Print 45 - fixed documentation 36 46 37 47 -
trunk/MagicSoft/Mars/manalysis/MExtractedSignalCam.cc
r2640 r2914 19 19 ! Author(s): Thomas Bretz 12/2003 <mailto:tbretz@astro.uni-wuerzburg.de> 20 20 ! 21 ! Copyright: MAGIC Software Development, 2000-200 321 ! Copyright: MAGIC Software Development, 2000-2004 22 22 ! 23 23 ! … … 25 25 26 26 ///////////////////////////////////////////////////////////////////////////// 27 // //28 // MExtractedSignalCam //29 // //30 // Hold the Extracted Signal information for all pixels in the camera //31 // //27 // 28 // MExtractedSignalCam 29 // 30 // Hold the Extracted Signal information for all pixels in the camera 31 // 32 32 ///////////////////////////////////////////////////////////////////////////// 33 33 #include "MExtractedSignalCam.h" 34 #include "MExtractedSignalPix.h"35 34 36 35 #include <TClonesArray.h> … … 39 38 #include "MLogManip.h" 40 39 41 #include "M GeomCam.h"40 #include "MExtractedSignalPix.h" 42 41 43 42 ClassImp(MExtractedSignalCam); … … 55 54 56 55 fArray = new TClonesArray("MExtractedSignalPix", 1); 57 58 56 } 59 57 … … 65 63 { 66 64 delete fArray; 65 } 66 67 // -------------------------------------------------------------------------- 68 // 69 // Distribute logging stream to all childs 70 // 71 void MExtractedSignalCam::SetLogStream(MLog *lg) 72 { 73 fArray->ForEach(MParContainer, SetLogStream)(lg); 74 MParContainer::SetLogStream(lg); 67 75 } 68 76 … … 87 95 // -------------------------------------------------------------------------- 88 96 // 89 // Get i-th pixel (pixel number)97 // Get i-th pixel (pixel index) 90 98 // 91 99 MExtractedSignalPix &MExtractedSignalCam::operator[](Int_t i) … … 96 104 // -------------------------------------------------------------------------- 97 105 // 98 // Get i-th pixel (pixel number)106 // Get i-th pixel (pixel index) 99 107 // 100 MExtractedSignalPix &MExtractedSignalCam::operator[](Int_t i) const108 const MExtractedSignalPix &MExtractedSignalCam::operator[](Int_t i) const 101 109 { 102 110 return *static_cast<MExtractedSignalPix*>(fArray->UncheckedAt(i)); 103 111 } 104 105 112 106 113 void MExtractedSignalCam::Clear(Option_t *o) … … 112 119 { 113 120 *fLog << all << GetDescriptor() << ":" << endl; 114 int id = 0;121 int idx = -1; 115 122 116 123 TIter Next(fArray); … … 118 125 while ((pix=(MExtractedSignalPix*)Next())) 119 126 { 120 id ++;127 idx++; 121 128 122 129 if (!pix->IsValid()) 123 130 continue; 124 131 125 *fLog << id -1 << ": " << endl;126 pix->Print Out();132 *fLog << idx << ": "; 133 pix->Print(); 127 134 } 128 135 } -
trunk/MagicSoft/Mars/manalysis/MExtractedSignalCam.h
r2806 r2914 25 25 ~MExtractedSignalCam(); 26 26 27 void Print(Option_t *o="") const; 27 28 void Clear(Option_t *o=""); 29 void SetLogStream(MLog *lg); 28 30 29 31 void InitSize(const UInt_t i); 30 32 Int_t GetSize() const; 31 33 32 Byte_t GetNumUsedFADCSlices() 33 Byte_t GetNumUsedHiGainFADCSlices() 34 Byte_t GetNumUsedLoGainFADCSlices() 34 Byte_t GetNumUsedFADCSlices() const { return fLastUsedSliceHiGain-fFirstUsedSliceHiGain+1; } 35 Byte_t GetNumUsedHiGainFADCSlices() const { return fLastUsedSliceHiGain-fFirstUsedSliceHiGain+1; } 36 Byte_t GetNumUsedLoGainFADCSlices() const { return fLastUsedSliceLoGain-fFirstUsedSliceLoGain+1; } 35 37 36 Byte_t GetFirstUsedSliceHiGain() 37 Byte_t GetLastUsedSliceHiGain() 38 Byte_t GetFirstUsedSliceHiGain() const { return fFirstUsedSliceHiGain; } 39 Byte_t GetLastUsedSliceHiGain() const { return fLastUsedSliceHiGain; } 38 40 39 Byte_t GetFirstUsedSliceLoGain() 40 Byte_t GetLastUsedSliceLoGain() 41 Byte_t GetFirstUsedSliceLoGain() const { return fFirstUsedSliceLoGain; } 42 Byte_t GetLastUsedSliceLoGain() const { return fLastUsedSliceLoGain; } 41 43 42 44 void SetUsedFADCSlices(Byte_t firsth, Byte_t lasth, 43 Byte_t firstl, Byte_t lastl)45 Byte_t firstl, Byte_t lastl) 44 46 { 45 47 fFirstUsedSliceHiGain = firsth; … … 50 52 51 53 MExtractedSignalPix &operator[](Int_t i); 52 MExtractedSignalPix &operator[](Int_t i) const; 53 54 void Print(Option_t *o="") const; 54 const MExtractedSignalPix &operator[](Int_t i) const; 55 55 56 56 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const; -
trunk/MagicSoft/Mars/manalysis/MExtractedSignalPix.cc
r2902 r2914 25 25 26 26 ///////////////////////////////////////////////////////////////////////////// 27 // //28 // MExtractedSignalPix //29 // //30 // This is the storage container to hold informations about the pedestal //31 // (offset) value of one Pixel (PMT). //32 // //27 // 28 // MExtractedSignalPix 29 // 30 // This is the storage container to hold informations about the pedestal 31 // (offset) value of one Pixel (PMT). 32 // 33 33 ///////////////////////////////////////////////////////////////////////////// 34 34 #include "MExtractedSignalPix.h" 35 35 36 #include "MLog.h" 36 37 #include "MLogManip.h" … … 39 40 40 41 using namespace std; 42 41 43 static const Float_t gkSignalInitializer = 99999.9; 44 45 // ------------------------------------------------------------------------ 42 46 // 43 47 // MExtractedSignalPix holds the extracted signal (HiGain and LoGain) … … 57 61 fNumLoGainSaturated(0) 58 62 { 59 60 63 fName = name ? name : "MExtractedSignalPix"; 61 64 fTitle = title ? title : "Container of the Extracted Signals"; 62 63 65 } 64 65 66 66 67 67 // ------------------------------------------------------------------------ … … 71 71 void MExtractedSignalPix::Clear(Option_t *o) 72 72 { 73 74 73 fExtractedSignalHiGain = gkSignalInitializer; 75 74 fExtractedSignalHiGainError = gkSignalInitializer; … … 78 77 79 78 fIsLoGainUsed = kFALSE; 79 80 80 fNumHiGainSaturated = 0; 81 81 fNumLoGainSaturated = 0; 82 83 82 } 84 83 85 84 void MExtractedSignalPix::SetExtractedSignal(Float_t sig, Float_t sigerr) 86 85 { 87 88 86 fExtractedSignalHiGain = sig; 89 87 fExtractedSignalHiGainError = sigerr; 90 91 return;92 88 } 93 94 89 95 90 void MExtractedSignalPix::SetExtractedSignal(Float_t sighi, Float_t sighierr, … … 100 95 fExtractedSignalLoGain = siglo; 101 96 fExtractedSignalLoGainError = sigloerr; 102 103 return;104 97 } 105 98 106 99 Bool_t MExtractedSignalPix::IsValid() const 107 100 { 108 109 return fExtractedSignalHiGain >= 0. || fExtractedSignalHiGainError >= 0.; 110 101 return fExtractedSignalHiGain >= 0. || fExtractedSignalHiGainError >= 0.; 111 102 } 112 113 103 114 104 void MExtractedSignalPix::SetGainSaturation(Bool_t sat, Byte_t higain, Byte_t logain) … … 118 108 fNumHiGainSaturated = higain; 119 109 fNumLoGainSaturated = logain; 120 121 return;122 123 110 } 124 111 125 126 127 void MExtractedSignalPix::PrintOut() 112 void MExtractedSignalPix::Print(Option_t *o) const 128 113 { 129 130 *fLog << all << GetDescriptor() << ":" << endl; 131 132 *fLog << " Signal: " << fExtractedSignalHiGain 133 << " +- " << fExtractedSignalHiGainError 134 << " LoGain? " << fIsLoGainUsed 135 << " Nr. Sat. Hi Gain: " << fNumHiGainSaturated 136 << " Nr. Sat. Lo Gain: " << fNumLoGainSaturated 137 << endl; 138 114 *fLog << " Signal: " << fExtractedSignalHiGain 115 << " +- " << fExtractedSignalHiGainError 116 << " LoGain? " << fIsLoGainUsed 117 << " Nr. Sat. Hi Gain: " << fNumHiGainSaturated 118 << " Nr. Sat. Lo Gain: " << fNumLoGainSaturated 119 << endl; 139 120 } 140 -
trunk/MagicSoft/Mars/manalysis/MExtractedSignalPix.h
r2902 r2914 9 9 { 10 10 private: 11 12 11 Float_t fExtractedSignalHiGain; // mean value of the extracted signal 13 12 Float_t fExtractedSignalHiGainError; // error of the mean value of the extracted signal … … 20 19 21 20 public: 22 23 21 MExtractedSignalPix(const char* name=NULL, const char* title=NULL); 24 22 25 23 void Clear(Option_t *o=""); 24 void Print(Option_t *o="") const; 26 25 27 26 // Setter … … 42 41 Bool_t IsValid() const; 43 42 44 void PrintOut();45 46 43 ClassDef(MExtractedSignalPix, 0) // Storage Container for Extracted Signal information of one pixel 47 44 }; 48 45 49 46 #endif 50
Note:
See TracChangeset
for help on using the changeset viewer.