Skip to content
Snippets Groups Projects
Commit bd29ebf1 authored by clantz's avatar clantz
Browse files

Changed binning to match measurement. Added Z-axis range set

parent 30810e5f
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ int main(int argc, char *argv[]){
t->SetBranchAddress("Z",&z);
TCanvas *c = new TCanvas("Data","Data",1280,720);
TH2D *h = new TH2D("eff","Relative Efficiency",40,-82,82,40,-42.875,42.875);
TH2D *h = new TH2D("eff","Relative Efficiency",44,-82,82,21,-42.875,42.875);
int nEvents = t->GetEntries();
for(int ev = 0; ev < nEvents; ev++){
......@@ -37,6 +37,7 @@ int main(int argc, char *argv[]){
gStyle->SetOptStat(0);
h->Scale(1.0/h->GetMaximum());
h->Draw("COLZ");
h->SetAxisRange(0.4,1.0,"Z");
c->Print( Form("%s.png",name.c_str()) );
delete f;
return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment