305 |
|
datahistoOSSF->SetMarkerSize(DataMarkerSize); |
306 |
|
datahistoOSSF->Draw(); |
307 |
|
|
308 |
< |
mcstackOSSF.Draw("same"); |
308 |
> |
mcstackOSSF.Draw("histo,same"); |
309 |
|
datahistoOSSF->Draw("same"); |
310 |
|
|
311 |
|
datahistoOSOF->SetMarkerColor(TColor::GetColor("#FE642E")); |
468 |
|
|
469 |
|
TH1F *data1 = allsamples.Draw("data1",variable,nbins,min,max, xlabel, "events",ibasiccut,data,luminosity); |
470 |
|
TH1F *data2 = comparesamples.Draw("data2",variable,nbins,min,max, xlabel, "events",ibasiccut,data,luminosity); |
471 |
< |
data2->Scale(4.1/5.2); |
471 |
> |
data1->Scale(5.0/9.2); |
472 |
|
|
473 |
|
data1->SetMarkerSize(DataMarkerSize); |
474 |
|
data2->SetLineColor(kRed); |
493 |
|
data1->GetYaxis()->CenterTitle(); |
494 |
|
|
495 |
|
TLegend *mleg = make_legend("",legendPosition,0.7,false,legendPosition+0.2); |
496 |
< |
mleg->AddEntry(data1, "New 4.1 fb^{-1}", "PL"); |
497 |
< |
mleg->AddEntry(data2, "Old 5.1 fb^{-1} (scaled) ", "L"); |
496 |
> |
mleg->AddEntry(data1, "2012 data (scaled)", "PL"); |
497 |
> |
mleg->AddEntry(data2, "2011 data", "L"); |
498 |
|
|
499 |
|
data1->Draw("E1"); |
500 |
|
data2->Draw("HIST,SAMES"); |
630 |
|
THStack mcstack = allsamples.DrawStack("mcstack", variable,nbins,min,max,xlabel,"events",cut,mc,luminosity); |
631 |
|
datahisto->Draw("e1"); |
632 |
|
ckin->Update(); |
633 |
< |
mcstack.Draw("same"); |
633 |
> |
mcstack.Draw("histo,same"); |
634 |
|
|
635 |
|
datahisto->Draw("same,e1"); |
636 |
|
TLegend *kinleg = allsamples.allbglegend(); |
673 |
|
kinpad->cd(); |
674 |
|
kinpad->SetLogy(logscale); |
675 |
|
datahisto->Draw("e1"); |
676 |
< |
mcstack.Draw("same"); |
676 |
> |
mcstack.Draw("histo,same"); |
677 |
|
if(drawsignal) signalhisto->Draw("same"); |
678 |
|
datahisto->Draw("same,e1"); |
679 |
|
datahisto->Draw("same,axis"); |
701 |
|
delete ckin; |
702 |
|
} |
703 |
|
|
704 |
+ |
|
705 |
+ |
void make_plain_kin_plot(string variable, string addcut, int nbins, float min, float max, bool logscale, |
706 |
+ |
string xlabel, string filename, bool isPF=true, bool plotratio=true, bool loadlastminmax=false ) { |
707 |
+ |
TCut cut=TCut(addcut.c_str())&&basiccut; |
708 |
+ |
|
709 |
+ |
TCanvas *ckin = new TCanvas("ckin","Kinematic Plots (in the making)",600,600); |
710 |
+ |
ckin->SetLogy(logscale); |
711 |
+ |
TH1F *datahisto = allsamples.Draw("datahisto",variable,nbins,min,max, xlabel, "events",cut,data,luminosity); |
712 |
+ |
datahisto->SetMarkerSize(DataMarkerSize); |
713 |
+ |
if ( !logscale ) datahisto->SetMinimum(0); // Defaults |
714 |
+ |
else datahisto->SetMinimum(0.5); |
715 |
+ |
// Custom max. |
716 |
+ |
if (logscale) datahisto->SetMaximum(5.3*datahisto->GetMaximum()); |
717 |
+ |
else datahisto->SetMaximum(1.3*datahisto->GetMaximum()); |
718 |
+ |
|
719 |
+ |
cout << "******** Cut used : " << (const char*) cut << " for plot " << filename << endl; |
720 |
+ |
if(loadlastminmax) { |
721 |
+ |
datahisto->SetMinimum(lastrange_min); |
722 |
+ |
datahisto->SetMaximum(lastrange_max); |
723 |
+ |
if(logscale) { |
724 |
+ |
datahisto->SetMinimum(pow(10,lastrange_min)); |
725 |
+ |
datahisto->SetMaximum(pow(10,lastrange_max)); |
726 |
+ |
} |
727 |
+ |
} |
728 |
+ |
|
729 |
+ |
THStack mcstack = allsamples.DrawStack("mcstack", variable,nbins,min,max,xlabel,"events",cut,mc,luminosity); |
730 |
+ |
datahisto->Draw("e1"); |
731 |
+ |
ckin->Update(); |
732 |
+ |
mcstack.Draw("histo,same"); |
733 |
+ |
|
734 |
+ |
datahisto->Draw("same,e1"); |
735 |
+ |
TLegend *kinleg = allsamples.allbglegend(); |
736 |
+ |
kinleg->Draw(); |
737 |
+ |
|
738 |
+ |
lastrange_min=ckin->GetUymin(); |
739 |
+ |
lastrange_max=ckin->GetUymax(); |
740 |
+ |
|
741 |
+ |
if ( plotratio ) { |
742 |
+ |
TPad *kinpad = new TPad("kinpad","kinpad",0,0,1,1); |
743 |
+ |
kinpad->cd(); |
744 |
+ |
kinpad->SetLogy(logscale); |
745 |
+ |
datahisto->Draw("e1"); |
746 |
+ |
mcstack.Draw("histo,same"); |
747 |
+ |
datahisto->Draw("same,e1"); |
748 |
+ |
datahisto->Draw("same,axis"); |
749 |
+ |
|
750 |
+ |
kinleg->Draw(); |
751 |
+ |
DrawPrelim(); |
752 |
+ |
string saveas="kin/"+filename; |
753 |
+ |
if(isPF) saveas="kin/"+filename+"__PF"; |
754 |
+ |
save_with_ratio(datahisto,mcstack,kinpad->cd(),saveas); |
755 |
+ |
} else { |
756 |
+ |
if(isPF) CompleteSave(ckin,"kin/"+filename+"__PF"); |
757 |
+ |
else CompleteSave(ckin,"kin/"+filename); |
758 |
+ |
} |
759 |
+ |
datahisto->Delete(); |
760 |
+ |
delete ckin; |
761 |
+ |
} |
762 |
+ |
|
763 |
+ |
|
764 |
|
void make_JES_plot(TCut cut, string name) { |
765 |
|
|
766 |
|
int nbins=10; |
794 |
|
JESunc->SetFillColor(TColor::GetColor("#00ADE1")); |
795 |
|
JESunc->SetFillStyle(3002); |
796 |
|
datahisto->Draw("e1"); |
797 |
< |
mcstack.Draw("same"); |
797 |
> |
mcstack.Draw("histo,same"); |
798 |
|
JESunc->Draw("2"); |
799 |
|
datahisto->Draw("same,e1"); |
800 |
|
TLegend *kinleg = allsamples.allbglegend(); |
806 |
|
|
807 |
|
} |
808 |
|
|
809 |
+ |
string Cut2Str(TCut cut) { |
810 |
+ |
return ((string)(const char*)cut); |
811 |
+ |
} |
812 |
+ |
|
813 |
+ |
void MakeElegantTwoThreeComparisons() { |
814 |
+ |
|
815 |
+ |
TCut signal("met[4]>100&&met[4]<150&&mll>20"&&PlottingSetup::basicqualitycut); |
816 |
+ |
TCut TwoJets("pfJetGoodNum40==2"); |
817 |
+ |
TCut ThreeJets("pfJetGoodNum40>=3"); |
818 |
+ |
|
819 |
+ |
float min=20; |
820 |
+ |
float max=300; |
821 |
+ |
int nbins=int((max-min)/5.0); |
822 |
+ |
string xlabel="m_{ll} [GeV]"; |
823 |
+ |
|
824 |
+ |
TCanvas *can2 = new TCanvas("can2","can2"); |
825 |
+ |
TH1F *TwoOF = allsamples.Draw("TwoOF","mll",nbins,min,max, xlabel, "events",cutOSOF&&signal&&TwoJets,mc,luminosity,allsamples.FindSample("TTJets_")); |
826 |
+ |
TH1F *TwoSF = allsamples.Draw("TwoSF","mll",nbins,min,max, xlabel, "events",cutOSSF&&signal&&TwoJets,mc,luminosity,allsamples.FindSample("TTJets_")); |
827 |
+ |
TH1F *ThreeOF = allsamples.Draw("ThreeOF","mll",nbins,min,max, xlabel, "events",cutOSOF&&signal&&ThreeJets,mc,luminosity,allsamples.FindSample("TTJets_")); |
828 |
+ |
TH1F *ThreeSF = allsamples.Draw("ThreeSF","mll",nbins,min,max, xlabel, "events",cutOSSF&&signal&&ThreeJets,mc,luminosity,allsamples.FindSample("TTJets_")); |
829 |
+ |
|
830 |
+ |
can2->cd(1); |
831 |
+ |
|
832 |
+ |
TwoSF->SetFillColor(kWhite); |
833 |
+ |
TwoOF->SetFillColor(kWhite); |
834 |
+ |
ThreeSF->SetFillColor(kWhite); |
835 |
+ |
ThreeOF->SetFillColor(kWhite); |
836 |
+ |
|
837 |
+ |
TPad *kin3 = new TPad("kin3","kin3",0,0,1,1); |
838 |
+ |
kin3->cd(); |
839 |
+ |
TwoOF->Draw("histo"); |
840 |
+ |
TwoSF->Draw("e1,same"); |
841 |
+ |
TLegend *leg_SFOF_Two = make_legend(); |
842 |
+ |
leg_SFOF_Two->SetHeader("t#bar{t} MC:"); |
843 |
+ |
leg_SFOF_Two->AddEntry(TwoOF,"OF, nJets==2","l"); |
844 |
+ |
leg_SFOF_Two->AddEntry(TwoSF,"SF, nJets==2","lp"); |
845 |
+ |
leg_SFOF_Two->Draw(); |
846 |
+ |
save_with_ratio(TwoSF,TwoOF,kin3->cd(),"DoubleRatios/SFOF_Two"); |
847 |
+ |
|
848 |
+ |
TPad *kin4 = new TPad("kin4","kin4",0,0,1,1); |
849 |
+ |
kin4->cd(); |
850 |
+ |
ThreeOF->Draw("histo"); |
851 |
+ |
ThreeSF->Draw("e1,same"); |
852 |
+ |
TLegend *leg_SFOF_Three = make_legend(); |
853 |
+ |
leg_SFOF_Three->SetHeader("t#bar{t} MC:"); |
854 |
+ |
leg_SFOF_Three->AddEntry(TwoOF,"OF, nJet#geq3","l"); |
855 |
+ |
leg_SFOF_Three->AddEntry(TwoSF,"SF, nJets#geq3","lp"); |
856 |
+ |
leg_SFOF_Three->Draw(); |
857 |
+ |
save_with_ratio(ThreeSF,ThreeOF,kin4->cd(),"DoubleRatios/SFOF_Three"); |
858 |
+ |
|
859 |
+ |
|
860 |
+ |
TwoSF->Scale(ThreeSF->Integral()/TwoSF->Integral()); |
861 |
+ |
TPad *kin = new TPad("kin","kin",0,0,1,1); |
862 |
+ |
kin->cd(); |
863 |
+ |
TwoSF->Draw("histo"); |
864 |
+ |
ThreeSF->Draw("e1,same"); |
865 |
+ |
TLegend *leg_SF_Two_Three = make_legend(); |
866 |
+ |
leg_SF_Two_Three->SetHeader("t#bar{t} MC:"); |
867 |
+ |
leg_SF_Two_Three->AddEntry(TwoSF,"#splitline{SF, nJets==2}{ (scaled)}","l"); |
868 |
+ |
leg_SF_Two_Three->AddEntry(ThreeSF,"SF, nJets#geq3","lp"); |
869 |
+ |
leg_SF_Two_Three->Draw(); |
870 |
+ |
save_with_ratio(TwoSF,ThreeSF,kin->cd(),"DoubleRatios/SF_Two_Three"); |
871 |
+ |
|
872 |
+ |
TwoOF->Scale(ThreeOF->Integral()/TwoOF->Integral()); |
873 |
+ |
TPad *kin2 = new TPad("kin2","kin2",0,0,1,1); |
874 |
+ |
kin2->cd(); |
875 |
+ |
TwoOF->Draw("histo"); |
876 |
+ |
ThreeOF->Draw("e1,same"); |
877 |
+ |
TLegend *leg_OF_Two_Three = make_legend(); |
878 |
+ |
leg_OF_Two_Three->SetHeader("t#bar{t} MC:"); |
879 |
+ |
leg_OF_Two_Three->AddEntry(TwoSF,"#splitline{OF, nJets==2}{ (scaled)}","l"); |
880 |
+ |
leg_OF_Two_Three->AddEntry(ThreeSF,"OF, nJets#geq3","lp"); |
881 |
+ |
leg_OF_Two_Three->Draw(); |
882 |
+ |
save_with_ratio(TwoOF,ThreeOF,kin2->cd(),"DoubleRatios/OF_Two_Three"); |
883 |
+ |
|
884 |
+ |
} |
885 |
+ |
|
886 |
+ |
|
887 |
|
void do_kinematic_plots(string mcjzb, string datajzb, bool doPF=false) |
888 |
|
{ |
889 |
|
// switch_overunderflow(true); |
891 |
|
bool nolog=false; |
892 |
|
|
893 |
|
bool doOFSF = false; |
894 |
< |
bool doKin = false; |
895 |
< |
bool doDataComp = true; |
894 |
> |
bool doKin = true; |
895 |
> |
bool doDataComp = false; |
896 |
> |
bool MakeTwoThreeJetComparison = false; |
897 |
|
|
898 |
|
|
899 |
|
if(doPF) write_warning(__FUNCTION__,"Please use caution when trying to produce PF plots; not all versions of the JZB trees have these variables!"); |
903 |
|
mll_low=20; |
904 |
|
mll_hi=320; |
905 |
|
} |
906 |
+ |
|
907 |
+ |
if(MakeTwoThreeJetComparison) MakeElegantTwoThreeComparisons(); |
908 |
|
|
909 |
|
if ( doOFSF ) { |
910 |
|
make_OFSF_plots("mll", "met[4]>100", 60, 20., 320., false, "m_{ll}", "mll"); |
949 |
|
|
950 |
|
TCut cutSignal = cutmass&&cutnJets&&"met[4]>100"; |
951 |
|
|
952 |
< |
/* make_data_comparison_plot("met[4]", cutOSSF,60, 0., 300.,-1., true, "pfMET", "met_SF_inclusive"); |
952 |
> |
/* make_data_comparison_plot("numVtx", "",40, -0.5, 39.5,-1., true, "N(Vertices)", "numVtx"); |
953 |
> |
make_data_comparison_plot("pfJetGoodEta[0]", "",50, -3.0, 3.0,-1., true, "N(Jets)", "pfJetGoodEta0"); |
954 |
> |
|
955 |
> |
|
956 |
> |
make_data_comparison_plot("pfJetGoodNum40", cutOSOF,10, -0.5, 9.5,-1., true, "N(Jets)", "njets_OF"); |
957 |
> |
make_data_comparison_plot("met[4]", cutOSSF,60, 0., 300.,-1., true, "pfMET", "met_SF_inclusive"); |
958 |
|
make_data_comparison_plot("met[1]", cutOSSF,60, 0., 300.,-1., true, "type 1 corrected pfMET", "mett1_SF_inclusive"); |
959 |
|
make_data_comparison_plot("met[4]", cutOSOF,60, 0., 300.,-1., true, "pfMET", "met_OF_inclusive"); |
960 |
|
make_data_comparison_plot("met[1]", cutOSOF,60, 0., 300.,-1., true, "type 1 corrected pfMET", "mett1_OF_inclusive"); |
961 |
|
|
962 |
|
make_data_comparison_plot("met[4]", cutnJets&&cutOSSF,60, 0., 300.,-1., true, "pfMET", "met_SF_exclusive"); |
963 |
< |
make_data_comparison_plot("met[1]", cutnJets&&cutOSSF,60, 0., 300.,-1., true, "type 1 corrected pfMET", "mett1_SF_exclusive"); |
963 |
> |
// make_data_comparison_plot("met[1]", cutnJets&&cutOSSF,60, 0., 300.,-1., true, "type 1 corrected pfMET", "mett1_SF_exclusive"); |
964 |
|
make_data_comparison_plot("met[4]", cutnJets&&cutOSOF,60, 0., 300.,-1., true, "pfMET", "met_OF_exclusive"); |
965 |
< |
make_data_comparison_plot("met[1]", cutnJets&&cutOSOF,60, 0., 300.,-1., true, "type 1 corrected pfMET", "mett1_OF_exclusive"); |
965 |
> |
// make_data_comparison_plot("met[1]", cutnJets&&cutOSOF,60, 0., 300.,-1., true, "type 1 corrected pfMET", "mett1_OF_exclusive"); |
966 |
> |
*/ |
967 |
|
|
821 |
– |
*/ |
968 |
|
string basiccutsaved = (const char*)basiccut; |
969 |
|
|
970 |
|
string newbasiccut=basiccutsaved; |
991 |
|
// make_data_comparison_plot("mll", TCut("pfJetGoodNum40>=3&&met[1]>100")&&cutOSOF,60, 0., 300.,-1., true, "mll", "mll_OF_ETH_t1cpfmet"); |
992 |
|
|
993 |
|
|
994 |
< |
// make_data_comparison_plot("mll", cutOSSF,60, 15., 315.,-1., true, "m_{ll}", "mll_SF_inclusive"); |
995 |
< |
// make_data_comparison_plot("mll", cutOSSF&&TCut("id1==0"),60, 15., 315.,-1., true, "m_{ll}", "mll_SF_inclusive_ee"); |
996 |
< |
// make_data_comparison_plot("mll", cutOSSF&&TCut("id1==1"),60, 15., 315.,-1., true, "m_{ll}", "mll_SF_inclusive_mm"); |
997 |
< |
// make_data_comparison_plot("mll", cutOSOF,60, 15., 315.,-1., true, "m_{ll}", "mll_OF_inclusive"); |
994 |
> |
/* make_data_comparison_plot("mll", cutOSSF,60, 15., 315.,-1., true, "m_{ll}", "mll_SF_inclusive"); |
995 |
> |
make_data_comparison_plot("mll", cutOSSF&&TCut("id1==0"),60, 15., 315.,-1., true, "m_{ll}", "mll_SF_inclusive_ee"); |
996 |
> |
make_data_comparison_plot("mll", cutOSSF&&TCut("id1==1"),60, 15., 315.,-1., true, "m_{ll}", "mll_SF_inclusive_mm"); |
997 |
> |
make_data_comparison_plot("mll", cutOSOF,60, 15., 315.,-1., true, "m_{ll}", "mll_OF_inclusive"); |
998 |
|
make_data_comparison_plot("mll", cutnJets&&cutOSSF&&TCut("id1==0"),60, 15., 315.,-1., true, "m_{ll}", "mll_SF_exclusive_ee"); |
999 |
|
make_data_comparison_plot("mll", cutnJets&&cutOSSF&&TCut("id1==1"),60, 15., 315.,-1., true, "m_{ll}", "mll_SF_exclusive_mm"); |
1000 |
|
make_data_comparison_plot("mll", cutnJets&&cutOSSF,60, 15., 315.,-1., true, "m_{ll}", "mll_SF_exclusive"); |
1001 |
|
make_data_comparison_plot("mll", cutnJets&&cutOSOF,60, 15., 315.,-1., true, "m_{ll}", "mll_OF_exclusive"); |
1002 |
< |
/* |
1002 |
> |
*/ |
1003 |
|
make_data_comparison_plot("mll", cutOSSF&&cutSignal&&mllCut, massnbins, 15., 315.,-1., false, "m_{ll}", "mll_SF_sig"); |
1004 |
+ |
make_data_comparison_plot("mll", cutOSOF&&cutSignal&&mllCut, massnbins, 15., 315.,-1., false, "m_{ll}", "mll_OF_sig"); |
1005 |
+ |
|
1006 |
+ |
make_data_comparison_plot("mll", TCut("abs(eta1)<1.4&&abs(eta2)<1.4") && cutOSSF&&cutSignal&&mllCut, massnbins, 15., 315.,-1., false, "m_{ll}", "mll_SF_sig_central"); |
1007 |
+ |
make_data_comparison_plot("mll", TCut("abs(eta1)<1.4&&abs(eta2)<1.4") && cutOSOF&&cutSignal&&mllCut, massnbins, 15., 315.,-1., false, "m_{ll}", "mll_OF_sig_central"); |
1008 |
+ |
|
1009 |
|
make_data_comparison_plot("mll", cutOSSF&&cutSignal&&mllCut&&"pfJetGoodNumBtag30==0", massnbins, 15., 315.,-1., false, "m_{ll}", "mll_SF_sig_btagVeto"); |
1010 |
+ |
make_data_comparison_plot("mll", cutOSOF&&cutSignal&&mllCut&&"pfJetGoodNumBtag30==0", massnbins, 15., 315.,-1., false, "m_{ll}", "mll_OF_sig_btagVeto"); |
1011 |
+ |
|
1012 |
|
make_data_comparison_plot("mll", cutOSSF&&cutSignal&&mllCut&&"pfJetGoodNumBtag30>0", massnbins, 15., 315.,-1., false, "m_{ll}", "mll_SF_sig_AtLeastOneBJet"); |
1013 |
+ |
make_data_comparison_plot("mll", cutOSOF&&cutSignal&&mllCut&&"pfJetGoodNumBtag30>0", massnbins, 15., 315.,-1., false, "m_{ll}", "mll_OF_sig_AtLeastOneBJet"); |
1014 |
|
|
1015 |
+ |
/* |
1016 |
|
make_data_comparison_plot("mll", mllCut&&cutOSOF&&cutSignal, massnbins, 15., 315.,-1., false, "m_{ll}", "mll_OF_sig"); |
1017 |
|
make_data_comparison_plot("mll", cutmass&&cutOSSF&&"met[4]>100&&met[4]<150&&pfJetGoodNum40==2", massnbins, 15., 315.,-1., false, "m_{ll}", "mll_SF_CR"); |
1018 |
|
make_data_comparison_plot("mll", cutmass&&cutOSOF&&"met[4]>100&&met[4]<150&&pfJetGoodNum40==2", massnbins, 15., 315.,-1., false, "m_{ll}", "mll_OF_CR"); |
1021 |
|
make_data_comparison_plot("pfJetGoodNum40", cutOSOF&&cutSignal&&mllCut, 8, 0., 8.,-1., false, "#(jets)", "njets_OF_sig"); |
1022 |
|
make_data_comparison_plot("pfJetGoodNumBtag30", cutOSSF&&cutSignal&&mllCut, 8, 0., 8.,-1., false, "#(b-jets)", "nbjets_SF_sig"); |
1023 |
|
make_data_comparison_plot("pfJetGoodNumBtag30", cutOSOF&&cutSignal&&mllCut, 8, 0., 8.,-1., false, "#(b-jets)", "nbjets_OF_sig"); |
1024 |
< |
*/ |
1024 |
> |
*/ |
1025 |
|
} |
1026 |
|
|
1027 |
|
|
1028 |
|
if ( doKin ) { |
1029 |
|
string mllCut(""); |
1030 |
< |
|
1030 |
> |
/* |
1031 |
> |
make_plain_kin_plot("met[4]",Cut2Str(cutOSOF&&TCut("mll>30&&mll<70&&pfJetGoodNum40==0")),40,0,400,dolog,"PFMET","Debunking/MET_OF_30to70_0j",doPF,true); |
1032 |
> |
make_plain_kin_plot("met[4]",Cut2Str(cutOSOF&&TCut("mll>30&&mll<70&&pfJetGoodNum40==1")),40,0,400,dolog,"PFMET","Debunking/MET_OF_30to70_1j",doPF,true); |
1033 |
> |
make_plain_kin_plot("met[4]",Cut2Str(cutOSOF&&TCut("mll>30&&mll<70&&pfTightHT>100&&pfJetGoodNum40==2")),40,0,400,dolog,"PFMET","Debunking/MET_OF_30to70_2j",doPF,true); |
1034 |
> |
make_plain_kin_plot("met[4]",Cut2Str(cutOSOF&&TCut("mll>30&&mll<70&&pfTightHT>100&&pfJetGoodNum40==3")),40,0,400,dolog,"PFMET","Debunking/MET_OF_30to70_3j",doPF,true); |
1035 |
> |
|
1036 |
> |
make_plain_kin_plot("met[4]",Cut2Str(cutOSOF&&TCut("mll>80&&mll<100&&pfJetGoodNum40==0")),40,0,400,dolog,"PFMET","Debunking/MET_OF_Z_0j",doPF,true); |
1037 |
> |
make_plain_kin_plot("met[4]",Cut2Str(cutOSOF&&TCut("mll>80&&mll<100&&pfJetGoodNum40==1")),40,0,400,dolog,"PFMET","Debunking/MET_OF_Z_1j",doPF,true); |
1038 |
> |
make_plain_kin_plot("met[4]",Cut2Str(cutOSOF&&TCut("mll>80&&mll<100&&pfTightHT>100&&pfJetGoodNum40==2")),40,0,400,dolog,"PFMET","Debunking/MET_OF_Z_2j",doPF,true); |
1039 |
> |
make_plain_kin_plot("met[4]",Cut2Str(cutOSOF&&TCut("mll>80&&mll<100&&pfTightHT>100&&pfJetGoodNum40==3")),40,0,400,dolog,"PFMET","Debunking/MET_OF_Z_3j",doPF,true); |
1040 |
> |
*/ |
1041 |
> |
|
1042 |
> |
make_plain_kin_plot("pfTightHT",Cut2Str(cutOSOF&&cutnJets),120,0,1200,dolog,"H_{T}","HT_3jets_OF",doPF,true); |
1043 |
> |
make_plain_kin_plot("pfTightHT",Cut2Str(cutOSSF&&cutnJets) ,120,0,1200,dolog,"H_{T}","HT_3jets_SF",doPF,true); |
1044 |
> |
make_plain_kin_plot("pfTightHT",Cut2Str(cutOSOF&&cutnJets&&TCut("met[4]>100")),120,0,1200,dolog,"H_{T}","HT_3jets_OF_MET100",doPF,true); |
1045 |
> |
make_plain_kin_plot("pfTightHT",Cut2Str(cutOSSF&&cutnJets&&TCut("met[4]>100")) ,120,0,1200,dolog,"H_{T}","HT_3jets_SF_MET100",doPF,true); |
1046 |
> |
|
1047 |
> |
|
1048 |
> |
make_plain_kin_plot("met[1]",Cut2Str(cutOSOF&&TCut("mll>30&&mll<70&&pfJetGoodNum40==0")),40,0,400,dolog,"PFMET","Debunking/T1MET_OF_30to70_0j",doPF,true); |
1049 |
> |
make_plain_kin_plot("met[1]",Cut2Str(cutOSOF&&TCut("mll>30&&mll<70&&pfJetGoodNum40==1")),40,0,400,dolog,"PFMET","Debunking/T1MET_OF_30to70_1j",doPF,true); |
1050 |
> |
make_plain_kin_plot("met[1]",Cut2Str(cutOSOF&&TCut("mll>30&&mll<70&&pfTightHT>100&&pfJetGoodNum40==2")),40,0,400,dolog,"PFMET","Debunking/T1MET_OF_30to70_2j",doPF,true); |
1051 |
> |
make_plain_kin_plot("met[1]",Cut2Str(cutOSOF&&TCut("mll>30&&mll<70&&pfTightHT>100&&pfJetGoodNum40==3")),40,0,400,dolog,"PFMET","Debunking/T1MET_OF_30to70_3j",doPF,true); |
1052 |
> |
|
1053 |
> |
make_plain_kin_plot("met[1]",Cut2Str(cutOSOF&&TCut("mll>80&&mll<100&&pfJetGoodNum40==0")),40,0,400,dolog,"PFMET","Debunking/T1MET_OF_Z_0j",doPF,true); |
1054 |
> |
make_plain_kin_plot("met[1]",Cut2Str(cutOSOF&&TCut("mll>80&&mll<100&&pfJetGoodNum40==1")),40,0,400,dolog,"PFMET","Debunking/T1MET_OF_Z_1j",doPF,true); |
1055 |
> |
make_plain_kin_plot("met[1]",Cut2Str(cutOSOF&&TCut("mll>80&&mll<100&&pfTightHT>100&&pfJetGoodNum40==2")),40,0,400,dolog,"PFMET","Debunking/T1MET_OF_Z_2j",doPF,true); |
1056 |
> |
make_plain_kin_plot("met[1]",Cut2Str(cutOSOF&&TCut("mll>80&&mll<100&&pfTightHT>100&&pfJetGoodNum40==3")),40,0,400,dolog,"PFMET","Debunking/T1MET_OF_Z_3j",doPF,true); |
1057 |
> |
|
1058 |
> |
/*make_plain_kin_plot("met[4]",Cut2Str(cutOSSF&&cutnJets&&TCut("mll>20&&mll<70")),50,0,300,dolog,"PFMET","MET_SF_20to70",doPF,true); |
1059 |
> |
make_plain_kin_plot("met[4]",Cut2Str(cutOSOF&&cutnJets&&TCut("mll>20&&mll<70")),50,0,300,dolog,"PFMET","MET_OF_20to70",doPF,true); |
1060 |
> |
|
1061 |
> |
make_plain_kin_plot("met[4]",Cut2Str(cutOSSF&&cutnJets&&TCut("mll>120")),50,0,300,dolog,"PFMET","MET_SF_above120",doPF,true); |
1062 |
> |
make_plain_kin_plot("met[4]",Cut2Str(cutOSOF&&cutnJets&&TCut("mll>120")),50,0,300,dolog,"PFMET","MET_OF_above120",doPF,true);*/ |
1063 |
> |
|
1064 |
> |
/* make_plain_kin_plot("met[4]",Cut2Str(cutOSSF&&TCut("pfJetGoodNum40==2")&&TCut("mll>20&&mll<70")),50,0,300,dolog,"PFMET","MET_SF_20to70___2jetsonly",doPF,true); |
1065 |
> |
make_plain_kin_plot("met[4]",Cut2Str(cutOSOF&&TCut("pfJetGoodNum40==2")&&TCut("mll>20&&mll<70")),50,0,300,dolog,"PFMET","MET_OF_20to70___2jetsonly",doPF,true); |
1066 |
> |
|
1067 |
> |
make_plain_kin_plot("met[4]",Cut2Str(cutOSSF&&TCut("pfJetGoodNum40==2")&&TCut("mll>120")),50,0,300,dolog,"PFMET","MET_SF_above120___2jetsonly",doPF,true); |
1068 |
> |
make_plain_kin_plot("met[4]",Cut2Str(cutOSOF&&TCut("pfJetGoodNum40==2")&&TCut("mll>120")),50,0,300,dolog,"PFMET","MET_OF_above120___2jetsonly",doPF,true); |
1069 |
> |
*/ |
1070 |
> |
write_info(__FUNCTION__,"Last plot"); |
1071 |
> |
|
1072 |
> |
|
1073 |
> |
|
1074 |
> |
|
1075 |
> |
|
1076 |
> |
|
1077 |
> |
|
1078 |
> |
|
1079 |
> |
return; |
1080 |
> |
|
1081 |
> |
|
1082 |
> |
|
1083 |
|
make_kin_plot("pfJetGoodPt[0]/pfJetGoodPt[1]","",45,1,10,dolog,"pt_{j}^{1}/pt_{j}^{2}","j1j2ratio",doPF,true); |
1084 |
|
make_kin_plot("TMath::Abs(pfJetDphiMet[0])","",32,0,3.2,nolog,"|#Delta#phi(jet1,MET)|","dphiJ1MET",doPF,true); |
1085 |
|
// Plots in signal region |
1200 |
|
if (ymax>ymin) datahisto->SetMaximum(ymax); |
1201 |
|
lm3histo->SetLineStyle(2); |
1202 |
|
datahisto->Draw("e1"); |
1203 |
< |
mcstack.Draw("same"); |
1203 |
> |
mcstack.Draw("histo,same"); |
1204 |
|
datahisto->Draw("same,e1"); |
1205 |
|
lm3histo->Draw("hist,same"); |
1206 |
|
TLegend *kinleg = allsamples.allbglegend((sRegions[iregion]+(ijzb?"neg":"pos")).c_str()); |
1783 |
|
// THStack kostack = allsamples.DrawStack("RcorrJZBeemm",jzb.c_str(),nbins,low,hi, "JZB [GeV]", "events", cutmass&&cutOSSF&&cutnJets,!is_data, luminosity,use_signal); |
1784 |
|
blankback->Draw(); |
1785 |
|
// kostack.Draw("same"); |
1786 |
< |
predcomposition.Draw(); |
1786 |
> |
predcomposition.Draw("hist"); |
1787 |
|
Bpred->Draw("hist,same"); |
1788 |
|
//analytical_function[0]->Draw("same"); analytical_function[1]->Draw("same");analytical_function[2]->Draw("same"); |
1789 |
|
RcorrJZBeemm->Draw("e1x0,same");//HAVE IT ON TOP! |
2157 |
|
datahisto->SetMinimum(0.1); |
2158 |
|
datahisto->SetMarkerSize(DataMarkerSize); |
2159 |
|
datahisto->Draw("e1"); |
2160 |
< |
mcstack.Draw("same"); |
2160 |
> |
mcstack.Draw("histo,same"); |
2161 |
|
datahisto->Draw("same,e1"); |
2162 |
|
|
2163 |
|
TLegend *leg; |
2188 |
|
datahisto->SetMinimum(0.1); |
2189 |
|
datahisto->SetMarkerSize(DataMarkerSize); |
2190 |
|
datahisto->Draw("e1"); |
2191 |
< |
mcstack.Draw("same"); |
2191 |
> |
mcstack.Draw("histo,same"); |
2192 |
|
datahisto->Draw("same,e1"); |
2193 |
|
leg->SetHeader(""); |
2194 |
|
leg->Draw(); |