Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reconstruction_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
reconstruction_benchmarks
Commits
3fd2e784
Commit
3fd2e784
authored
3 years ago
by
Alex Jentsch
Browse files
Options
Downloads
Patches
Plain Diff
Renaming a few histos and getting some familiarity with everything.
parent
f29ca606
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/far_forward/scripts/hits_far_forward_protons.cxx
+17
-17
17 additions, 17 deletions
benchmarks/far_forward/scripts/hits_far_forward_protons.cxx
with
17 additions
and
17 deletions
benchmarks/far_forward/scripts/hits_far_forward_protons.cxx
+
17
−
17
View file @
3fd2e784
...
...
@@ -117,21 +117,21 @@ int hits_far_forward_protons(const char* fname = "sim_far_forward_protons.root")
auto
hEndcap_Nhits
=
df0
.
Histo1D
({
"hEndcap_Nhits"
,
"; #theta [deg.]"
,
20
,
0
,
20
},
"N_EndcapHits"
);
//auto hVtxBarrel_Nhits = df0.Histo1D({"hVtxBarrel_Nhits", "; #theta [deg.]", 20, 0, 20 }, "N_VtxBarrelHits");
auto
hB
arrel_N
theta
=
df0
.
Histo1D
({
"
hBarrel_N
theta"
,
"; #theta [deg.]"
,
2
0
,
0
,
1
80
},
"theta0"
);
auto
hEndcap_Ntheta
=
df0
.
Histo1D
({
"hEndcap_Ntheta"
,
"; #theta [deg.]"
,
20
,
0
,
180
},
"theta0"
);
auto
hB
0_
theta
=
df0
.
Histo1D
({
"theta
_b0
"
,
"; #theta [deg.]"
,
10
0
,
0
,
1
.5
},
"theta0"
);
//
auto hEndcap_Ntheta = df0.Histo1D({"hEndcap_Ntheta", "; #theta [deg.]", 20, 0, 180 }, "theta0");
//auto hVtxBarrel_Ntheta = df0.Histo1D({"hVtxBarrel_Ntheta", "; #theta [deg.]", 20, 0, 180 }, "theta0");
auto
c
=
new
TCanvas
();
auto
hs
=
new
THStack
(
"n_hits"
,
"; #theta "
);
auto
h1
=
(
TH1D
*
)
hBarrel_N_vs_theta
->
Clone
();
auto
h2
=
(
TH1D
*
)
hB
arrel_N
theta
->
Clone
();
auto
h2
=
(
TH1D
*
)
hB
0_
theta
->
Clone
();
h1
->
Divide
(
h2
);
hs
->
Add
(
h1
);
h1
=
(
TH1D
*
)
hEndcap_N_vs_theta
->
Clone
();
h2
=
(
TH1D
*
)
hEndcap_Ntheta
->
Clone
();
h1
->
Divide
(
h2
);
//
h1 = (TH1D*) hEndcap_N_vs_theta->Clone();
//
h2 = (TH1D*) hEndcap_Ntheta->Clone();
//
h1->Divide(h2);
h1
->
SetLineColor
(
2
);
hs
->
Add
(
h1
);
//
hs->Add(h1);
//h1 = (TH1D*) hVtxBarrel_vs_theta->Clone();
//h1->SetLineColor(4);
//h1->SetFillStyle(3001);
...
...
@@ -144,16 +144,16 @@ int hits_far_forward_protons(const char* fname = "sim_far_forward_protons.root")
c
=
new
TCanvas
();
hs
=
new
THStack
(
"theta"
,
"; #theta "
);
h1
=
(
TH1D
*
)
hBarrel_N_vs_theta
->
Clone
();
h2
=
(
TH1D
*
)
hB
arrel_N
theta
->
Clone
();
//
h1 = (TH1D*) hBarrel_N_vs_theta->Clone();
h2
=
(
TH1D
*
)
hB
0_
theta
->
Clone
();
//h1->Divide(h2);
hs
->
Add
(
h2
);
h1
=
(
TH1D
*
)
hEndcap_N_vs_theta
->
Clone
();
h2
=
(
TH1D
*
)
hEndcap_Ntheta
->
Clone
();
//
h1 = (TH1D*) hEndcap_N_vs_theta->Clone();
//
h2 = (TH1D*) hEndcap_Ntheta->Clone();
//h1->Divide(h2);
h1
->
SetLineColor
(
2
);
h2
->
SetLineColor
(
2
);
hs
->
Add
(
h2
);
//
h2->SetLineColor(2);
//
hs->Add(h2);
//h1 = (TH1D*) hVtxBarrel_vs_theta->Clone();
//h1->SetLineColor(4);
//h1->SetFillStyle(3001);
...
...
@@ -166,12 +166,12 @@ int hits_far_forward_protons(const char* fname = "sim_far_forward_protons.root")
c
=
new
TCanvas
();
hs
=
new
THStack
(
"hits"
,
"; hits "
);
h1
=
(
TH1D
*
)
hB
arrel_Nhits
->
Clone
();
h1
=
(
TH1D
*
)
hB
0_theta
->
Clone
();
hs
->
Add
(
h1
);
h1
=
(
TH1D
*
)
hEndcap_Nhits
->
Clone
();
//
h1 = (TH1D*) hEndcap_Nhits->Clone();
h1
->
SetLineColor
(
2
);
h2
->
SetLineColor
(
2
);
hs
->
Add
(
h2
);
//
h2->SetLineColor(2);
//
hs->Add(h2);
//h1 = (TH1D*) hVtxBarrel_Nhits->Clone();
//h1->SetLineColor(4);
//h1->SetFillStyle(3001);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment