Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
np
nptool
Commits
46c50450
Commit
46c50450
authored
Jun 18, 2021
by
Charlie Paxman
Browse files
* e793s, fixing gating
parent
cb63d567
Pipeline
#124945
passed with stages
in 7 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
Projects/e793s/macro/DrawPlots.C
Projects/e793s/macro/DrawPlots.C
+8
-9
No files found.
Projects/e793s/macro/DrawPlots.C
View file @
46c50450
...
...
@@ -157,10 +157,11 @@ void CompareExsAt4MeV(){
gate4p3
->
SetLineColor
(
kViolet
);
gate4p3
->
GetXaxis
()
->
SetRangeUser
(
0
.,
5
.);
cout
<<
" 3.0 - Red"
<<
endl
;
cout
<<
" 3.5 - Blue"
<<
endl
;
cout
<<
" 3.9 - Green"
<<
endl
;
cout
<<
" 4.3 - Violet"
<<
endl
;
cout
<<
" 3.0 - Red
\n
"
<<
" 3.5 - Blue
\n
"
<<
" 3.9 - Green
\n
"
<<
" 4.3 - Violet"
<<
endl
;
}
...
...
@@ -176,21 +177,19 @@ void CompareSimExp(){
hexp
->
GetYaxis
()
->
SetTitle
(
"Counts / 0.1 MeV"
);
hexp
->
SetLineColor
(
kRed
);
TFile
*
simfile
=
new
TFile
(
"../../../Outputs/Analysis/SimTest_18June.root"
,
"READ"
);
TFile
*
simfile
=
new
TFile
(
"../../../Outputs/Analysis/SimTest_18June
_30mill
.root"
,
"READ"
);
TTree
*
simtree
=
(
TTree
*
)
simfile
->
FindObjectAny
(
"PhysicsTree"
);
simtree
->
Draw
(
"Ex>>hsim(70,-1,6)"
,
""
,
"same"
);
simtree
->
Draw
(
"Ex>>hsim(70,-1,6)"
,
"
Mugast.TelescopeNumber>0 && Mugast.TelescopeNumber<8
"
,
"same"
);
TH1F
*
hsim
=
(
TH1F
*
)
gDirectory
->
Get
(
"hsim"
);
hsim
->
SetLineColor
(
kBlue
);
auto
legend
=
new
TLegend
(
0
.
7
,
0
.
8
,
0
.
9
,
0
.
9
);
legend
->
AddEntry
(
hexp
,
"Experiment"
,
"l"
);
legend
->
AddEntry
(
hsim
,
"Simulation"
,
"l"
);
legend
->
Draw
();
}
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment