Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hcana
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
Container Registry
Model registry
Operate
Environments
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
jlab
hallc
analyzer_software
hcana
Commits
4300132a
Commit
4300132a
authored
11 years ago
by
Stephen A. Wood
Browse files
Options
Downloads
Patches
Plain Diff
Script to display SOS hodoscope hit maps
parent
7f3d8de2
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/hitmaps_hms.C
+0
-0
0 additions, 0 deletions
examples/hitmaps_hms.C
examples/hitmaps_sos.C
+39
-0
39 additions, 0 deletions
examples/hitmaps_sos.C
examples/output.def
+20
-0
20 additions, 0 deletions
examples/output.def
with
59 additions
and
0 deletions
examples/hitmaps.C
→
examples/hitmaps
_hms
.C
+
0
−
0
View file @
4300132a
File moved
This diff is collapsed.
Click to expand it.
examples/hitmaps_sos.C
0 → 100644
+
39
−
0
View file @
4300132a
{
TFile
*
f
=
new
TFile
(
"hodtest.root"
);
TCanvas
*
c1
=
new
TCanvas
(
"c1"
,
"SOS Scintillator Hit Maps"
,
800
,
800
);
c1
->
Divide
(
2
,
4
);
TH1F
*
h
[
16
];
h
[
0
]
=
spostdc1
;
h
[
1
]
=
snegtdc1
;
h
[
4
]
=
spostdc2
;
h
[
5
]
=
snegtdc2
;
h
[
8
]
=
spostdc3
;
h
[
9
]
=
snegtdc3
;
h
[
12
]
=
spostdc4
;
h
[
13
]
=
snegtdc4
;
h
[
2
]
=
sposadc1
;
h
[
3
]
=
snegadc1
;
h
[
6
]
=
sposadc2
;
h
[
7
]
=
snegadc2
;
h
[
10
]
=
sposadc3
;
h
[
11
]
=
snegadc3
;
h
[
14
]
=
sposadc4
;
h
[
15
]
=
snegadc4
;
for
(
Int_t
ipad
=
1
;
ipad
<=
8
;
ipad
++
)
{
TPad
*
pt
=
c1
->
cd
(
ipad
);
Int_t
ihp
=
2
*
(
ipad
-
1
);
Int_t
ihn
=
ihp
+
1
;
h
[
ihp
]
->
SetFillColor
(
kGreen
);
h
[
ihp
]
->
SetFillStyle
(
3345
);
h
[
ihp
]
->
Draw
();
h
[
ihn
]
->
SetFillColor
(
kBlue
);
h
[
ihn
]
->
SetFillStyle
(
3354
);
h
[
ihn
]
->
Draw
(
"same"
);
}
}
This diff is collapsed.
Click to expand it.
examples/output.def
+
20
−
0
View file @
4300132a
...
@@ -177,6 +177,26 @@ TH1F hs2yfptime 'HODO s2y fptime' H.hod.2y.fptime 80 0 80 H.hod.hgoodstarttime
...
@@ -177,6 +177,26 @@ TH1F hs2yfptime 'HODO s2y fptime' H.hod.2y.fptime 80 0 80 H.hod.hgoodstarttime
TH1F starttime 'HODO start time' H.hod.starttime 80 0 80 H.hod.hgoodstarttime
TH1F starttime 'HODO start time' H.hod.starttime 80 0 80 H.hod.hgoodstarttime
#SOS
#SOS
# TDC hits per paddle
TH1F spostdc1 'SOS s1x+ TDC hits' S.hod.1x.postdchits 9 0.5 9.5
TH1F snegtdc1 'SOS s1x- TDC hits' S.hod.1x.negtdchits 9 0.5 9.5
TH1F spostdc2 'SOS s1y+ TDC hits' S.hod.1y.postdchits 9 0.5 9.5
TH1F snegtdc2 'SOS s1y- TDC hits' S.hod.1y.negtdchits 9 0.5 9.5
TH1F spostdc3 'SOS s2x+ TDC hits' S.hod.2x.postdchits 16 0.5 16.5
TH1F snegtdc3 'SOS s2x- TDC hits' S.hod.2x.negtdchits 16 0.5 16.5
TH1F spostdc4 'SOS s2y+ TDC hits' S.hod.2y.postdchits 9 0.5 9.5
TH1F snegtdc4 'SOS s2y- TDC hits' S.hod.2y.negtdchits 9 0.5 9.5
# ADC hits per paddle
TH1F sposadc1 'SOS s1x+ ADC hits' S.hod.1x.posadchits 9 0.5 9.5
TH1F snegadc1 'SOS s1x- ADC hits' S.hod.1x.negadchits 9 0.5 9.5
TH1F sposadc2 'SOS s1y+ ADC hits' S.hod.1y.posadchits 9 0.5 9.5
TH1F snegadc2 'SOS s1y- ADC hits' S.hod.1y.negadchits 9 0.5 9.5
TH1F sposadc3 'SOS s2x+ ADC hits' S.hod.2x.posadchits 16 0.5 16.5
TH1F snegadc3 'SOS s2x- ADC hits' S.hod.2x.negadchits 16 0.5 16.5
TH1F sposadc4 'SOS s2y+ ADC hits' S.hod.2y.posadchits 9 0.5 9.5
TH1F snegadc4 'SOS s2y- ADC hits' S.hod.2y.negadchits 9 0.5 9.5
TH1F sdc1u1_wm 'SDC 1U1 Wiremap' S.dc.1u1.tdchits 48 0.5 48.5
TH1F sdc1u1_wm 'SDC 1U1 Wiremap' S.dc.1u1.tdchits 48 0.5 48.5
TH1F sdc1u2_wm 'SDC 1U2 Wiremap' S.dc.1u2.tdchits 48 0.5 48.5
TH1F sdc1u2_wm 'SDC 1U2 Wiremap' S.dc.1u2.tdchits 48 0.5 48.5
TH1F sdc1x1_wm 'SDC 1X1 Wiremap' S.dc.1x1.tdchits 64 0.5 64.5
TH1F sdc1x1_wm 'SDC 1X1 Wiremap' S.dc.1x1.tdchits 64 0.5 64.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