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
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
exp
polhe3
hallc_replay
Commits
4bfb82a4
Commit
4bfb82a4
authored
5 years ago
by
Sylvester Joosten
Browse files
Options
Downloads
Patches
Plain Diff
debugged shms replay script
parent
ca2fd43c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
SCRIPTS/PRODUCTION/.replay_shms.cxx.swp
+0
-0
0 additions, 0 deletions
SCRIPTS/PRODUCTION/.replay_shms.cxx.swp
SCRIPTS/PRODUCTION/replay_shms.cxx
+15
-11
15 additions, 11 deletions
SCRIPTS/PRODUCTION/replay_shms.cxx
SCRIPTS/replay_shms.sh
+1
-1
1 addition, 1 deletion
SCRIPTS/replay_shms.sh
with
16 additions
and
12 deletions
SCRIPTS/PRODUCTION/.replay_shms.cxx.swp
0 → 100644
+
0
−
0
View file @
4bfb82a4
File added
This diff is collapsed.
Click to expand it.
SCRIPTS/PRODUCTION/replay_shms.cxx
+
15
−
11
View file @
4bfb82a4
...
...
@@ -110,11 +110,13 @@ int replay_shms(Int_t RunNumber = 7160, Int_t MaxEvent = -1, Int_t FirstEvent =
//
// Set up the equipment to be analyzed.
THcHallCSpectrometer
*
SHMS
=
new
THcHallCSpectrometer
(
"P"
,
"SHMS"
);
SHMS
->
SetEvtType
(
1
);
SHMS
->
AddEvtType
(
4
);
SHMS
->
AddEvtType
(
5
);
SHMS
->
AddEvtType
(
6
);
SHMS
->
AddEvtType
(
7
);
if
(
do_coin
)
{
SHMS
->
SetEvtType
(
1
);
SHMS
->
AddEvtType
(
4
);
SHMS
->
AddEvtType
(
5
);
SHMS
->
AddEvtType
(
6
);
SHMS
->
AddEvtType
(
7
);
}
gHaApps
->
Add
(
SHMS
);
// 1. Add Noble Gas Cherenkov to SHMS apparatus
THcCherenkov
*
pngcer
=
new
THcCherenkov
(
"ngcer"
,
"Noble Gas Cherenkov"
);
...
...
@@ -181,18 +183,20 @@ int replay_shms(Int_t RunNumber = 7160, Int_t MaxEvent = -1, Int_t FirstEvent =
// Add event handler for scaler events
THcScalerEvtHandler
*
pscaler
=
new
THcScalerEvtHandler
(
"P"
,
"Hall C scaler event type 1"
);
pscaler
->
AddEvtType
(
1
);
pscaler
->
AddEvtType
(
4
);
pscaler
->
AddEvtType
(
5
);
pscaler
->
AddEvtType
(
6
);
pscaler
->
AddEvtType
(
7
);
if
(
do_coin
)
{
pscaler
->
AddEvtType
(
4
);
pscaler
->
AddEvtType
(
5
);
pscaler
->
AddEvtType
(
6
);
pscaler
->
AddEvtType
(
7
);
}
pscaler
->
AddEvtType
(
129
);
pscaler
->
SetDelayedType
(
129
);
pscaler
->
SetUseFirstEvent
(
kTRUE
);
gHaEvtHandlers
->
Add
(
pscaler
);
// Add event handler for prestart event 125.
THcConfigEvtHandler
*
ev125
=
new
THcConfigEvtHandler
(
"
HC
"
,
"Config Event type 125"
);
gHaEvtHandlers
->
Add
(
ev125
);
THcConfigEvtHandler
*
pconfig
=
new
THcConfigEvtHandler
(
"
pconfig
"
,
"Config Event type 125"
);
gHaEvtHandlers
->
Add
(
pconfig
);
// Add event handler for EPICS events
THaEpicsEvtHandler
*
hcepics
=
new
THaEpicsEvtHandler
(
"epics"
,
do_coin
?
"HC EPICS event type 182"
:
"HC EPICS event type 181"
);
...
...
This diff is collapsed.
Click to expand it.
SCRIPTS/replay_shms.sh
+
1
−
1
View file @
4bfb82a4
...
...
@@ -73,7 +73,7 @@ do
shift
# past argument
;;
-c
|
--coin
)
DO_COIN
=
"true"
shift
# past argument
;;
*
)
# unknown option
...
...
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