Changeset 6721 for trunk/MagicSoft/Mars/mhcalib
- Timestamp:
- 03/03/05 17:02:56 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc
r6705 r6721 154 154 const TString MHCalibrationPulseTimeCam::gsHistXTitle = "Time [FADC slices]"; 155 155 const TString MHCalibrationPulseTimeCam::gsHistYTitle = "Nr. events"; 156 const TString MHCalibrationPulseTimeCam::fgReferenceFile = "mjobs/ calibrationref.rc";156 const TString MHCalibrationPulseTimeCam::fgReferenceFile = "mjobs/signalref.rc"; 157 157 // -------------------------------------------------------------------------- 158 158 // … … 546 546 option.ToLower(); 547 547 548 //549 // From here on , the datacheck - Draw550 //551 548 TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas(this); 552 549 pad->SetBorderMode(0); … … 578 575 579 576 gPad->SetTicks(); 580 if (!pix.IsEmpty() && !pix.IsOnlyOverflow() && !pix.IsOnlyUnderflow())581 gPad->SetLogy();582 577 583 578 TH1F *hist = pix.GetHGausHist(); … … 586 581 pix.GetFirst() > 0. ? pix.GetFirst() : 0., 587 582 pix.GetLast() > pix.GetFirst() 588 ? ( pix.GetLast() > 450. 589 ? ( fColor == MCalibrationCam::kBLUE ? 800. : 450. ) 590 : pix.GetLast() ) 591 : pix.GetFirst()*2.); 583 ? pix.GetLast() : pix.GetFirst()*2.); 592 584 593 585 null->SetMaximum(1.1*hist->GetMaximum()); 594 586 null->SetDirectory(NULL); 595 587 null->SetBit(kCanDelete); 596 null->SetStats(kFALSE);597 588 // 598 589 // set the labels bigger … … 602 593 xaxe->CenterTitle(); 603 594 yaxe->CenterTitle(); 604 xaxe->SetTitleSize(0.0 7);605 yaxe->SetTitleSize(0.07 );606 xaxe->SetTitleOffset(0. 7);607 yaxe->SetTitleOffset(0. 55);595 xaxe->SetTitleSize(0.06); 596 yaxe->SetTitleSize(0.076); 597 xaxe->SetTitleOffset(0.6); 598 yaxe->SetTitleOffset(0.65); 608 599 xaxe->SetLabelSize(0.06); 609 600 yaxe->SetLabelSize(0.06); … … 614 605 hist->Draw("same"); 615 606 616 gStyle->SetOptFit();617 618 TF1 *fit = pix.GetFGausFit();619 620 if (fit)621 {622 switch ( fColor )623 {624 case MCalibrationCam::kGREEN:625 fit->SetLineColor(kGreen);626 break;627 case MCalibrationCam::kBLUE:628 fit->SetLineColor(kBlue);629 break;630 case MCalibrationCam::kUV:631 fit->SetLineColor(106);632 break;633 case MCalibrationCam::kCT1:634 fit->SetLineColor(006);635 break;636 default:637 fit->SetLineColor(kRed);638 }639 fit->Draw("same");640 }641 642 607 DisplayRefLines(null,refline); 643 608 … … 649 614 { 650 615 651 TGraph * uv10= new TGraph(2);652 uv10->SetPoint(0,refline,0.);653 uv10->SetPoint(1,refline,hist->GetMaximum());654 uv10->SetBit(kCanDelete);655 uv10->SetLineColor(106);656 uv10->SetLineStyle(2);657 uv10->SetLineWidth(3);658 uv10->Draw("L");659 660 TLegend *leg = new TLegend(0.8,0. 55,0.99,0.99);616 TGraph *gr = new TGraph(2); 617 gr->SetPoint(0,refline,0.); 618 gr->SetPoint(1,refline,hist->GetMaximum()); 619 gr->SetBit(kCanDelete); 620 gr->SetLineColor(106); 621 gr->SetLineStyle(2); 622 gr->SetLineWidth(3); 623 gr->Draw("L"); 624 625 TLegend *leg = new TLegend(0.8,0.35,0.99,0.65); 661 626 leg->SetBit(kCanDelete); 662 leg->AddEntry( uv10,"10 Leds UV","l");627 leg->AddEntry(gr,"Reference","l"); 663 628 664 629 leg->Draw();
Note:
See TracChangeset
for help on using the changeset viewer.