Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hallc_replay
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
1b7694af
Commit
1b7694af
authored
7 years ago
by
hallc-online
Committed by
Mark K Jones
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Updated replay_prodcution_ep.C script
parent
01b2d01c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SCRIPTS/COIN/PRODUCTION/replay_production_ep.C
+29
-13
29 additions, 13 deletions
SCRIPTS/COIN/PRODUCTION/replay_production_ep.C
with
29 additions
and
13 deletions
SCRIPTS/COIN/PRODUCTION/replay_production_ep.C
+
29
−
13
View file @
1b7694af
...
...
@@ -85,14 +85,11 @@ void replay_production_ep (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
gHaPhysics
->
Add
(
prp
);
THcExtTarCor
*
pext
=
new
THcExtTarCor
(
"P.extcor"
,
" HMS extended target corrections"
,
"P"
,
"P.react"
);
gHaPhysics
->
Add
(
pext
);
// 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
);
THcHodoEff
*
peff
=
new
THcHodoEff
(
"phodeff"
,
" SHMS hodo efficiency"
,
"P.hod"
);
// Hodoscope efficiency
THcHodoEff
*
peff
=
new
THcHodoEff
(
"phodeff"
,
" SHMS hodo efficiency"
,
"P.hod"
);
gHaPhysics
->
Add
(
peff
);
// Add Physics Module to calculate secondary (scattered) beam kinematics
// THcSecondaryKine* pkin_secondary = new THcSecondaryKine("P.kin.secondary", "SHMS Single Arm Kinematics", "P", "H.kin.primary");
// gHaPhysics->Add(pkin_secondary);
// Add event handler for scaler events
// THcScalerEvtHandler* pscaler = new THcScalerEvtHandler("P", "Hall C scaler event type 1");
//pscaler->AddEvtType(1);
...
...
@@ -143,12 +140,7 @@ void replay_production_ep (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
gHaPhysics
->
Add
(
hrp
);
THcExtTarCor
*
hext
=
new
THcExtTarCor
(
"H.extcor"
,
" HMS extended target corrections"
,
"H"
,
"H.react"
);
gHaPhysics
->
Add
(
hext
);
// 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);
// Add Physics Module to calculate secondary (scattered) beam kinematics
THcSecondaryKine
*
hkin_secondary
=
new
THcSecondaryKine
(
"H.kin.secondary"
,
"HMS Single Arm Kinematics"
,
"H"
,
"P.kin.primary"
);
gHaPhysics
->
Add
(
hkin_secondary
);
// Hodoscope efficiency
THcHodoEff
*
heff
=
new
THcHodoEff
(
"hhodeff"
,
" HMS hodo efficiency"
,
"H.hod"
);
gHaPhysics
->
Add
(
heff
);
// Add event handler for scaler events
...
...
@@ -163,6 +155,30 @@ void replay_production_ep (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
//hscaler->SetUseFirstEvent(kTRUE);
//gHaEvtHandlers->Add(hscaler);
//=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
// Kinematics Modules
//=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
// ---------------------------------
// electrons in SHMS, protons in HMS
// ---------------------------------
// 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);
// Add Physics Module to calculate secondary (scattered) beam kinematics
// THcSecondaryKine* hkin_secondary = new THcSecondaryKine("H.kin.secondary", "HMS Single Arm Kinematics", "H", "P.kin.primary");
// gHaPhysics->Add(hkin_secondary);
// ---------------------------------
// electrons in HMS, protons in SHMS
// ---------------------------------
// 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
);
// Add Physics Module to calculate secondary (scattered) beam kinematics
THcSecondaryKine
*
pkin_secondary
=
new
THcSecondaryKine
(
"P.kin.secondary"
,
"SHMS Single Arm Kinematics"
,
"P"
,
"H.kin.primary"
);
gHaPhysics
->
Add
(
pkin_secondary
);
//=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
// Global Objects & Event Handlers
//=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
...
...
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