Changeset 3221 for trunk/MagicSoft
- Timestamp:
- 02/18/04 14:29:54 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3220 r3221 4 4 5 5 -*-*- END OF LINE -*-*- 6 7 2004/01/17: Raquel de los Reyes 8 9 * macros/CCDataCheck.C 10 - Added some improvements in the plots. 6 11 7 12 2004/01/17: Abelardo Moralejo -
trunk/MagicSoft/Mars/macros/CCDataCheck.C
r3214 r3221 26 26 // It displays 9 tabs: 27 27 // - Drive system 28 // - Camera status 28 29 // - HV of power supplies and HV settings 29 // - DC of power supplies and several camera related status plots30 // - DC of power supplies 30 31 // - LV power supplies 31 32 // - Cooling system … … 239 240 plist.AddToList(&bins5); 240 241 MBinning bins6("BinningTrigZdY"); 241 bins6.SetEdges(100 , 0, 1500);242 bins6.SetEdges(10000, 0, 15000); 242 243 plist.AddToList(&bins6); 243 244 … … 578 579 TAxis *axey = hist->GetYaxis(); 579 580 TAxis *axex = hist->GetXaxis(); 581 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 580 582 hist->SetXTitle("Time"); 581 583 hist->SetYTitle(""); … … 617 619 if (hvt->GetGraph()->GetN()) 618 620 { 621 hvt->GetGraph()->GetHistogram()->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 619 622 hvt->GetGraph()->GetHistogram()->SetXTitle("Time"); 620 623 hvt->GetGraph()->GetHistogram()->SetYTitle("Zd [\\circ]"); … … 627 630 // Camera report 628 631 // 629 // ************************* HV of power supplies ***************************632 // **************************** CAMERA STATUS ******************** 630 633 if ((d = evtloop.GetDisplay())) 631 TCanvas &c2 = d.AddTab("CAMERA HV");634 TCanvas &c2 = d.AddTab("CAMERA STATUS"); 632 635 else 633 636 TCanvas *c2 = new TCanvas(); 634 c2->Divide( 2,2);637 c2->Divide(1,2); 635 638 c2->cd(1); 636 // ---------------------------- Power supplies ------------------------------637 TLegend *legHV = new TLegend(0.85,0.75,0.99,0.99);638 g = hHVA.GetGraph();639 g->SetMarkerColor(2);640 g->SetLineColor(2);641 g->SetTitle("Voltages of power supplies");642 legHV->AddEntry(g,"PS A (hvps1)","l");643 clone1 = (MHVsTime*)hHVA.DrawClone("nonew");644 if(clone1->GetGraph()->GetN())645 {646 hist = clone1->GetGraph()->GetHistogram();647 hist->SetXTitle("Time");648 hist->SetYTitle("High voltage [V]");649 hist->SetMinimum(0);650 }651 g = hHVB.GetGraph();652 g->SetMarkerColor(3);653 g->SetLineColor(3);654 legHV->AddEntry(g,"PS B (hvps2)","l");655 clone1 = (MHVsTime*)hHVB.DrawClone("nonewsame");656 legHV->DrawClone();657 // ---------------------------- HV settings ---------------------------------658 c2->cd(2);659 g = hCamMean.GetGraph();660 g->SetMarkerColor(2);661 g->SetLineColor(2);662 g->SetTitle("Camera mean HV settings");663 clone1 = (MHVsTime*)hCamMean.DrawClone("nonew");664 if(clone1->GetGraph()->GetN())665 {666 hist = clone1->GetGraph()->GetHistogram();667 hist->SetXTitle("Time");668 hist->SetYTitle("HV [V]");669 hist->SetMinimum(0);670 }671 c2->cd(3);672 Sum = (MHCamera*)HVdisplay.GetHistByName("sum");673 TVirtualPad *c = gPad;674 c->cd(1);675 gPad->SetBorderMode(0);676 Sum->SetYTitle("Mean");677 Sum->DrawClone("pixelindex");678 c2->cd(4);679 gPad->SetBorderMode(0);680 Sum->SetYTitle("Mean HV settings");681 Sum->DrawClone("EPhist");682 683 // ******************** Currents of power supplies *******************684 if ((d = evtloop.GetDisplay()))685 TCanvas &c3 = d.AddTab("CAMERA DC");686 else687 TCanvas *c3 = new TCanvas();688 // ----------------------------- Power supplies ------------------------------689 c3->Divide(1,2);690 c3->cd(1);691 TLegend *legC = new TLegend(0.85,0.75,0.99,0.99);692 g = hCA.GetGraph();693 g->SetMarkerColor(2);694 g->SetLineColor(2);695 g->SetTitle("Currents of power supplies");696 legC->AddEntry(g,"Power supply A (curr1)","l");697 clone1 = (MHVsTime*)hCA.DrawClone("nonew");698 if(clone1->GetGraph()->GetN())699 {700 hist = clone1->GetGraph()->GetHistogram();701 hist->SetXTitle("Time");702 hist->SetYTitle("Current [mA]");703 hist->SetMinimum(0);704 }705 g = hCB.GetGraph();706 g->SetMarkerColor(3);707 g->SetLineColor(3);708 legC->AddEntry(g,"Power supply B (curr2)","l");709 clone1 = (MHVsTime*)hCB.DrawClone("nonewsame");710 legC->DrawClone();711 c3->cd(2);712 gPad->SetBorderMode(0);713 gPad->Divide(2,2);714 TVirtualPad *c = gPad;715 c->cd(1);716 639 g = hCamStatus.GetGraph(); 717 640 g->SetMarkerStyle(kFullDotSmall); … … 735 658 axey->SetBinLabel(axey->FindFixBin(8),"SHUTD"); 736 659 axey->SetBinLabel(axey->FindFixBin(9),"N/A"); 737 axey->SetLabelSize(0.07); 660 axey->SetLabelSize(0.05); 661 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 738 662 hist->SetXTitle("Time"); 739 663 hist->SetYTitle(""); 740 664 } 741 c ->cd(2);742 g = h CamStatusDC.GetGraph();743 g->SetMarkerStyle(kFullDotSmall); 744 g->SetTitle("Camera DCstatus");745 clone1 = (MHVsTime*)h CamStatusDC.DrawClone("nonew");665 c2->cd(2); 666 g = hLidsStatus.GetGraph(); 667 g->SetMarkerStyle(kFullDotSmall); 668 g->SetTitle("Camera Lids status"); 669 clone1 = (MHVsTime*)hLidsStatus.DrawClone("nonew"); 746 670 if(clone1->GetGraph()->GetN()) 747 671 { … … 752 676 axey->Set(10,-0.5,9.5); 753 677 axey->SetBinLabel(axey->FindFixBin(0),"Error"); 754 axey->SetBinLabel(axey->FindFixBin(1),"Alarm"); 755 axey->SetBinLabel(axey->FindFixBin(3),"Hot"); 756 axey->SetBinLabel(axey->FindFixBin(5),"Ok"); 757 axey->SetBinLabel(axey->FindFixBin(6),"Warm"); 678 axey->SetBinLabel(axey->FindFixBin(1),"SafetyLimit"); 679 axey->SetBinLabel(axey->FindFixBin(4),"Closed"); 680 axey->SetBinLabel(axey->FindFixBin(5),"Opened"); 681 axey->SetBinLabel(axey->FindFixBin(6),"Moving"); 682 axey->SetBinLabel(axey->FindFixBin(7),"Stopped"); 758 683 axey->SetBinLabel(axey->FindFixBin(9),"n/a"); 759 axey->SetLabelSize(0.07); 684 axey->SetLabelSize(0.05); 685 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 760 686 hist->SetXTitle("Time"); 761 687 hist->SetYTitle(""); 762 688 } 763 c->cd(3); 689 // ************************* HV of power supplies *************************** 690 if ((d = evtloop.GetDisplay())) 691 TCanvas &c3 = d.AddTab("CAMERA HV"); 692 else 693 TCanvas *c3 = new TCanvas(); 694 c3->Divide(2,2); 695 c3->cd(1); 696 // --------------- Power supplies and HV settings -------------------------- 697 TLegend *legHV = new TLegend(0.75,0.85,0.99,0.99); 698 g = hHVA.GetGraph(); 699 g->SetMarkerColor(2); 700 g->SetLineColor(2); 701 g->SetTitle("Voltages of power supplies and camera settings"); 702 legHV->AddEntry(g,"PS A (hvps1)","l"); 703 clone1 = (MHVsTime*)hHVA.DrawClone("nonew"); 704 if(clone1->GetGraph()->GetN()) 705 { 706 hist = clone1->GetGraph()->GetHistogram(); 707 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 708 hist->SetXTitle("Time"); 709 hist->SetYTitle("High voltage [V]"); 710 hist->SetMinimum(0); 711 } 712 g = hHVB.GetGraph(); 713 g->SetMarkerColor(3); 714 g->SetLineColor(3); 715 legHV->AddEntry(g,"PS B (hvps2)","l"); 716 clone1 = (MHVsTime*)hHVB.DrawClone("nonewsame"); 717 g = hCamMean.GetGraph(); 718 g->SetMarkerColor(4); 719 g->SetLineColor(4); 720 legHV->AddEntry(g,"Camera mean HV","l"); 721 clone1 = (MHVsTime*)hCamMean.DrawClone("nonewsame"); 722 legHV->DrawClone(); 723 // ---------------------------- HV status ----------------------------------- 724 c3->cd(2); 764 725 g = hHVStatus.GetGraph(); 765 726 g->SetMarkerStyle(kFullDotSmall); … … 781 742 axey->SetBinLabel(axey->FindFixBin(6),"LimCurrentWarning"); 782 743 axey->SetBinLabel(axey->FindFixBin(9),"n/a"); 783 axey->SetLabelSize(0.07); 744 axey->SetLabelSize(0.05); 745 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 784 746 hist->SetXTitle("Time"); 785 747 hist->SetYTitle(""); 786 748 } 787 c->cd(4); 788 g = hLidsStatus.GetGraph(); 789 g->SetMarkerStyle(kFullDotSmall); 790 g->SetTitle("Camera Lids status"); 791 clone1 = (MHVsTime*)hLidsStatus.DrawClone("nonew"); 749 // ---------------------------- HV settings --------------------------------- 750 c3->cd(3); 751 Sum = (MHCamera*)HVdisplay.GetHistByName("sum"); 752 TVirtualPad *c = gPad; 753 c->cd(1); 754 gPad->SetBorderMode(0); 755 Sum->SetYTitle("Mean"); 756 Sum->DrawClone("pixelindex"); 757 c3->cd(4); 758 gPad->SetBorderMode(0); 759 Sum->SetYTitle("Mean HV settings"); 760 Sum->DrawClone("EPhist"); 761 762 // ******************** Currents of power supplies ******************* 763 if ((d = evtloop.GetDisplay())) 764 TCanvas &c4 = d.AddTab("CAMERA DC"); 765 else 766 TCanvas *c4 = new TCanvas(); 767 // ----------------------------- Power supplies ------------------------------ 768 c4->Divide(1,2); 769 c4->cd(1); 770 TLegend *legC = new TLegend(0.85,0.75,0.99,0.99); 771 g = hCA.GetGraph(); 772 g->SetMarkerColor(2); 773 g->SetLineColor(2); 774 g->SetTitle("Currents of power supplies"); 775 legC->AddEntry(g,"PS A (curr1)","l"); 776 clone1 = (MHVsTime*)hCA.DrawClone("nonew"); 777 if(clone1->GetGraph()->GetN()) 778 { 779 hist = clone1->GetGraph()->GetHistogram(); 780 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 781 hist->SetXTitle("Time"); 782 hist->SetYTitle("Current [mA]"); 783 hist->SetMinimum(0); 784 } 785 g = hCB.GetGraph(); 786 g->SetMarkerColor(3); 787 g->SetLineColor(3); 788 legC->AddEntry(g,"PS B (curr2)","l"); 789 clone1 = (MHVsTime*)hCB.DrawClone("nonewsame"); 790 legC->DrawClone(); 791 c4->cd(2); 792 g = hCamStatusDC.GetGraph(); 793 g->SetMarkerStyle(kFullDotSmall); 794 g->SetTitle("Camera DC status"); 795 clone1 = (MHVsTime*)hCamStatusDC.DrawClone("nonew"); 792 796 if(clone1->GetGraph()->GetN()) 793 797 { … … 798 802 axey->Set(10,-0.5,9.5); 799 803 axey->SetBinLabel(axey->FindFixBin(0),"Error"); 800 axey->SetBinLabel(axey->FindFixBin(1),"SafetyLimit"); 801 axey->SetBinLabel(axey->FindFixBin(4),"Closed"); 802 axey->SetBinLabel(axey->FindFixBin(5),"Opened"); 803 axey->SetBinLabel(axey->FindFixBin(6),"Moving"); 804 axey->SetBinLabel(axey->FindFixBin(7),"Stopped"); 804 axey->SetBinLabel(axey->FindFixBin(1),"Alarm"); 805 axey->SetBinLabel(axey->FindFixBin(3),"Hot"); 806 axey->SetBinLabel(axey->FindFixBin(5),"Ok"); 807 axey->SetBinLabel(axey->FindFixBin(6),"Warm"); 805 808 axey->SetBinLabel(axey->FindFixBin(9),"n/a"); 806 axey->SetLabelSize(0.07); 809 axey->SetLabelSize(0.09); 810 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 807 811 hist->SetXTitle("Time"); 808 812 hist->SetYTitle(""); 809 813 } 814 815 810 816 // ***************************** LV power supplies ************************** 811 817 if ((d = evtloop.GetDisplay())) 812 TCanvas &c 4= d.AddTab("CAMERA LV");818 TCanvas &c5 = d.AddTab("CAMERA LV"); 813 819 else 814 TCanvas *c 4= new TCanvas();815 c 4->Divide(2,2);816 c 4->cd(1);820 TCanvas *c5 = new TCanvas(); 821 c5->Divide(2,2); 822 c5->cd(1); 817 823 g = hLVTemp.GetGraph(); 818 824 g->SetMarkerColor(2); … … 823 829 { 824 830 hist = clone1->GetGraph()->GetHistogram(); 831 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 825 832 hist->SetXTitle("Time"); 826 833 hist->SetYTitle("Temperature [\\circ]"); 827 834 } 828 c 4->cd(2);835 c5->cd(2); 829 836 g = hLVHum.GetGraph(); 830 837 g->SetMarkerColor(4); … … 835 842 { 836 843 hist = clone1->GetGraph()->GetHistogram(); 844 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 837 845 hist->SetXTitle("Time"); 838 846 hist->SetYTitle("Humidity [%]"); 839 847 } 840 c 4->cd(3);848 c5->cd(3); 841 849 g = hLVStatus.GetGraph(); 842 850 g->SetMarkerStyle(kFullDotSmall); … … 856 864 axey->SetBinLabel(axey->FindFixBin(5),"On"); 857 865 axey->SetBinLabel(axey->FindFixBin(9),"n/a"); 866 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 858 867 hist->SetXTitle("Time"); 859 868 hist->SetYTitle(""); 860 869 } 861 c 4->cd(4);870 c5->cd(4); 862 871 g = hLVRPS.GetGraph(); 863 872 g->SetMarkerStyle(kFullDotSmall); … … 867 876 { 868 877 hist = clone1->GetGraph()->GetHistogram(); 878 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 869 879 hist->SetXTitle("Time"); 870 880 hist->SetYTitle(""); … … 878 888 // ****************************** Cooling *********************************** 879 889 if ((d = evtloop.GetDisplay())) 880 TCanvas &c 5= d.AddTab("COOLING SYSTEM");890 TCanvas &c6 = d.AddTab("COOLING SYSTEM"); 881 891 else 882 TCanvas *c 5= new TCanvas();892 TCanvas *c6 = new TCanvas(); 883 893 gStyle->SetPadGridX(kTRUE); 884 894 gStyle->SetPadGridY(kTRUE); 885 c 5->Divide(2,2);886 c 5->cd(1);895 c6->Divide(2,2); 896 c6->cd(1); 887 897 // -------------------------- Camera temperatures --------------------------- 888 TLegend *legtemp = new TLegend(0. 85,0.75,0.99,0.99);898 TLegend *legtemp = new TLegend(0.75,0.80,0.99,0.99); 889 899 g = hTCenter.GetGraph(); 890 900 g->SetMarkerColor(8); 891 901 g->SetLineColor(8); 892 902 g->SetTitle("Camera temperature"); 893 legtemp->AddEntry(g," T atcamera center","l");903 legtemp->AddEntry(g,"camera center","l"); 894 904 clone1 = (MHVsTime*)hTCenter.DrawClone("nonew"); 895 905 if(clone1->GetGraph()->GetN()) 896 906 { 897 907 hist = clone1->GetGraph()->GetHistogram(); 908 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 898 909 hist->SetXTitle("Time"); 899 910 hist->SetYTitle("Temperature [\\circ C]"); … … 903 914 g->SetMarkerColor(12); 904 915 g->SetLineColor(12); 905 legtemp->AddEntry(g," T atcamera wall","l");916 legtemp->AddEntry(g,"camera wall","l"); 906 917 clone1 = (MHVsTime*)hTWall.DrawClone("nonewsame"); 907 918 g = hTWater.GetGraph(); 908 919 g->SetMarkerColor(4); 909 920 g->SetLineColor(4); 910 legtemp->AddEntry(g," T atwater deposit","l");921 legtemp->AddEntry(g,"water deposit","l"); 911 922 clone1 = (MHVsTime*)hTWater.DrawClone("nonewsame"); 912 923 g = hTOptLink.GetGraph(); 913 924 g->SetMarkerColor(2); 914 925 g->SetLineColor(2); 915 legtemp->AddEntry(g," T atoptical links","l");926 legtemp->AddEntry(g,"optical links","l"); 916 927 clone1 = (MHVsTime*)hTOptLink.DrawClone("nonewsame"); 917 928 legtemp->DrawClone(); 918 c 5->cd(2);929 c6->cd(2); 919 930 g = hCoolStatus.GetGraph(); 920 931 g->SetMarkerStyle(kFullDotSmall); … … 936 947 axey->SetBinLabel(axey->FindFixBin(9),"n/a"); 937 948 axey->SetLabelSize(0.05); 949 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 938 950 hist->SetXTitle("Time"); 939 951 hist->SetYTitle(""); 940 952 } 941 953 // ------------------------- Camera relative humidity ----------------------- 942 c 5->cd(3);943 TLegend *leghum = new TLegend(0.75,0. 75,0.99,0.99);954 c6->cd(3); 955 TLegend *leghum = new TLegend(0.75,0.85,0.99,0.99); 944 956 g = hHCenter.GetGraph(); 945 957 g->SetMarkerColor(8); 946 958 g->SetLineColor(8); 947 959 g->SetTitle("Camera relative humidity"); 948 leghum->AddEntry(g," RH atcamera center","l");960 leghum->AddEntry(g,"camera center","l"); 949 961 clone1 = (MHVsTime*)hHCenter.DrawClone("nonew"); 950 962 if(clone1->GetGraph()->GetN()) 951 963 { 952 964 hist = clone1->GetGraph()->GetHistogram(); 965 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 953 966 hist->SetXTitle("Time"); 954 967 hist->SetYTitle("Relative humidity [%]"); … … 959 972 g->SetMarkerColor(12); 960 973 g->SetLineColor(12); 961 leghum->AddEntry(g," RH atcamera wall","l");974 leghum->AddEntry(g,"camera wall","l"); 962 975 clone1 = (MHVsTime*)hHWall.DrawClone("nonewsame"); 963 976 leghum->DrawClone(); 964 977 // ---------------------- Temperature distribution -------------------------- 965 c 5->cd(4);978 c6->cd(4); 966 979 hist = hTempOptLink.GetHistByName("TOptLink"); 967 980 hist->SetXTitle("Temperature [\\circ C]"); … … 975 988 // 976 989 if ((d = evtloop.GetDisplay())) 977 TCanvas &c 6= d.AddTab("TRIGGER SYSTEM");990 TCanvas &c7 = d.AddTab("TRIGGER SYSTEM"); 978 991 else 979 TCanvas *c 6= new TCanvas();980 c 6->Divide(1,3);981 c 6->cd(1);992 TCanvas *c7 = new TCanvas(); 993 c7->Divide(1,3); 994 c7->cd(1); 982 995 gStyle->SetPadGridX(kTRUE); 983 996 gStyle->SetPadGridY(kTRUE); 997 gPad->SetLogy(); 984 998 TLegend *legtrig = new TLegend(0.85,0.85,0.99,0.99); 985 999 g = hTrigBL2.GetGraph(); … … 993 1007 { 994 1008 hist = clone1->GetGraph()->GetHistogram(); 1009 hist->SetMinimum(1); 1010 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 1011 hist->GetXaxis()->SetLabelSize(0.05); 1012 hist->GetYaxis()->SetLabelSize(0.05); 995 1013 hist->SetXTitle("Time"); 996 1014 hist->SetYTitle("L2 trigger rate [Hz]"); … … 1002 1020 clone1 = (MHVsTime*)hTrigAL2.DrawClone("nonewsame"); 1003 1021 legtrig->DrawClone(); 1004 c6->cd(2); 1022 c7->cd(2); 1023 gPad->SetLogy(); 1005 1024 hist = hTrigZd.GetHistByName("TrigZd"); 1025 hist->GetXaxis()->SetLabelSize(0.05); 1026 hist->GetYaxis()->SetLabelSize(0.05); 1006 1027 hist->SetXTitle("Zenith angle[\\circ]"); 1007 1028 hist->SetYTitle("Trigger rate [Hz]"); … … 1010 1031 hist->SetStats(0); 1011 1032 mh3 = (MH3*)hTrigZd.DrawClone("nonew"); 1012 c6->cd(3); 1033 hist->SetMinimum(1); 1034 c7->cd(3); 1013 1035 g = hTrigStatus.GetGraph(); 1014 1036 g->SetMarkerStyle(kFullDotSmall); … … 1028 1050 axey->SetBinLabel(axey->FindFixBin(4),"Active"); 1029 1051 axey->SetBinLabel(axey->FindFixBin(5),"Stopped"); 1030 axey->SetLabelSize(0.07); 1052 axey->SetLabelSize(0.05); 1053 hist->GetXaxis()->SetLabelSize(0.05); 1054 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 1031 1055 hist->SetXTitle("Time"); 1032 1056 hist->SetYTitle(""); … … 1034 1058 // ***************************** Trigger of macrocells ********************** 1035 1059 if ((d = evtloop.GetDisplay())) 1036 TCanvas &c 7= d.AddTab("TRIG. MACROCELLs");1060 TCanvas &c8 = d.AddTab("TRIG. MACROCELLs"); 1037 1061 else 1038 TCanvas *c7 = new TCanvas(); 1039 c7->Divide(2,2); 1040 c7->cd(1); 1041 TLegend *legtrig = new TLegend(0.80,0.70,0.99,0.99); 1062 TCanvas *c8 = new TCanvas(); 1063 c8->Divide(2,2); 1064 c8->cd(1); 1065 gPad->SetLogy(); 1066 TLegend *legtrig = new TLegend(0.70,0.80,0.99,0.99); 1042 1067 g = htrigmc1.GetGraph(); 1043 1068 g->SetMarkerStyle(kFullDotSmall); … … 1051 1076 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1052 1077 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1078 hist->SetMinimum(1); 1079 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 1053 1080 hist->SetXTitle("Time"); 1054 1081 hist->SetYTitle("Trigger [Hz]"); 1055 1082 } 1056 1083 legtrig->DrawClone(); 1057 c7->cd(2); 1058 TLegend *legtrig = new TLegend(0.80,0.70,0.99,0.99); 1084 c8->cd(2); 1085 gPad->SetLogy(); 1086 TLegend *legtrig = new TLegend(0.70,0.70,0.99,0.99); 1059 1087 g = htrigmc2.GetGraph(); 1060 1088 g->SetMarkerStyle(kFullDotSmall); … … 1068 1096 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1069 1097 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1098 hist->SetMinimum(1); 1099 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 1070 1100 hist->SetXTitle("Time"); 1071 1101 hist->SetYTitle("Trigger [Hz]"); … … 1107 1137 pixclone1 = (MHPixVsTime*)htrigmc7.DrawClone("nonewsame"); 1108 1138 legtrig->DrawClone(); 1109 c7->cd(3); 1110 TLegend *legtrig = new TLegend(0.80,0.70,0.99,0.99); 1139 c8->cd(3); 1140 gPad->SetLogy(); 1141 TLegend *legtrig = new TLegend(0.70,0.70,0.99,0.99); 1111 1142 g = htrigmc8.GetGraph(); 1112 1143 g->SetMarkerStyle(kFullDotSmall); … … 1120 1151 { 1121 1152 hist = pixclone1->GetGraph()->GetHistogram(); 1153 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1154 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1155 hist->SetMinimum(1); 1156 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 1122 1157 hist->SetXTitle("Time"); 1123 1158 hist->SetYTitle("Trigger [Hz]"); … … 1157 1192 pixclone1 = (MHPixVsTime*)htrigmc13.DrawClone("nonewsame"); 1158 1193 legtrig->DrawClone(); 1159 c7->cd(4); 1160 TLegend *legtrig = new TLegend(0.80,0.70,0.99,0.99); 1194 c8->cd(4); 1195 gPad->SetLogy(); 1196 TLegend *legtrig = new TLegend(0.70,0.70,0.99,0.99); 1161 1197 TGraph *g = htrigmc14.GetGraph(); 1162 1198 g->SetMarkerStyle(kFullDotSmall); … … 1170 1206 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1171 1207 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1208 hist->SetMinimum(1); 1209 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 1172 1210 hist->SetXTitle("Time"); 1173 1211 hist->SetYTitle("Trigger [Hz]"); … … 1214 1252 // 1215 1253 if ((d = evtloop.GetDisplay())) 1216 TCanvas &c 8= d.AddTab("WEATHER STATION");1254 TCanvas &c9 = d.AddTab("WEATHER STATION"); 1217 1255 else 1218 TCanvas *c 8= new TCanvas();1219 c 8->Divide(2,2);1256 TCanvas *c9 = new TCanvas(); 1257 c9->Divide(2,2); 1220 1258 // ----------------------- Relative humidity -------------------------------- 1221 c 8->cd(1);1259 c9->cd(1); 1222 1260 g = hCCHum.GetGraph(); 1223 1261 g->SetMarkerStyle(kFullDotSmall); 1224 1262 g->SetMarkerColor(4); 1225 1263 g->SetLineColor(4); 1226 g->SetTitle("Relative humidity ");1264 g->SetTitle("Relative humidity outside"); 1227 1265 clone1 = (MHVsTime*)hCCHum.DrawClone("nonew"); 1228 1266 if(clone1->GetGraph()->GetN()) 1229 1267 { 1230 1268 hist = clone1->GetGraph()->GetHistogram(); 1269 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 1231 1270 hist->SetXTitle("Time"); 1232 1271 hist->SetYTitle("Humidity [%]"); 1233 1272 } 1234 1273 // -------------------------- Temperature ----------------------------------- 1235 c 8->cd(2);1274 c9->cd(2); 1236 1275 g = hCCTemp.GetGraph(); 1237 1276 g->SetMarkerStyle(kFullDotSmall); 1238 1277 g->SetMarkerColor(2); 1239 1278 g->SetLineColor(2); 1240 g->SetTitle("Temperature ");1279 g->SetTitle("Temperature outside"); 1241 1280 clone1 = (MHVsTime*)hCCTemp.DrawClone("nonew"); 1242 1281 if(clone1->GetGraph()->GetN()) 1243 1282 { 1244 1283 hist = clone1->GetGraph()->GetHistogram(); 1284 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 1245 1285 hist->SetXTitle("Time"); 1246 1286 hist->SetYTitle("Temperature [\\circ C]"); 1247 1287 } 1248 1288 // --------------------------- Wind speed ----------------------------------- 1249 c 8->cd(3);1289 c9->cd(3); 1250 1290 g = hCCWS.GetGraph(); 1251 1291 g->SetMarkerStyle(kFullDotSmall); 1252 1292 g->SetMarkerColor(3); 1253 1293 g->SetLineColor(3); 1254 g->SetTitle("Wind speed ");1294 g->SetTitle("Wind speed outside"); 1255 1295 clone1 = (MHVsTime*)hCCWS.DrawClone("nonew"); 1256 1296 if(clone1->GetGraph()->GetN()) 1257 1297 { 1258 1298 hist = clone1->GetGraph()->GetHistogram(); 1299 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 1259 1300 hist->SetXTitle("Time"); 1260 1301 hist->SetYTitle("Wind speed [km/h]"); 1261 1302 } 1262 1303 // -------------------------- Solar radiation ------------------------------- 1263 c 8->cd(4);1304 c9->cd(4); 1264 1305 g = hCCSR.GetGraph(); 1265 1306 g->SetMarkerStyle(kFullDotSmall); 1266 1307 g->SetMarkerColor(9); 1267 1308 g->SetLineColor(9); 1268 g->SetTitle("Solar radiation ");1309 g->SetTitle("Solar radiation outside"); 1269 1310 clone1 = (MHVsTime*)hCCSR.DrawClone("nonew"); 1270 1311 if(clone1->GetGraph()->GetN()) 1271 1312 { 1272 1313 hist = clone1->GetGraph()->GetHistogram(); 1314 hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00"); 1273 1315 hist->SetXTitle("Time"); 1274 1316 hist->SetYTitle("Solar radiation [W/m^2]"); … … 1293 1335 c6->Print(directory+file+".ps"); 1294 1336 c7->Print(directory+file+".ps"); 1295 c8->Print(directory+file+".ps)"); 1337 c8->Print(directory+file+".ps"); 1338 c9->Print(directory+file+".ps)"); 1296 1339 } 1297 1340 }
Note:
See TracChangeset
for help on using the changeset viewer.