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
2b3b1a57
Commit
2b3b1a57
authored
8 years ago
by
hallc-online
Browse files
Options
Downloads
Patches
Plain Diff
Append number of events to shms replay script, change report file name
parent
2f8fe9c9
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
SCRIPTS/SHMS/replay_shms.C
+2
-2
2 additions, 2 deletions
SCRIPTS/SHMS/replay_shms.C
SCRIPTS/SHMS/replay_shms_report.C
+1
-1
1 addition, 1 deletion
SCRIPTS/SHMS/replay_shms_report.C
with
3 additions
and
3 deletions
SCRIPTS/SHMS/replay_shms.C
+
2
−
2
View file @
2b3b1a57
...
@@ -17,7 +17,7 @@ void replay_shms(Int_t RunNumber=0, Int_t MaxEvent=0) {
...
@@ -17,7 +17,7 @@ void replay_shms(Int_t RunNumber=0, Int_t MaxEvent=0) {
// Create file name patterns.
// Create file name patterns.
const
char
*
RunFileNamePattern
=
"raw/shms_all_%05d.dat"
;
const
char
*
RunFileNamePattern
=
"raw/shms_all_%05d.dat"
;
const
char
*
ROOTFileNamePattern
=
"ROOTfiles/shms_replay_%d.root"
;
const
char
*
ROOTFileNamePattern
=
"ROOTfiles/shms_replay_%d
_%d
.root"
;
// Add variables to global list.
// Add variables to global list.
gHcParms
->
Define
(
"gen_run_number"
,
"Run Number"
,
RunNumber
);
gHcParms
->
Define
(
"gen_run_number"
,
"Run Number"
,
RunNumber
);
gHcParms
->
AddString
(
"g_ctp_database_filename"
,
"DBASE/standard.database"
);
gHcParms
->
AddString
(
"g_ctp_database_filename"
,
"DBASE/standard.database"
);
...
@@ -103,7 +103,7 @@ void replay_shms(Int_t RunNumber=0, Int_t MaxEvent=0) {
...
@@ -103,7 +103,7 @@ void replay_shms(Int_t RunNumber=0, Int_t MaxEvent=0) {
run
->
Print
();
run
->
Print
();
// Define the analysis parameters
// Define the analysis parameters
TString
ROOTFileName
=
Form
(
ROOTFileNamePattern
,
RunNumber
);
TString
ROOTFileName
=
Form
(
ROOTFileNamePattern
,
RunNumber
,
MaxEvent
);
analyzer
->
SetCountMode
(
2
);
// 0 = counter is # of physics triggers
analyzer
->
SetCountMode
(
2
);
// 0 = counter is # of physics triggers
// 1 = counter is # of all decode reads
// 1 = counter is # of all decode reads
// 2 = counter is event number
// 2 = counter is event number
...
...
This diff is collapsed.
Click to expand it.
SCRIPTS/SHMS/replay_shms_report.C
+
1
−
1
View file @
2b3b1a57
...
@@ -17,7 +17,7 @@ void replay_shms_report(Int_t RunNumber=0, Int_t MaxEvent=0) {
...
@@ -17,7 +17,7 @@ void replay_shms_report(Int_t RunNumber=0, Int_t MaxEvent=0) {
// Create file name patterns.
// Create file name patterns.
const
char
*
RunFileNamePattern
=
"raw/shms_all_%05d.dat"
;
const
char
*
RunFileNamePattern
=
"raw/shms_all_%05d.dat"
;
const
char
*
ROOTFileNamePattern
=
"ROOTfiles/shms_replay_%d.root"
;
const
char
*
ROOTFileNamePattern
=
"ROOTfiles/shms_replay_
report_
%d.root"
;
// Add variables to global list.
// Add variables to global list.
gHcParms
->
Define
(
"gen_run_number"
,
"Run Number"
,
RunNumber
);
gHcParms
->
Define
(
"gen_run_number"
,
"Run Number"
,
RunNumber
);
gHcParms
->
AddString
(
"g_ctp_database_filename"
,
"DBASE/standard.database"
);
gHcParms
->
AddString
(
"g_ctp_database_filename"
,
"DBASE/standard.database"
);
...
...
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