Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena-acts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Dimitra Amperiadou
athena-acts
Commits
34709ccd
"README.md" did not exist on "4e4f30c3383dd7af3221440fdabac2e9dcbacd2f"
Commit
34709ccd
authored
9 years ago
by
Ioannis Nomidis
Committed by
Graeme Stewart
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix bug in resolution hist binning (MuonHistUtils-00-03-21)
parent
42443a1d
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
MuonSpectrometer/MuonValidation/MuonHistogramming/MuonHistUtils/Root/MuonResolutionPlots.cxx
+9
-11
9 additions, 11 deletions
...nHistogramming/MuonHistUtils/Root/MuonResolutionPlots.cxx
with
9 additions
and
11 deletions
MuonSpectrometer/MuonValidation/MuonHistogramming/MuonHistUtils/Root/MuonResolutionPlots.cxx
+
9
−
11
View file @
34709ccd
...
...
@@ -18,14 +18,12 @@ MuonResolutionPlots::MuonResolutionPlots(PlotBase* pParent, std::string sDir, st
m_sType
(
sType
),
m_doBinnedResolutionPlots
(
doBinnedResolutionPlots
)
{
//inline bin definitions
Double_t
resolution_ptBins
[
9
]
=
{
5
,
10
,
20
,
30
,
40
,
50
,
60
,
100
,
200
};
Double_t
resolution_etaBins
[
10
]
=
{
-
2.7
,
-
2.5
,
-
1.7
,
-
1.05
,
-
0.1
,
0.1
,
1.05
,
1.7
,
2.5
,
2.7
};
Double_t
resolution_phiBins
[
9
]
=
{
-
3.15
,
-
2.4
,
-
1.6
,
-
0.8
,
0
,
0.8
,
1.6
,
2.4
,
3.15
};
std
::
pair
<
Int_t
,
Double_t
*>
ptBins
(
6
,
resolution_ptBins
);
std
::
pair
<
Int_t
,
Double_t
*>
etaBins
(
9
,
resolution_etaBins
);
std
::
pair
<
Int_t
,
Double_t
*>
phiBins
(
8
,
resolution_phiBins
);
const
int
sizeOf_ptBins
=
7
;
Double_t
ptBins
[
sizeOf_ptBins
]
=
{
5
,
15
,
30
,
45
,
60
,
100
,
200
};
const
int
sizeOf_etaBins
=
10
;
Double_t
etaBins
[
sizeOf_etaBins
]
=
{
-
2.7
,
-
2.5
,
-
1.7
,
-
1.05
,
-
0.1
,
0.1
,
1.05
,
1.7
,
2.5
,
2.7
};
const
int
sizeOf_phiBins
=
9
;
Double_t
phiBins
[
sizeOf_phiBins
]
=
{
-
3.15
,
-
2.4
,
-
1.6
,
-
0.8
,
0
,
0.8
,
1.6
,
2.4
,
3.15
};
//book 2D hists
if
(
m_doBinnedResolutionPlots
)
{
...
...
@@ -33,11 +31,11 @@ MuonResolutionPlots::MuonResolutionPlots(PlotBase* pParent, std::string sDir, st
Res_pT_vs_highpT
=
Book2D
(
"Res"
+
m_sType
+
"_pT_vs_highpT"
,
"Res"
+
m_sType
+
"_pT vs high pT;pT [GeV];(pT-pTtruth)/pTtruth"
,
10
,
100.
,
1000.
,
100
,
-
0.5
,
0.5
);
Res_pT_vs_pT
=
Book2D
(
"Res"
+
m_sType
+
"_pT_vs_pT"
,
"Res"
+
m_sType
+
"_pT vs pT;pT [GeV];(pT-pTtruth)/pTtruth"
,
ptBins
.
first
,
ptBins
.
second
,
100
,
-
0.5
,
0.5
);
sizeOf_ptBins
-
1
,
&
ptBins
[
0
]
,
100
,
-
0.5
,
0.5
);
Res_pT_vs_eta
=
Book2D
(
"Res"
+
m_sType
+
"_pT_vs_eta"
,
"Res"
+
m_sType
+
"_pT vs eta;eta,eta-etatruth"
,
etaBins
.
first
,
etaBins
.
second
,
100
,
-
0.5
,
0.5
);
sizeOf_
etaBins
-
1
,
&
etaBins
[
0
]
,
100
,
-
0.5
,
0.5
);
Res_pT_vs_phi
=
Book2D
(
"Res"
+
m_sType
+
"_pT_vs_phi"
,
"Res"
+
m_sType
+
"_pT vs phi;phi,phi-phitruth"
,
phiBins
.
first
,
phiBins
.
second
,
100
,
-
0.5
,
0.5
);
sizeOf_
phiBins
-
1
,
&
phiBins
[
0
]
,
100
,
-
0.5
,
0.5
);
}
}
...
...
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