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

Comparing UserCode/HSCPValidation/scripts/MakeHLT.C (file contents):
Revision 1.1 by carrillo, Fri Jan 29 08:49:44 2010 UTC vs.
Revision 1.3 by carrillo, Thu Feb 4 14:55:19 2010 UTC

# Line 22 | Line 22 | void MakeHLT(){
22  
23    const int N = 101;  
24  
25 <  TH1F * histo = new TH1F("histo",name.c_str(),101,0.5,101+0.5);
25 >  TH1F * histo = new TH1F("histo",name.c_str(),91,0.5,91+0.5);
26    int bin = 0;
27  
28 <  while(!data.eof() && bin<101){
28 >  while(!data.eof() && bin<90){
29      bin++;
30      data >>label>>obs>>exp;
31      histo->GetXaxis()->SetBinLabel(bin,label.c_str());
# Line 45 | Line 45 | void MakeHLT(){
45    histo->SetMaximum(1.1);
46    histo->SetMinimum(0.);
47    histo->GetXaxis()->LabelsOption("v");
48 <  histo->SetLabelSize(0.03);
48 >  histo->SetLabelSize(0.02);
49 >  histo->GetYaxis()->SetTitle("Efficiency(%)");
50    Ca0->SaveAs((name+".png").c_str());
51  
52    exit(0);  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines