Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hallc_replay
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
Melanie Cardona
hallc_replay
Commits
30e31ad1
Commit
30e31ad1
authored
7 years ago
by
hallc-online
Committed by
Mark K Jones
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Modified epics_beam_histos.C
Add cut on bcm1
parent
475bf67b
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
onlineGUI/UTIL/BEAMLINE/epics_beam_histos.C
+6
-1
6 additions, 1 deletion
onlineGUI/UTIL/BEAMLINE/epics_beam_histos.C
with
6 additions
and
1 deletion
onlineGUI/UTIL/BEAMLINE/epics_beam_histos.C
+
6
−
1
View file @
30e31ad1
...
...
@@ -8,7 +8,7 @@ void UserScript()
const
TString
bpm_type
[
NBPMS_TYPES
]
=
{
"RAW"
,
"SOF"
,
"POS"
};
TH1F
*
hbpm
[
NBPMS
*
NBPMS_POS
*
NBPMS_TYPES
];
Double_t
bpm
[
NBPMS
*
NBPMS_POS
*
NBPMS_TYPES
];
Double_t
ibcm1
;
//
TTree
*
T
=
(
TTree
*
)
gDirectory
->
Get
(
"E"
);
Int_t
totev
=
T
->
GetEntries
();
...
...
@@ -18,15 +18,18 @@ void UserScript()
for
(
UInt_t
ip
=
0
;
ip
<
NBPMS
;
ip
++
)
{
for
(
UInt_t
is
=
0
;
is
<
NBPMS_POS
;
is
++
)
{
for
(
UInt_t
it
=
0
;
it
<
NBPMS_TYPES
;
it
++
)
{
h2dttitle
=
";"
+
bpm_names
[
ip
]
+
bpm_pos
[
is
]
+
" "
+
bpm_type
[
it
]
+
" (mm) ; Events "
;
h2dtname
=
"uh"
+
bpm_names
[
ip
]
+
bpm_pos
[
is
]
+
bpm_type
[
it
];
hbpm
[
icnt
]
=
new
TH1F
(
h2dtname
,
h2dttitle
,
100
,
-
10
,
10
);
list_name
=
bpm_names
[
ip
]
+
"."
+
bpm_pos
[
is
]
+
bpm_type
[
it
];
T
->
SetBranchAddress
(
list_name
,
&
bpm
[
icnt
]);
icnt
++
;
}
}
}
T
->
SetBranchAddress
(
"ibcm1"
,
&
ibcm1
);
// Loop over the events, filling the histograms
// cout << " looping over data " << endl;
for
(
UInt_t
iev
=
0
;
iev
<
totev
;
iev
++
)
{
...
...
@@ -34,7 +37,9 @@ void UserScript()
// cout << " get entry = " << iev << endl;
T
->
GetEntry
(
iev
);
for
(
UInt_t
ip
=
0
;
ip
<
NBPMS
*
NBPMS_POS
*
NBPMS_TYPES
;
ip
++
)
{
if
(
ibcm1
>
1
){
hbpm
[
ip
]
->
Fill
(
bpm
[
ip
]);
}
}
//
}
...
...
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