ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/rootEWKanalyzer/plotDataMCwSignal.C
(Generate patch)

Comparing UserCode/rootEWKanalyzer/plotDataMCwSignal.C (file contents):
Revision 1.3 by jueugste, Mon Sep 20 14:23:15 2010 UTC vs.
Revision 1.4 by jueugste, Tue Dec 21 15:25:39 2010 UTC

# Line 80 | Line 80 | void plotDataMCwSignal(){
80  
81   //     }
82      
83 +
84 +      cout<<"here"<<endl;
85 +
86      islog=0;
87   //     if(name.Index(eta)>-1||name.Index(phi)>-1||name.Index(hits)>-1 || name.Index(emf)>-1 || name.Index(CHF)>-1 || name.Index(NHF)>-1|| name.Index(NEF)>-1||name.Index(cons)>-1) islog=0;
88      TH1D * h_data= data->Get(key->GetName());
# Line 88 | Line 91 | void plotDataMCwSignal(){
91      TH1D * h_ttbar=mcTTbar->Get(key->GetName());
92      TH1D * h_sig=mcSignal->Get(key->GetName());
93      // only for filled histos
94 < //     if( h_mc->GetEntries()!=0) {
94 >     if( h_mc->GetEntries()!=0) {
95 >
96        //
97  
98  
99 < //     cout<<"here"<<endl;
99 >     cout<<"here"<<endl;
100 >     }
101 > //       h_data->SetTitle(overallTitle);
102 > //       h_mc->SetTitle(overallTitle);
103 > //       h_other->SetTitle(overallTitle);
104 > //       h_ttbar->SetTitle(overallTitle);
105 > //       h_sig->SetTitle(overallTitle);
106 >
107 >
108  
97      h_data->SetTitle(overallTitle);
98      h_mc->SetTitle(overallTitle);
99      h_other->SetTitle(overallTitle);
100      h_ttbar->SetTitle(overallTitle);
101      h_sig->SetTitle(overallTitle);
109   //       if(name.Index(pt)>-1) {
110   //      h_data->SetYTitle("Jets/GeV");
111   //      h_mc->SetYTitle("Jets/GeV");
# Line 142 | Line 149 | void plotDataMCwSignal(){
149  
150  
151   //     h_mc->Scale(scalefactor);
152 <    h_mc->Rebin(rebin);
153 <    h_sig->Rebin(rebin);
154 <    h_data->Rebin(rebin);
152 >
153 >
154 > //     h_mc->Rebin(rebin);
155 > //     h_sig->Rebin(rebin);
156 > //     h_data->Rebin(rebin);
157  
158   //     h_mc->SetMaximum(1.5*h_data->GetMaximum());
159  
160  
161 <    h_mc->SetFillColor(colour);
153 <    h_mc->SetLineColor(1);
161 >    h_data->SetMarkerStyle(20);
162      h_other->SetFillColor(8);
163      h_other->SetLineColor(1);
164      h_ttbar->SetFillColor(15);
165      h_ttbar->SetLineColor(1);
166      h_sig->SetFillColor(46);
167      h_sig->SetLineColor(1);
168 <    h_data->SetMarkerStyle(20);
168 >    h_mc->SetFillColor(colour);
169 >    h_mc->SetLineColor(1);
170  
171  
172      //    h_data->SetTitle(overallTitle);
# Line 172 | Line 181 | void plotDataMCwSignal(){
181      MoveStatsAndDraw(h_data , h_mc, h_other, h_ttbar, h_sig, legDataTitle, legMCTitle, legMCsigTitle, legMCotherTitle, legMCttbarTitle, overallTitle, CMen, islog, colour, false, cuts1, cuts2, isptplot, normalizeToArea);
182  
183      char histname [256];
184 <    sprintf (histname, "plotting/%s.gif", key->GetName());
184 >    sprintf (histname, "plottingTest/%s.gif", key->GetName());
185   //     cout<<key->GetName()<<endl;
186      char test [256];//="s_El_ElCharge_";
187      //    index++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines