Fork me on GitHub

Changeset 60 in svn


Ignore:
Timestamp:
Nov 27, 2008, 8:53:09 PM (16 years ago)
Author:
severine ovyn
Message:

final version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/routines/resolutions.C

    r39 r60  
    8282  if(params[2]==0.000000)sprintf(tempResol,"#frac{#sigma(E_{T}^{rec}/E_{T}^{MC})}{<E_{T}^{rec}/E_{T}^{MC}>} = #frac{%f}{#sqrt{E_{T}^{MC}}} #oplus %f",params[1]/100,params[0]/100);
    8383  else sprintf(tempResol,"#frac{#sigma(E_{T}^{rec}/E_{T}^{MC})}{<E_{T}^{rec}/E_{T}^{MC}>} = #frac{%f}{#sqrt{E_{T}^{MC}}} #oplus #frac{%f}{E_{T}^{MC}} #oplus %f",params[1]/100,params[2]/100,params[0]/100);
    84   
     84 
    8585  TPaveText *leg1 = MakeTPave(0.4,0.6,0.8,0.65,tempResol);
    8686  leg1->Draw();
    8787
     88  TPaveText *events = MakeTPave(0.2,0.75,0.35,0.8,"Events: pp #rightarrow gg ");
     89  events->Draw();
     90
     91
    8892  TPaveText *Delphes = MakeTPave(0.2,0.15,0.35,0.2,"MG/ME + Delphes");
    8993  Delphes->Draw();
     
    102106  TTree *Analyze = (TTree*)f1->Get("Analysis");
    103107 
    104   const Int_t numBin=9;
    105   double bins[numBin]={0,20,40,60,80,100,150,220,400};
     108  const Int_t numBin=6;
     109  double bins[numBin]={0,20,40,60,80,140};
    106110  TProfile *ETSminusET = new TProfile("ETSminusET","Electron resolution: E_{T}^{rec}/E_{T}^{mc}",(numBin-1),bins,-10,10);
    107111 
     
    173177  Delphes->Draw();
    174178 
    175   TPaveText *events = MakeTPave(0.2,0.75,0.35,0.8,"t#bar{t} #rightarrow l^{+}l^{-}#nu#bar{#nu}b#bar{b}");
     179  TPaveText *events = MakeTPave(0.2,0.75,0.35,0.8,"Events: WHq'#rightarrow W#tau#tauq'#rightarrowjjl#tauq', m_{H}=150 GeV ");
    176180  events->Draw();
    177181 
     
    188192  TTree *Analyze = (TTree*)f1->Get("Analysis");
    189193 
    190   TCanvas *ct = new TCanvas("ct","Tau information",0,0,1000,425);
    191   ct->cd(); int frame=0;
    192   ct->Divide(2,1);
    193  
    194   ct->cd(++frame);
     194  TCanvas *ct1 = new TCanvas("ct1","Tau information",100,100,600,450);
     195  ct1->cd();
     196 
    195197  TH1F *tauEnergy =MakeNormTH1F(20,0.8,1,Analyze,"TauJetPTResol.EnergieCen>>tauEnergy",1, 0, 1,2,false);
    196198  tauEnergy->Draw();
     
    204206  TPaveText *ctau = MakeTPave(0.3,0.75,0.45,0.8,"C_{#tau} = #frac{#sum E^{towers} (#DeltaR = 0.15)}{E^{jet}}");
    205207  ctau->Draw();
    206   TPaveText *events1 = MakeTPave(0.3,0.65,0.45,0.7,"Events: t#bar{t} #rightarrow l^{+}#nul^{-}#bar{#nu}b#bar{b}");
     208  TPaveText *events1 = MakeTPave(0.3,0.65,0.45,0.7,"Events: WHq'#rightarrow W#tau#tauq'#rightarrowjjl#tauq', m_{H}=150 GeV ");
    207209  events1->Draw();
    208210 
    209211 
    210   ct->cd(++frame);
     212  TCanvas *ct2 = new TCanvas("ct2","Tau information",100,100,600,450);
     213  ct2->cd();
    211214  TH1F *NumTrack =MakeNormTH1F(6,0,6,Analyze,"TauJetPTResol.NumTrack>>NumTrack",1, 0, 1,2,false);
    212215  NumTrack->Draw();
     
    219222  TPaveText *numtracks = MakeTPave(0.6,0.75,0.85,0.8,"#DeltaR < 0.4, p_{T}^{track} > 2 GeV");
    220223  numtracks->Draw();
    221   TPaveText *events = MakeTPave(0.6,0.65,0.85,0.7,"Events: t#bar{t} #rightarrow l^{+}#nul^{-}#bar{#nu}b#bar{b}");
     224  TPaveText *events = MakeTPave(0.6,0.65,0.85,0.7,"Events: WHq'#rightarrow W#tau#tauq'#rightarrowjjl#tauq', m_{H}=150 GeV ");
    222225  events->Draw();
    223226   
     
    230233  gROOT->Reset();
    231234 
    232   TFile *f1 = new TFile("test2.root","read");
     235  TFile *f1 = new TFile("PTMIS.root","read");
    233236  TTree *Analyze = (TTree*)f1->Get("Analysis");
    234237 
    235238  TF1 *fitfun = new TF1("user","[0]*sqrt(x)",0,600);
    236239  const Int_t numBin=7;
    237 //  double bins[numBin]={10,100,150,200,250,300,350,400,450,500};
    238240  double bins[numBin]={200,250,300,350,400,450,500};
    239 //  double bins[numBin]={0,10,20,30,40,50,60,70};
    240241  TProfile *ETSoverET = new TProfile("ETSoverET","ETmis resol",(numBin-1),bins,-1000,1000);
    241   Analyze->Draw("ETmisResol.ExSmeare:ETmisResol.SEt>>ETSoverET");
    242   Analyze->Fit("user","RQ");
    243   Analyze->Fit("user","RQ");
    244242 
    245243 
     
    313311void General()
    314312{
    315   //JetResol();
    316   //ElecResol();
     313  JetResol();
     314  ElecResol();
    317315  ETmisResol();
    318   //TauJetInfo();
    319  
    320 }
    321 
    322 
     316  TauJetInfo();
     317 
     318}
     319
     320
Note: See TracChangeset for help on using the changeset viewer.