Changeset 2631 for trunk/MagicSoft/Mars
- Timestamp:
- 12/10/03 11:54:33 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/calibration.C
r2629 r2631 174 174 MHCamera disp14 (geomcam, "MCalibrationCam;photons", "Nr. of Photons (Blind Pixel Method)"); 175 175 MHCamera disp15 (geomcam, "MCalibrationCam;convphot", "Conversion Factor (Blind Pixel Method)"); 176 MHCamera disp16 (geomcam, "MCalibrationCam;sigma/charge", "Sigma per Charge"); 176 177 177 178 disp1.SetCamContent(*cam, 0); … … 199 200 disp14.SetCamContent(*cam, 13); 200 201 disp15.SetCamContent(*cam, 14); 201 // disp16.SetCamError(*cam, 16);202 disp16.SetCamContent(*cam, 15); 202 203 203 204 … … 217 218 disp14.SetYTitle("Nr Photons"); 218 219 disp15.SetYTitle("Conversion Factor [Ph/FADC count]"); 220 disp16.SetYTitle("Sigma per Charge [1]"); 219 221 220 222 disp1.SetPrettyPalette(); … … 231 233 disp14.SetPrettyPalette(); 232 234 disp15.SetPrettyPalette(); 235 disp16.SetPrettyPalette(); 233 236 234 237 … … 322 325 323 326 TCanvas *c4 = &d2->AddTab("Reduced Charges"); 324 c4->Divide(2, 1);327 c4->Divide(2,2); 325 328 326 329 c4->cd(1); … … 330 333 331 334 c4->cd(3); 335 obj->Draw(); 336 337 c4->cd(2); 338 gStyle->SetOptStat(1111); 339 obj=disp16.DrawCopy("hist"); 340 ((MHCamera*)obj)->AddNotify(*cam); 341 342 c4->cd(4); 332 343 obj->Draw(); 333 344 -
trunk/MagicSoft/Mars/manalysis/MCalibrationCalc.cc
r2628 r2631 313 313 else 314 314 mid = pixel.GetIdxMaxHiGainSample(); 315 316 315 317 316 MCalibrationPix &pix = (*fCalibrations)[pixid]; … … 391 390 { 392 391 392 393 393 *fLog << inf << endl; 394 394 *fLog << GetDescriptor() << " Cut Histogram Edges" << endl; -
trunk/MagicSoft/Mars/manalysis/MCalibrationCam.cc
r2627 r2631 439 439 val = (*this)[idx].GetRSigma(); 440 440 break; 441 case 15: 442 val = (*this)[idx].GetSigmaCharge()/(*this)[idx].GetCharge(); 443 break; 441 444 case 11: 442 445 val = (*this)[idx].GetPheFFactorMethod(); -
trunk/MagicSoft/Mars/manalysis/MCalibrationPix.cc
r2629 r2631 60 60 fPheFFactorMethod(-1.), 61 61 fConversionFFactorMethod(-1.), 62 fHiGainSaturation(kFALSE) 62 fHiGainSaturation(kFALSE), 63 fLoGainPedRms(4.) 63 64 { 64 65 … … 137 138 if ((fPed > 0.) && (fPedRms > 0.)) 138 139 { 139 140 fRSigma = (fSigmaCharge*fSigmaCharge) - (fPedRms*fPedRms); 140 141 if (fHiGainSaturation) 142 fRSigma = (fSigmaCharge*fSigmaCharge) - (fLoGainPedRms*fLoGainPedRms); 143 else 144 fRSigma = (fSigmaCharge*fSigmaCharge) - (fPedRms*fPedRms); 141 145 142 146 if (fRSigma > 0. ) -
trunk/MagicSoft/Mars/manalysis/MCalibrationPix.h
r2627 r2631 33 33 34 34 Bool_t fHiGainSaturation; // Is Lo-Gain used at all? 35 36 Float_t fLoGainPedRms; 35 37 36 38 MHCalibrationPixel *fHist; //! Pointer to the histograms performing the fits, etc. -
trunk/MagicSoft/Mars/manalysis/MExtractSignal.cc
r2627 r2631 57 57 // 58 58 MExtractSignal::MExtractSignal(const char *name, const char *title) 59 : fSaturationLimit(25 0),59 : fSaturationLimit(255), 60 60 fConversionHiLo(10.) 61 61 { … … 173 173 UInt_t max = pixel.GetMaxHiGainSample(); 174 174 175 if (max < fSaturationLimit) // take Hi Gain, no saturation175 if (max <= fSaturationLimit) // take Hi Gain, no saturation 176 176 { 177 177 sum = (float)pixel.GetSumHiGainSamples() - pedes*fNumHiGainSamples;
Note:
See TracChangeset
for help on using the changeset viewer.