- Timestamp:
- 08/16/04 13:06:15 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r4620 r4626 156 156 const Int_t MJCalibration::gkSecondBlindPixelInstallation = 31693; 157 157 const Int_t MJCalibration::gkThirdBlindPixelInstallation = 99999; 158 159 const Double_t MJCalibration::fgConvFADC2PheMin = 0.; 160 const Double_t MJCalibration::fgConvFADC2PheMax = 1.5; 161 const Double_t MJCalibration::fgConvFADC2PhotMin = 0.; 162 const Double_t MJCalibration::fgConvFADC2PhotMax = 10.; 163 const Double_t MJCalibration::fgQEMin = 0.; 164 const Double_t MJCalibration::fgQEMax = 0.3; 165 166 const Float_t MJCalibration::fgRefConvFADC2PheInner = 0.14; 167 const Float_t MJCalibration::fgRefConvFADC2PheOuter = 0.45; 168 const Float_t MJCalibration::fgRefConvFADC2PhotInner = 0.8; 169 const Float_t MJCalibration::fgRefConvFADC2PhotOuter = 3.8; 170 const Float_t MJCalibration::fgRefQEInner = 0.18; 171 const Float_t MJCalibration::fgRefQEOuter = 0.12; 158 172 // -------------------------------------------------------------------------- 159 173 // … … 559 573 // for the datacheck, fix the ranges!! 560 574 // 561 // obj5->SetMinimum(fgChargeMin);562 // obj5->SetMaximum(fgChargeMax);575 obj5->SetMinimum(fgConvFADC2PheMin); 576 obj5->SetMaximum(fgConvFADC2PheMax); 563 577 // 564 578 // Set the datacheck sizes: … … 568 582 // set reference lines 569 583 // 570 // DisplayReferenceLines(obj5,0);584 DisplayReferenceLines(obj5,2); 571 585 572 586 c2.cd(4); … … 591 605 // for the datacheck, fix the ranges!! 592 606 // 593 // obj6->SetMinimum(fgChargeMin);594 // obj6->SetMaximum(fgChargeMax);607 obj6->SetMinimum(fgQEMin); 608 obj6->SetMaximum(fgQEMax); 595 609 // 596 610 // Set the datacheck sizes: … … 600 614 // set reference lines 601 615 // 602 //DisplayReferenceLines(obj6,0);616 DisplayReferenceLines(obj6,0); 603 617 604 618 c2.cd(5); … … 623 637 // for the datacheck, fix the ranges!! 624 638 // 625 // obj3->SetMinimum(fgChargeMin);626 // obj3->SetMaximum(fgChargeMax);639 obj7->SetMinimum(fgConvFADC2PhotMin); 640 obj7->SetMaximum(fgConvFADC2PhotMax); 627 641 // 628 642 // Set the datacheck sizes: … … 632 646 // set reference lines 633 647 // 634 // DisplayReferenceLines(obj3,0);648 DisplayReferenceLines(obj7,1); 635 649 636 650 c2.cd(6); … … 855 869 { 856 870 857 Double_t x = cam->GetNbinsX();858 859 871 const MGeomCam *geom = cam->GetGeometry(); 860 872 861 if (geom->InheritsFrom("MGeomCamMagic")) 862 x = what ? 397 : cam->GetNbinsX(); 873 Double_t x = geom->InheritsFrom("MGeomCamMagic") ? 397 : cam->GetNbinsX() ; 863 874 864 875 TLine line; 865 876 line.SetLineStyle(kDashed); 866 877 line.SetLineWidth(3); 867 868 /*869 878 line.SetLineColor(kBlue); 870 TLine *l1 = line.DrawLine(0, what ? fgRefPedRmsGalacticInner : fgRefPedGalactic, 871 x, what ? fgRefPedRmsGalacticInner : fgRefPedGalactic); 872 873 line.SetLineColor(kYellow); 874 TLine *l2 = line.DrawLine(0, what ? fgRefPedRmsExtraGalacticInner : fgRefPedExtraGalactic, 875 x, what ? fgRefPedRmsExtraGalacticInner : fgRefPedExtraGalactic); 876 877 line.SetLineColor(kMagenta); 878 TLine *l3 = line.DrawLine(0, what ? fgRefPedRmsClosedLidsInner : fgRefPedClosedLids, 879 x, what ? fgRefPedRmsClosedLidsInner : fgRefPedClosedLids); 880 879 880 TLine *l1 = NULL; 881 882 if (what == 0) 883 l1 = line.DrawLine(0, fgRefQEInner, x, fgRefQEInner); 884 else if (what == 1) 885 l1 = line.DrawLine(0, fgRefConvFADC2PhotInner, x, fgRefConvFADC2PhotInner); 886 else if (what == 2) 887 l1 = line.DrawLine(0, fgRefConvFADC2PheInner, x, fgRefConvFADC2PheInner ); 888 881 889 if (geom->InheritsFrom("MGeomCamMagic")) 882 if (what)883 {884 const Double_t x2 = cam->GetNbinsX(); 885 886 line.SetLineColor(kBlue);887 line.DrawLine(398, fgRefPedRmsGalacticOuter,888 x2, fgRefPedRmsGalacticOuter);889 890 line.SetLineColor(kYellow);891 line.DrawLine(398, fgRefPedRmsExtraGalacticOuter,892 x2, fgRefPedRmsExtraGalacticOuter);893 894 line.SetLineColor(kMagenta);895 line.DrawLine(398, fgRefPedRmsClosedLidsOuter,896 x2, fgRefPedRmsClosedLidsOuter);897 898 899 TLegend *leg = new TLegend( 0.4,0.75,0.7,0.99);890 { 891 const Double_t x2 = cam->GetNbinsX(); 892 893 switch (what) 894 { 895 case 0: 896 line.DrawLine(x2, fgRefQEOuter, 398, fgRefQEOuter); 897 break; 898 case 1: 899 line.DrawLine(x2, fgRefConvFADC2PhotOuter, 398, fgRefConvFADC2PhotOuter ); 900 break; 901 case 2: 902 line.DrawLine(x2, fgRefConvFADC2PheOuter, 398, fgRefConvFADC2PheOuter); 903 break; 904 } 905 } 906 907 TLegend *leg = new TLegend(what ? 0.2 : 0.6,0.75,what ? 0.5 : 0.9 ,0.85); 900 908 leg->SetBit(kCanDelete); 901 leg->AddEntry(l1, "Galactic Source","l"); 902 leg->AddEntry(l2, "Extra-Galactic Source","l"); 903 leg->AddEntry(l3, "Closed Lids","l"); 909 leg->AddEntry(l1, "Reference","l"); 904 910 leg->Draw(); 905 */906 907 908 911 } 909 912 -
trunk/MagicSoft/Mars/mjobs/MJCalibration.h
r4623 r4626 41 41 static const Int_t gkThirdBlindPixelInstallation; //! Run number upon which third blind pixel was installed 42 42 43 static const Double_t fgConvFADC2PheMin; //! Histogram minimum for conversion factor to phes 44 static const Double_t fgConvFADC2PheMax; //! Histogram maximum for conversion factor to phes 45 static const Double_t fgConvFADC2PhotMin; //! Histogram minimum for conversion factor to phs 46 static const Double_t fgConvFADC2PhotMax; //! Histogram maixmum for conversion factor to phs 47 static const Double_t fgQEMin; //! Histogram minimum for quantum efficiency 48 static const Double_t fgQEMax; //! Histogram maximum for quantum efficiency 49 43 50 static const Float_t fgRefConvFADC2PheInner; //! Reference value for the conversion factor to phes - inner 44 51 static const Float_t fgRefConvFADC2PheOuter; //! Reference value for the conversion factor to phes - outer
Note:
See TracChangeset
for help on using the changeset viewer.