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
Mingyu Chen
hallc_replay
Commits
875ae216
Commit
875ae216
authored
7 years ago
by
Mark Jones
Committed by
Mark K Jones
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update replay_production_coin.C
parent
52ac6311
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DEF-files/COIN/PRODUCTION/coin_production.def
+4
-0
4 additions, 0 deletions
DEF-files/COIN/PRODUCTION/coin_production.def
SCRIPTS/COIN/PRODUCTION/replay_production_coin.C
+11
-2
11 additions, 2 deletions
SCRIPTS/COIN/PRODUCTION/replay_production_coin.C
with
15 additions
and
2 deletions
DEF-files/COIN/PRODUCTION/coin_production.def
+
4
−
0
View file @
875ae216
...
...
@@ -7,6 +7,8 @@ block H.hod.*
block H.cal.*
block H.gtr.*
block H.kin.*
block H.rb.*
block H.react.*
block P.ngcer.*
block P.dc.*
...
...
@@ -17,6 +19,8 @@ block P.aero.*
block P.cal.*
block P.gtr.*
block P.kin.*
block P.rb.*
block P.react.*
begin epics
IBC3H00CRCUR4
...
...
This diff is collapsed.
Click to expand it.
SCRIPTS/COIN/PRODUCTION/replay_production_coin.C
+
11
−
2
View file @
875ae216
...
...
@@ -49,7 +49,7 @@ void replay_production_coin (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
//=:=:=:=
// Set up the equipment to be analyzed.
TH
aApparatus
*
SHMS
=
new
THcHallCSpectrometer
(
"P"
,
"SHMS"
);
TH
cHallCSpectrometer
*
SHMS
=
new
THcHallCSpectrometer
(
"P"
,
"SHMS"
);
gHaApps
->
Add
(
SHMS
);
// Add Noble Gas Cherenkov to SHMS apparatus
THcCherenkov
*
pngcer
=
new
THcCherenkov
(
"ngcer"
,
"Noble Gas Cherenkov"
);
...
...
@@ -76,6 +76,8 @@ void replay_production_coin (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
// Add Rastered Beam Apparatus
THaApparatus
*
pbeam
=
new
THcRasteredBeam
(
"P.rb"
,
"SHMS Rastered Beamline"
);
gHaApps
->
Add
(
pbeam
);
THaReactionPoint
*
prp
=
new
THaReactionPoint
(
"P.react"
,
" SHMS reaction point"
,
"P"
,
"P.rb"
);
gHaPhysics
->
Add
(
prp
);
// Add Physics Module to calculate primary (scattered) beam kinematics
THcPrimaryKine
*
pkin_primary
=
new
THcPrimaryKine
(
"P.kin.primary"
,
"SHMS Single Arm Kinematics"
,
"P"
,
"P.rb"
);
gHaPhysics
->
Add
(
pkin_primary
);
...
...
@@ -84,7 +86,9 @@ void replay_production_coin (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
// gHaPhysics->Add(pkin_secondary);
// Add event handler for scaler events
THcScalerEvtHandler
*
pscaler
=
new
THcScalerEvtHandler
(
"P"
,
"Hall C scaler event type 1"
);
pscaler
->
AddEvtType
(
1
);
pscaler
->
AddEvtType
(
129
);
pscaler
->
SetDelayedType
(
129
);
pscaler
->
SetUseFirstEvent
(
kTRUE
);
gHaEvtHandlers
->
Add
(
pscaler
);
...
...
@@ -117,6 +121,8 @@ void replay_production_coin (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
// Add Rastered Beam Apparatus
THaApparatus
*
hbeam
=
new
THcRasteredBeam
(
"H.rb"
,
"HMS Rastered Beamline"
);
gHaApps
->
Add
(
hbeam
);
THaReactionPoint
*
hrp
=
new
THaReactionPoint
(
"H.react"
,
" HMS reaction point"
,
"H"
,
"H.rb"
);
gHaPhysics
->
Add
(
hrp
);
// Add Physics Module to calculate primary (scattered) beam kinematics
// THcPrimaryKine* hkin_primary = new THcPrimaryKine("H.kin.primary", "HMS Single Arm Kinematics", "H", "H.rb");
// gHaPhysics->Add(hkin_primary);
...
...
@@ -125,7 +131,10 @@ void replay_production_coin (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
gHaPhysics
->
Add
(
hkin_secondary
);
// Add event handler for scaler events
THcScalerEvtHandler
*
hscaler
=
new
THcScalerEvtHandler
(
"H"
,
"Hall C scaler event type 4"
);
hscaler
->
AddEvtType
(
2
);
hscaler
->
AddEvtType
(
4
);
hscaler
->
AddEvtType
(
129
);
hscaler
->
SetDelayedType
(
129
);
hscaler
->
SetUseFirstEvent
(
kTRUE
);
gHaEvtHandlers
->
Add
(
hscaler
);
...
...
@@ -160,7 +169,7 @@ void replay_production_coin (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
// Define the run(s) that we want to analyze.
// We just set up one, but this could be many.
TH
a
Run
*
run
=
new
TH
a
Run
(
pathList
,
Form
(
RunFileNamePattern
,
RunNumber
)
);
TH
c
Run
*
run
=
new
TH
c
Run
(
pathList
,
Form
(
RunFileNamePattern
,
RunNumber
)
);
// Set to read in Hall C run database parameters
run
->
SetRunParamClass
(
"THcRunParameters"
);
...
...
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