Changeset 60 in svn
- Timestamp:
- Nov 27, 2008, 8:53:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/routines/resolutions.C
r39 r60 82 82 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); 83 83 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 85 85 TPaveText *leg1 = MakeTPave(0.4,0.6,0.8,0.65,tempResol); 86 86 leg1->Draw(); 87 87 88 TPaveText *events = MakeTPave(0.2,0.75,0.35,0.8,"Events: pp #rightarrow gg "); 89 events->Draw(); 90 91 88 92 TPaveText *Delphes = MakeTPave(0.2,0.15,0.35,0.2,"MG/ME + Delphes"); 89 93 Delphes->Draw(); … … 102 106 TTree *Analyze = (TTree*)f1->Get("Analysis"); 103 107 104 const Int_t numBin= 9;105 double bins[numBin]={0,20,40,60,80,1 00,150,220,400};108 const Int_t numBin=6; 109 double bins[numBin]={0,20,40,60,80,140}; 106 110 TProfile *ETSminusET = new TProfile("ETSminusET","Electron resolution: E_{T}^{rec}/E_{T}^{mc}",(numBin-1),bins,-10,10); 107 111 … … 173 177 Delphes->Draw(); 174 178 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 "); 176 180 events->Draw(); 177 181 … … 188 192 TTree *Analyze = (TTree*)f1->Get("Analysis"); 189 193 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 195 197 TH1F *tauEnergy =MakeNormTH1F(20,0.8,1,Analyze,"TauJetPTResol.EnergieCen>>tauEnergy",1, 0, 1,2,false); 196 198 tauEnergy->Draw(); … … 204 206 TPaveText *ctau = MakeTPave(0.3,0.75,0.45,0.8,"C_{#tau} = #frac{#sum E^{towers} (#DeltaR = 0.15)}{E^{jet}}"); 205 207 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 "); 207 209 events1->Draw(); 208 210 209 211 210 ct->cd(++frame); 212 TCanvas *ct2 = new TCanvas("ct2","Tau information",100,100,600,450); 213 ct2->cd(); 211 214 TH1F *NumTrack =MakeNormTH1F(6,0,6,Analyze,"TauJetPTResol.NumTrack>>NumTrack",1, 0, 1,2,false); 212 215 NumTrack->Draw(); … … 219 222 TPaveText *numtracks = MakeTPave(0.6,0.75,0.85,0.8,"#DeltaR < 0.4, p_{T}^{track} > 2 GeV"); 220 223 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 "); 222 225 events->Draw(); 223 226 … … 230 233 gROOT->Reset(); 231 234 232 TFile *f1 = new TFile(" test2.root","read");235 TFile *f1 = new TFile("PTMIS.root","read"); 233 236 TTree *Analyze = (TTree*)f1->Get("Analysis"); 234 237 235 238 TF1 *fitfun = new TF1("user","[0]*sqrt(x)",0,600); 236 239 const Int_t numBin=7; 237 // double bins[numBin]={10,100,150,200,250,300,350,400,450,500};238 240 double bins[numBin]={200,250,300,350,400,450,500}; 239 // double bins[numBin]={0,10,20,30,40,50,60,70};240 241 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");244 242 245 243 … … 313 311 void General() 314 312 { 315 //JetResol();316 //ElecResol();313 JetResol(); 314 ElecResol(); 317 315 ETmisResol(); 318 //TauJetInfo();319 320 } 321 322 316 TauJetInfo(); 317 318 } 319 320
Note:
See TracChangeset
for help on using the changeset viewer.