- Timestamp:
- 02/12/04 00:33:23 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3107 r3108 40 40 of inverted events. 41 41 42 * mcalib/MHGausEvent.[h,cc] 43 * mcalib/Makefile 44 * mcalib/CalibLinkDef.h 45 - new base class for all kind of events with variables having a 46 Gaussian distribution. Will serve as base class for the 47 existing and new calibration histogram classes. 42 48 43 49 -
trunk/MagicSoft/Mars/mcalib/CalibLinkDef.h
r2876 r3108 19 19 #pragma link C++ class MMcCalibrationCalc++; 20 20 21 #pragma link C++ class MHGausEvent++; 22 21 23 #endif -
trunk/MagicSoft/Mars/mcalib/MCalibrationCalc.cc
r3107 r3108 465 465 // We need a dedicated signal extractor for the blind pixel 466 466 // 467 MPedestalPix &ped = (*fPedestals)[fBlindPixelId];468 469 467 Int_t diff = 0; 470 468 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationBlindPixel.cc
r3081 r3108 88 88 const Double_t MHCalibrationBlindPixel::fgBlindPixelElectronicAmpError = 0.002; 89 89 90 const Int_t MHCalibrationBlindPixel::fPSDNbins = 30;91 90 const Int_t MHCalibrationBlindPixel::fPSDNbins = 50; 91 const Int_t MHCalibrationBlindPixel::fPulserFrequency = 500; 92 92 // -------------------------------------------------------------------------- 93 93 // … … 113 113 114 114 // Create a large number of bins, later we will rebin 115 fBlindPixelChargefirst = - 200.;116 fBlindPixelChargelast = 800.;115 fBlindPixelChargefirst = -400.; 116 fBlindPixelChargelast = 1600.; 117 117 118 118 fHBlindPixelCharge = new TH1F("HBlindPixelCharge","Distribution of Summed FADC Slices", … … 173 173 fCurrentSize = 1024; 174 174 175 fBlindPixelChargefirst = - 200.;176 fBlindPixelChargelast = 800.;175 fBlindPixelChargefirst = -400.; 176 fBlindPixelChargelast = 1600.; 177 177 178 178 fLambda = 0.; … … 259 259 return IsOscillating(); 260 260 261 // This cuts only the non-used zero's, but MFFT will later cut the rest 262 CutArrayBorder(fHiGains); 263 CutArrayBorder(fLoGains); 264 261 265 MFFT fourier; 262 266 … … 267 271 "PSDProjectionBlindPixel", 268 272 "Power Spectrum Density Projection HiGain Blind Pixel"); 273 269 274 // 270 275 // First guesses for the fit (should be as close to reality as possible, … … 280 285 fPSDExpFit->SetParNames("Offset","Slope"); 281 286 fPSDExpFit->SetParLimits(0,offset_guess/2.,2.*offset_guess); 282 fPSDExpFit->SetParLimits(1,slope_guess/ 2.,2.*slope_guess);287 fPSDExpFit->SetParLimits(1,slope_guess/1.5,1.5*slope_guess); 283 288 fPSDExpFit->SetRange(0.,xmax); 284 289 … … 307 312 308 313 for (Int_t i=0;i<n;i++) 309 fPSDXaxis->AddAt((Float_t)i,i); 314 for (Int_t i=0;i<n;i++) 315 fPSDXaxis->AddAt((Float_t)(fPulserFrequency*i)/2./n,i); 310 316 } 311 317 … … 317 323 fChargeXaxis = new TArrayF(n); 318 324 for (Int_t i=0;i<n;i++) 319 fChargeXaxis->AddAt((Float_t)i ,i);325 fChargeXaxis->AddAt((Float_t)i/fPulserFrequency,i); 320 326 return; 321 327 } … … 328 334 if (diff < 0) 329 335 for (Int_t i=n;i<n+diff;i++) 330 fChargeXaxis->AddAt((Float_t)i ,i);336 fChargeXaxis->AddAt((Float_t)i/fPulserFrequency,i); 331 337 } 332 338 … … 498 504 TCanvas *c = MakeDefCanvas(this,550,700); 499 505 500 c->Divide(2, 4);506 c->Divide(2,5); 501 507 502 508 gROOT->SetSelectedPad(NULL); … … 539 545 fChargeXaxis->GetArray(), 540 546 fHiGains->GetArray()); 541 gr1->SetTitle("Evolution of HiGain charges with event number"); 547 gr1->SetTitle("Evolution of HiGain charges with time"); 548 gr1->GetXaxis()->SetTitle("Time [s]"); 549 gr1->GetYaxis()->SetTitle("Sum FADC slices"); 542 550 gr1->SetBit(kCanDelete); 543 551 gr1->Draw("AL"); … … 551 559 fChargeXaxis->GetArray(), 552 560 fLoGains->GetArray()); 553 gr2->SetTitle("Evolution of HiGain charges with event number"); 561 gr2->SetTitle("Evolution of LoGain charges with time"); 562 gr2->GetXaxis()->SetTitle("Time [s]"); 563 gr2->GetYaxis()->SetTitle("Sum FADC slices"); 554 564 gr2->SetBit(kCanDelete); 555 565 gr2->Draw("AL"); … … 571 581 TGraph *gr3 = new TGraph(fPSDXaxis->GetSize(),fPSDXaxis->GetArray(),array->GetArray()); 572 582 gr3->SetTitle("Power Spectrum Density"); 583 gr3->GetXaxis()->SetTitle("Freq. [Hz]"); 584 gr3->GetYaxis()->SetTitle("P(f)"); 573 585 gr3->SetBit(kCanDelete); 574 586 gr3->Draw("AL"); … … 586 598 587 599 fHPSD->Draw(opt); 600 fHPSD->GetXaxis()->SetTitle("P(f)"); 601 fHPSD->GetYaxis()->SetTitle("Counts"); 588 602 589 603 if (fPSDExpFit) … … 593 607 } 594 608 609 c->cd(9); 610 611 array = fPSDLoGain; 612 613 if (!fPSDXaxis) 614 CreatePSDXaxis(array->GetSize()); 615 616 TGraph *gr4 = new TGraph(fPSDXaxis->GetSize(),fPSDXaxis->GetArray(),array->GetArray()); 617 gr4->SetTitle("Power Spectrum Density"); 618 gr4->GetXaxis()->SetTitle("Freq. [Hz]"); 619 gr4->GetYaxis()->SetTitle("P(f)"); 620 gr4->SetBit(kCanDelete); 621 gr4->Draw("AL"); 622 595 623 c->Modified(); 596 624 c->Update(); 597 598 625 } 599 626 … … 892 919 { 893 920 894 Int_t nbins = 20;921 Int_t nbins = 30; 895 922 896 923 CutEdges(fHBlindPixelCharge,nbins); -
trunk/MagicSoft/Mars/mcalib/MHCalibrationBlindPixel.h
r3081 r3108 26 26 27 27 static const Int_t fPSDNbins; 28 static const Int_t fPulserFrequency; 28 29 29 30 TH1F* fHBlindPixelCharge; // Histogram with the single Phe spectrum -
trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.cc
r3087 r3108 62 62 63 63 const Int_t MHCalibrationPixel::fPSDNbins = 30; 64 const Int_t MHCalibrationPixel::fPulserFrequency = 500; 64 65 65 66 // -------------------------------------------------------------------------- … … 316 317 317 318 for (Int_t i=0;i<n;i++) 318 fPSDXaxis->AddAt((Float_t) i,i);319 fPSDXaxis->AddAt((Float_t)(fPulserFrequency*i)/2./n,i); 319 320 } 320 321 … … 326 327 fChargeXaxis = new TArrayF(n); 327 328 for (Int_t i=0;i<n;i++) 328 fChargeXaxis->AddAt((Float_t)i ,i);329 fChargeXaxis->AddAt((Float_t)i/fPulserFrequency,i); 329 330 return; 330 331 } … … 646 647 fChargeXaxis->GetArray(), 647 648 fHiGains->GetArray()); 648 gr1->SetTitle("Evolution of HiGain charges with event number"); 649 gr1->SetTitle("Evolution of HiGain charges with time"); 650 gr1->GetXaxis()->SetTitle("Time [s]"); 651 gr1->GetYaxis()->SetTitle("Sum FADC slices"); 649 652 gr1->SetBit(kCanDelete); 650 653 gr1->Draw("AL"); … … 657 660 fChargeXaxis->GetArray(), 658 661 fLoGains->GetArray()); 659 gr2->SetTitle("Evolution of LoGain charges with event number"); 662 gr2->SetTitle("Evolution of LoGain charges with time"); 663 gr2->GetXaxis()->SetTitle("Time [s]"); 664 gr2->GetYaxis()->SetTitle("Sum FADC slices"); 660 665 gr2->SetBit(kCanDelete); 661 666 gr2->Draw("AL"); … … 689 694 TGraph *gr3 = new TGraph(fPSDXaxis->GetSize(),fPSDXaxis->GetArray(),array->GetArray()); 690 695 gr3->SetTitle(title.Data()); 696 gr3->GetXaxis()->SetTitle("Freq. [Hz]"); 697 gr3->GetYaxis()->SetTitle("P(f)"); 691 698 gr3->SetBit(kCanDelete); 692 699 gr3->Draw("AL"); … … 705 712 706 713 fHPSD->Draw(opt); 714 fHPSD->GetXaxis()->SetTitle("P(f)"); 715 fHPSD->GetYaxis()->SetTitle("Counts"); 707 716 708 717 if (fPSDExpFit) -
trunk/MagicSoft/Mars/mcalib/Makefile
r2876 r3108 45 45 MHCalibrationPINDiode.cc \ 46 46 MHCalibrationPixel.cc \ 47 MMcCalibrationCalc.cc 47 MMcCalibrationCalc.cc \ 48 MHGausEvent.cc 48 49 49 50 SRCS = $(SRCFILES)
Note:
See TracChangeset
for help on using the changeset viewer.