Changeset 3671 for trunk/MagicSoft/Mars/mcalib/MCalibrationPix.cc
- Timestamp:
- 04/06/04 16:54:53 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationPix.cc
r3648 r3671 127 127 // -------------------------------------------------------------------------- 128 128 // 129 // Get the Relative Variance of either High Gain or Low Gain Mean 130 // depending on IsHighGainSaturation() 131 // 132 // If variance is smaller than 0. return -1. 133 // 134 Float_t MCalibrationPix::GetMeanRelVar() const 135 { 136 137 if (IsHiGainSaturation()) 138 if (fLoGainMeanVar < 0.) 139 return -1.; 140 else 141 return fLoGainMeanVar / (fLoGainMean * fLoGainMean); 142 else 143 if (fHiGainMeanVar < 0.) 144 return -1.; 145 else 146 return fHiGainMeanVar / (fHiGainMean * fHiGainMean); 147 } 148 149 // -------------------------------------------------------------------------- 150 // 151 // Get the Relative Variance of either High Gain or Low Gain Sigma 152 // depending on IsHighGainSaturation() 153 // 154 // If variance is smaller than 0. return -1. 155 // 156 Float_t MCalibrationPix::GetSigmaRelVar() const 157 { 158 159 if (IsHiGainSaturation()) 160 if (fLoGainSigmaVar < 0.) 161 return -1.; 162 else 163 return fLoGainSigmaVar / (fLoGainSigma * fLoGainSigma); 164 else 165 if (fHiGainSigmaVar < 0.) 166 return -1.; 167 else 168 return fHiGainSigmaVar / (fHiGainSigma * fHiGainSigma); 169 } 170 171 // -------------------------------------------------------------------------- 172 // 129 173 // Get the High Gain Mean Error: Takes square root of fHiGainMeanVar 130 174 // 131 175 Float_t MCalibrationPix::GetHiGainMeanErr() const 132 176 { 133 return TMath::Sqrt(fHiGainMeanVar); 134 } 177 if (fLoGainMeanVar < 0.) 178 return -1.; 179 180 return TMath::Sqrt(fLoGainMeanVar); 181 } 182 135 183 136 184 // -------------------------------------------------------------------------- … … 140 188 Float_t MCalibrationPix::GetHiGainSigmaErr() const 141 189 { 190 if (fHiGainSigmaVar < 0.) 191 return -1.; 192 142 193 return TMath::Sqrt(fHiGainSigmaVar); 143 194 } … … 145 196 // -------------------------------------------------------------------------- 146 197 // 147 // Get the Low Gain Mean Error: Takes square root of f HiGainMeanVar198 // Get the Low Gain Mean Error: Takes square root of fLoGainMeanVar 148 199 // 149 200 Float_t MCalibrationPix::GetLoGainMeanErr() const 150 201 { 202 if (fLoGainMeanVar < 0.) 203 return -1.; 204 151 205 return TMath::Sqrt(fLoGainMeanVar); 152 206 } 153 207 154 155 208 // -------------------------------------------------------------------------- 156 209 // … … 159 212 Float_t MCalibrationPix::GetLoGainSigmaErr() const 160 213 { 214 if (fLoGainSigmaVar < 0.) 215 return -1.; 216 161 217 return TMath::Sqrt(fLoGainSigmaVar); 162 218 } … … 168 224 Bool_t MCalibrationPix::IsHiGainSaturation() const 169 225 { 170 226 return TESTBIT(fFlags,kHiGainSaturation); 171 227 } 172 228
Note:
See TracChangeset
for help on using the changeset viewer.