Annotation of ttbar/p20_taujets_note/eff_e3jets.C, revision 1.1

1.1     ! uid12904    1: #include <iostream>
        !             2: #include <iomanip>
        !             3: #include <fstream>
        !             4: #include <vector>
        !             5: #include <map>
        !             6: #include <string>
        !             7: #include <cmath>
        !             8: #include <stdio.h>
        !             9: 
        !            10: int eff_e3jets() {
        !            11:   
        !            12: const int dim = 6;
        !            13:  double MH[dim], deltaMH[dim];
        !            14:  double effWW[dim], effWH[dim], effHH[dim];
        !            15:  double deltaeffWW[dim], deltaeffWH[dim], deltaeffHH[dim];
        !            16: 
        !            17:  //
        !            18:  // MH values
        !            19:  //
        !            20:  MH[0] = 3.0;
        !            21:  MH[1] = 3.5;
        !            22:  MH[2] = 4.0;
        !            23:  MH[3] = 4.5;
        !            24:  MH[4] = 5.0;
        !            25: 
        !            26:  deltaMH[0] = 0.0;
        !            27:  deltaMH[1] = 0.0;
        !            28:  deltaMH[2] = 0.0;
        !            29:  deltaMH[3] = 0.0;
        !            30:  deltaMH[4] = 0.0;
        !            31: 
        !            32:  //
        !            33:  //  effWW values
        !            34:  //
        !            35:  effWW[0] = 0.1507;
        !            36:  effWW[1] = 0.1559;
        !            37:  effWW[2] = 0.1468;
        !            38:  effWW[3] = 0.1511;
        !            39:  effWW[4] = 0.1552;
        !            40: 
        !            41:  //
        !            42: 
        !            43: //------------------
        !            44: 
        !            45:     TCanvas *c1 = new TCanvas("c1","1",1000,800);
        !            46:     c1->Clear();
        !            47:     //c1->SetLogy();  
        !            48:     c1->SetGridy();  
        !            49: 
        !            50:     // Draw a frame
        !            51:     TH1F *frame = c1->DrawFrame(0.0,5e-2,6.0,0.2);
        !            52:   
        !            53:     frame->GetXaxis()->SetTitle("metl cut");
        !            54:     frame->GetXaxis()->SetTitleSize(.040);    
        !            55:     frame->GetXaxis()->SetLabelSize(.05);    
        !            56:     frame->GetXaxis()->SetTitleColor(1);
        !            57:     frame->GetXaxis()->SetTitleOffset(1.2);
        !            58:     frame->GetXaxis()->SetNdivisions(508,true);
        !            59:   
        !            60:     frame->GetYaxis()->SetTitle("RMS");
        !            61:     frame->GetYaxis()->SetTitleSize(.040);
        !            62:     frame->GetYaxis()->SetLabelSize(.05);  
        !            63:     frame->GetYaxis()->SetTitleColor(1);
        !            64:     frame->GetYaxis()->SetTitleOffset(1.4);
        !            65:     // Draw the frame
        !            66:     frame->SetTitle("metl x RMS");
        !            67:     frame->Draw();
        !            68:   
        !            69:     TGraphErrors *grcc0 = new TGraphErrors(dim, MH, effWW, deltaMH, deltaeffWW);
        !            70:     grcc0-> SetMarkerColor(kRed);
        !            71:     grcc0-> SetMarkerStyle(20);
        !            72:     grcc0-> SetMarkerSize(1.2);
        !            73:     grcc0-> SetLineWidth(2);
        !            74:     grcc0-> Draw("p");
        !            75: 
        !            76: 
        !            77:     // Legend: 
        !            78:     //  TLegend *leg = new TLegend(x1,y1,x2,y2,NULL,"brNDC");
        !            79:     TLegend *leg = new TLegend(0.72,0.75,0.90,0.90,NULL,"brNDC");
        !            80:     leg->SetTextSize(0.05);
        !            81:     leg->SetFillStyle(0);
        !            82:     leg->SetFillColor(0);
        !            83:     leg->SetFillStyle(1001);
        !            84:     //  leg->SetBorderSize(0)        !            85: 
        !            86: //    entry=leg->AddEntry(grcc0,"WW","p");
        !            87: //    entry->SetTextFont(22);
        !            88: //    leg->Draw();
        !            89: 
        !            90:     c1->Modified();
        !            91:     c1->Print("METsig-RMS.eps");
        !            92:     c1->Print("METsig-RMS.gif");
        !            93:   
        !            94:   return 0;
        !            95: }
        !            96: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>