Changeset 2660
- Timestamp:
- 12/11/03 21:53:53 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/calibration.C
r2642 r2660 105 105 read2.DisableAutoScheme(); 106 106 107 MExtractSignal sigsig; 108 MCalibrationCalc calcalc; 109 // calcalc.SetSkipTFits(); 107 MExtractSignal sigsig; 108 MCalibrationCalc calcalc; 110 109 MExtractedSignalCam sigcam; 111 110 … … 170 169 MHCamera disp6 (geomcam, "MCalibrationCam;t", "Arrival Times"); 171 170 MHCamera disp7 (geomcam, "MCalibrationCam;sigmat", "Sigma of Arrival Times"); 172 MHCamera disp8 (geomcam, "MCalibrationCam;probt", " Probabilityof Time Fit");171 MHCamera disp8 (geomcam, "MCalibrationCam;probt", "Chi Square of Time Fit"); 173 172 MHCamera disp9 (geomcam, "MCalibrationCam;ped", "Pedestals"); 174 173 MHCamera disp10 (geomcam, "MCalibrationCam;pedrms", "Pedestal RMS"); … … 214 213 disp6.SetYTitle("T [FADC slices]"); 215 214 disp7.SetYTitle("\\Delta T [FADC slices]"); 216 disp8.SetYTitle(" P[au]");215 disp8.SetYTitle("\\Chi^2 T [au]"); 217 216 disp9.SetYTitle("P [Total FADC counts ]"); 218 217 disp10.SetYTitle("RMS_{P} [Total FADC counts ]"); -
trunk/MagicSoft/Mars/manalysis/MCalibrationCalc.cc
r2658 r2660 345 345 pix.SetChargesInGraph(sumhi,sumlo); 346 346 347 if (!pix.FillRChargevsTimeLoGain(sumlo,fEvents)) 348 *fLog << warn << "Could not fill Lo Gain Charge vs. EvtNr of pixel: " 349 << pixid << " signal = " << sumlo << " event Nr: " << fEvents << endl; 350 351 if (!pix.FillRChargevsTimeHiGain(sumhi,fEvents)) 352 *fLog << warn << "Could not fill Hi Gain Charge vs. EvtNr of pixel: " 353 << pixid << " signal = " << sumhi << " event Nr: " << fEvents << endl; 354 347 355 if (logain) 348 356 { … … 355 363 *fLog << warn << "Could not fill Lo Gain Time of pixel: " 356 364 << pixid << " time = " << mtime << endl; 357 358 if (!pix.FillRChargevsTimeLoGain(sumlo,fEvents))359 *fLog << warn << "Could not fill Lo Gain Charge vs. EvtNr of pixel: "360 << pixid << " signal = " << sumlo << " event Nr: " << fEvents << endl;361 365 362 366 } … … 371 375 << pixid << " time = " << mtime << endl; 372 376 373 if (!pix.FillRChargevsTimeHiGain(sumhi,fEvents))374 *fLog << warn << "Could not fill Hi Gain Charge vs. EvtNr of pixel: "375 << pixid << " signal = " << sumhi << " event Nr: " << fEvents << endl;376 377 } 377 378 break; -
trunk/MagicSoft/Mars/manalysis/MCalibrationCam.cc
r2642 r2660 405 405 { 406 406 407 if (idx > GetSize()) 408 return kFALSE; 409 407 410 switch (type) 408 411 { … … 429 432 break; 430 433 case 7: 431 val = (*this)[idx].GetTime Prob();434 val = (*this)[idx].GetTimeChiSquare(); 432 435 break; 433 436 case 8: … … 438 441 break; 439 442 case 10: 440 val = TMath::Sqrt((*this)[idx].GetRSigmaSquare()); 443 if ((*this)[idx].GetRSigmaSquare() > 0.) 444 val = TMath::Sqrt((*this)[idx].GetRSigmaSquare()); 445 else 446 val = -1.; 441 447 break; 442 448 case 15: -
trunk/MagicSoft/Mars/manalysis/MCalibrationCam.h
r2642 r2660 22 22 #endif 23 23 24 #ifndef ROOT_TH1F 25 #include <TH1F.h> 26 #endif 24 27 25 28 class MGeomCam; … … 41 44 Float_t fMeanNrPhotInnerPix; // The mean number of photons in an inner pixel 42 45 Float_t fMeanNrPhotInnerPixErr; // The uncertainty about the number of photons in an inner pixel 46 47 TH1F* fHChargeAllPixels; 48 TH1F* fHChargeErrAllPixels; 49 TH1F* fHChargeSigmaAllPixels; 50 TH1F* fHChargeProbAllPixels; 51 52 TH1F* fHTimeAllPixels; 53 TH1F* fHTimeSigmaAllPixels; 54 TH1F* fHTimeProbAllPixels; 55 56 TH1F* fHPedAllPixels; 57 TH1F* fHPedRMSAllPixels; 58 59 TH1F* fHSigmaPerChargeAllPixels; 60 TH1F* fHPhEAllPixels; 61 62 TH1F* fHConvPhEperFADCAllPixels; 63 TH1F* fHConvPhperFADCAllPixels; 43 64 44 65 public: -
trunk/MagicSoft/Mars/manalysis/MCalibrationPix.cc
r2658 r2660 56 56 fTime(-1.), 57 57 fSigmaTime(-1.), 58 fTime Prob(-1.),58 fTimeChiSquare(-1.), 59 59 fFactor(1.3), 60 60 fPheFFactorMethod(-1.), … … 201 201 } 202 202 203 fTime = fHist->GetTimeMean();204 fSigmaTime = fHist->GetTimeSigma();205 fTime Prob = fHist->GetTimeProb();203 fTime = fHist->GetTimeMean(); 204 fSigmaTime = fHist->GetTimeSigma(); 205 fTimeChiSquare = fHist->GetTimeChiSquare(); 206 206 207 207 return kTRUE; -
trunk/MagicSoft/Mars/manalysis/MCalibrationPix.h
r2642 r2660 26 26 Float_t fTime; // The mean arrival time after the fit 27 27 Float_t fSigmaTime; // The error of the mean arrival time after the fit 28 Float_t fTime Prob;// The probability of the fit function28 Float_t fTimeChiSquare; // The probability of the fit function 29 29 30 30 Float_t fFactor; // The laboratory F-factor … … 53 53 Float_t GetSigmaCharge() const { return fSigmaCharge; } 54 54 Float_t GetErrSigmaCharge() const { return fErrSigmaCharge; } 55 Float_t GetTime() const { return fTime; }56 Float_t GetSigmaTime() const { return fSigmaTime; }57 Float_t GetTime Prob() const { return fTimeProb;}55 Float_t GetTime() const { return fTime; } 56 Float_t GetSigmaTime() const { return fSigmaTime; } 57 Float_t GetTimeChiSquare() const { return fTimeChiSquare; } 58 58 59 Float_t GetPed() const { return fPed; }60 Float_t GetPedRms() const { return fPedRms; }59 Float_t GetPed() const { return fPed; } 60 Float_t GetPedRms() const { return fPedRms; } 61 61 62 62 void SetPedestal(Float_t ped, Float_t pedrms); -
trunk/MagicSoft/Mars/manalysis/MExtractSignal.cc
r2658 r2660 211 211 212 212 sumLo += *ptr; 213 213 214 if (*ptr >= fSaturationLimit) 214 215 { … … 219 220 } 220 221 } 222 221 223 pix.SetExtractedSignal((float)sumHi - pedes*(float)fNumHiGainSamples, 222 224 pedrms*fSqrtHiGainSamples, -
trunk/MagicSoft/Mars/mhist/MHCalibrationPixel.cc
r2658 r2660 431 431 c->cd(3); 432 432 gROOT->SetSelectedPad(NULL); 433 gStyle->SetOptFit(); 433 434 fHiGainvsLoGain->DrawClone("Apq")->SetBit(kCanDelete); 435 fHiGainvsLoGain->Fit("p1","q"); 434 436 gPad->Modified(); 435 437 gPad->Update(); … … 464 466 465 467 gROOT->SetSelectedPad(NULL); 468 gStyle->SetOptFit(); 466 469 fHiGainvsLoGain->DrawClone("Apq")->SetBit(kCanDelete); 470 fHiGainvsLoGain->Fit("p1","q"); 467 471 gPad->Modified(); 468 472 gPad->Update(); … … 493 497 if (fTimeGausFit) 494 498 { 495 if (fTime Prob > gkProbLimit)499 if (fTimeChisquare > 20.) 496 500 fTimeGausFit->SetLineColor(kRed); 497 501 else … … 507 511 if (fTimeGausFit) 508 512 { 509 if (fTime Prob > gkProbLimit)513 if (fTimeChisquare > 20.) 510 514 fTimeGausFit->SetLineColor(kRed); 511 515 else … … 588 592 fTimeSigma = fTimeGausFit->GetParameter(2); 589 593 590 if (fTime Prob < gkProbLimit)594 if (fTimeChisquare > 20.) // Cannot use Probability because Ndf is sometimes < 1 591 595 { 592 596 *fLog << warn << "Fit of the Arrival times failed ! " << endl; … … 644 648 fTimeSigma = fTimeGausFit->GetParameter(2); 645 649 646 if (fTime Prob < gkProbLimit)650 if (fTimeChisquare > 20.) // Cannot use Probability because Ndf is sometimes < 1 647 651 { 648 652 *fLog << warn << "Fit of the Arrival times failed ! " << endl;
Note:
See TracChangeset
for help on using the changeset viewer.