12 TFile *
input =
new TFile(
"/sphenix/user/gregtom3/data/Fall2018/JPsi_reco_studies/theEvents.root",
"READ");
15 TTree *
t = (TTree*)input->Get(
"Tree");
16 TH1F *h1_p_1 =
new TH1F(
"h1_p_1",
"h1_p_1",100,-4,4);
17 TH1F *h1_p_2 =
new TH1F(
"h1_p_2",
"h1_p_2",100,0,50);
18 TH1F *h1_p_3 =
new TH1F(
"h1_p_3",
"h1_p_3",100,0,50);
19 TH1F *h1_p_4 =
new TH1F(
"h1_p_4",
"h1_p_4",100,0,50);
20 TH2F* h2_p =
new TH2F(
"h2_p",
"h2_p",200,-6,6,200,0,2);
33 t->Draw(
"2*18*se_p_reco*(1-cos(3.14159265-2*atan(exp(-se_eta_reco)))):jpsi_eta_reco>>h2_p",
"sp_p_truth>274",
"colz");
34 h2_p->SetTitle(
"x vs. Q2 (18x275 Sartre DVMP Reco)");
35 h2_p->GetXaxis()->SetTitle(
"Reco x");
36 h2_p->GetYaxis()->SetTitle(
"Reco Q2");
43 TAxis *axis = h->GetYaxis();
44 int bins = axis->GetNbins();
46 Axis_t from = axis->GetXmin();
47 Axis_t to = axis->GetXmax();
48 Axis_t
width = (to - from) / bins;
49 Axis_t *new_bins =
new Axis_t[bins + 1];
51 for (
int i = 0;
i <=
bins;
i++) {
52 new_bins[
i] = TMath::Power(10, from +
i * width);
54 axis->Set(bins, new_bins);
61 TAxis *axis = h->GetXaxis();
62 int bins = axis->GetNbins();
64 Axis_t from = axis->GetXmin();
65 Axis_t to = axis->GetXmax();
66 Axis_t
width = (to - from) / bins;
67 Axis_t *new_bins =
new Axis_t[bins + 1];
69 for (
int i = 0;
i <=
bins;
i++) {
70 new_bins[
i] = TMath::Power(10, from +
i * width);
72 axis->Set(bins, new_bins);