Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reconstruction_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
22
Issue boards
Milestones
Wiki
Code
Merge requests
21
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
07686896
Commit
07686896
authored
3 years ago
by
Maria Zurek
Browse files
Options
Downloads
Patches
Plain Diff
Fix problem with undefined variable
parent
3b1854f8
No related branches found
No related tags found
1 merge request
!153
Draft: Resolve "Add energy scan for Barrel Ecal"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/imaging_ecal/scripts/emcal_barrel_energy_scan_analysis.cxx
+6
-6
6 additions, 6 deletions
...maging_ecal/scripts/emcal_barrel_energy_scan_analysis.cxx
with
6 additions
and
6 deletions
benchmarks/imaging_ecal/scripts/emcal_barrel_energy_scan_analysis.cxx
+
6
−
6
View file @
07686896
...
@@ -218,7 +218,7 @@ std::tuple <double, double, double, double, double, double, double, double> extr
...
@@ -218,7 +218,7 @@ std::tuple <double, double, double, double, double, double, double, double> extr
save_canvas
(
c6
,
"EClusterImg"
,
E_label
,
particle_label
);
save_canvas
(
c6
,
"EClusterImg"
,
E_label
,
particle_label
);
}
}
{
TCanvas
*
c8
=
new
TCanvas
(
"c8"
,
"c8"
,
700
,
500
);
TCanvas
*
c8
=
new
TCanvas
(
"c8"
,
"c8"
,
700
,
500
);
hfsamImg
->
GetYaxis
()
->
SetTitleOffset
(
1.4
);
hfsamImg
->
GetYaxis
()
->
SetTitleOffset
(
1.4
);
hfsamImg
->
SetLineWidth
(
2
);
hfsamImg
->
SetLineWidth
(
2
);
...
@@ -237,8 +237,8 @@ std::tuple <double, double, double, double, double, double, double, double> extr
...
@@ -237,8 +237,8 @@ std::tuple <double, double, double, double, double, double, double, double> extr
double
meanImg_err
=
gausImg
->
GetParError
(
1
);
double
meanImg_err
=
gausImg
->
GetParError
(
1
);
double
sigmaImg_err
=
gausImg
->
GetParError
(
2
);
double
sigmaImg_err
=
gausImg
->
GetParError
(
2
);
save_canvas
(
c8
,
"fsamClusterImg"
,
E_label
,
particle_label
);
save_canvas
(
c8
,
"fsamClusterImg"
,
E_label
,
particle_label
);
}
{
TCanvas
*
c7
=
new
TCanvas
(
"c7"
,
"c7"
,
700
,
500
);
TCanvas
*
c7
=
new
TCanvas
(
"c7"
,
"c7"
,
700
,
500
);
hfsamScFi
->
GetYaxis
()
->
SetTitleOffset
(
1.4
);
hfsamScFi
->
GetYaxis
()
->
SetTitleOffset
(
1.4
);
hfsamScFi
->
SetLineWidth
(
2
);
hfsamScFi
->
SetLineWidth
(
2
);
...
@@ -246,8 +246,8 @@ std::tuple <double, double, double, double, double, double, double, double> extr
...
@@ -246,8 +246,8 @@ std::tuple <double, double, double, double, double, double, double, double> extr
set_histo_range
(
hfsamScFi
);
set_histo_range
(
hfsamScFi
);
hfsamScFi
->
DrawClone
();
hfsamScFi
->
DrawClone
();
hfsamScFi
->
Fit
(
"gaus"
,
""
,
""
,
0.01
,
0.1
);
hfsamScFi
->
Fit
(
"gaus"
,
""
,
""
,
0.01
,
0.1
);
auto
up_fit
=
hfsamScFi
->
GetMean
()
+
5
*
hfsamScFi
->
GetStdDev
();
up_fit
=
hfsamScFi
->
GetMean
()
+
5
*
hfsamScFi
->
GetStdDev
();
auto
down_fit
=
hfsamScFi
->
GetMean
()
-
5
*
hfsamScFi
->
GetStdDev
();
down_fit
=
hfsamScFi
->
GetMean
()
-
5
*
hfsamScFi
->
GetStdDev
();
if
(
down_fit
<=
0
)
down_fit
=
hfsamScFi
->
GetXaxis
()
->
GetBinUpEdge
(
1
);
if
(
down_fit
<=
0
)
down_fit
=
hfsamScFi
->
GetXaxis
()
->
GetBinUpEdge
(
1
);
hfsamScFi
->
Fit
(
"gaus"
,
""
,
""
,
down_fit
,
up_fit
);
hfsamScFi
->
Fit
(
"gaus"
,
""
,
""
,
down_fit
,
up_fit
);
TF1
*
gaus
=
hfsamScFi
->
GetFunction
(
"gaus"
);
TF1
*
gaus
=
hfsamScFi
->
GetFunction
(
"gaus"
);
...
@@ -260,7 +260,7 @@ std::tuple <double, double, double, double, double, double, double, double> extr
...
@@ -260,7 +260,7 @@ std::tuple <double, double, double, double, double, double, double, double> extr
save_canvas
(
c7
,
"fsamClusterScFi"
,
E_label
,
particle_label
);
save_canvas
(
c7
,
"fsamClusterScFi"
,
E_label
,
particle_label
);
return
std
::
make_tuple
(
meanScFi
,
sigmaScFi
,
meanScFi_err
,
sigmaScFi_err
,
meanImg
,
sigmaImg
,
meanImg_err
,
sigmaImg_err
);
return
std
::
make_tuple
(
meanScFi
,
sigmaScFi
,
meanScFi_err
,
sigmaScFi_err
,
meanImg
,
sigmaImg
,
meanImg_err
,
sigmaImg_err
);
}
}
}
std
::
vector
<
std
::
string
>
read_scanned_energies
(
std
::
string
input_energies_fname
)
std
::
vector
<
std
::
string
>
read_scanned_energies
(
std
::
string
input_energies_fname
)
...
...
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