Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hcana
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
analyzer_software
hcana
Commits
fd0deff5
Commit
fd0deff5
authored
6 years ago
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
modified: src/THcParmList.cxx
parent
6aa71d4c
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
src/THcParmList.cxx
+5
-5
5 additions, 5 deletions
src/THcParmList.cxx
with
5 additions
and
5 deletions
src/THcParmList.cxx
+
5
−
5
View file @
fd0deff5
...
...
@@ -108,13 +108,13 @@ The ENGINE CTP support parameter "blocks" which were marked with
Int_t
nfiles
=
0
;
ifiles
[
nfiles
].
open
(
fname
);
if
(
ifiles
[
nfiles
].
is_open
())
{
cout
<<
"Opening parameter file: ["
<<
nfiles
<<
"] "
<<
fname
<<
endl
;
//
cout << "Opening parameter file: [" << nfiles << "] " << fname << endl;
nfiles
++
;
}
if
(
!
nfiles
)
{
static
const
char
*
const
here
=
"THcParmList::LoadFromFile"
;
Error
(
here
,
"error opening parameter file %s"
,
fname
);
//
Error (here, "error opening parameter file %s",fname);
return
;
// Need a success argument returned
}
...
...
@@ -128,7 +128,7 @@ The ENGINE CTP support parameter "blocks" which were marked with
if
(
RunNumber
>
0
)
{
InRunRange
=
0
;
// Wait until run number range matching RunNumber is found
cout
<<
"Reading Parameters for run "
<<
RunNumber
<<
endl
;
//
cout << "Reading Parameters for run " << RunNumber << endl;
}
else
{
InRunRange
=
1
;
// Interpret all lines
}
...
...
@@ -698,8 +698,8 @@ std::string THcParmList::PrintJSON(int run_number ) const {
jrun
[
std
::
to_string
(
run_number
)]
=
j
;
//std::cout << j.dump(2) << "\n";
// write prettified JSON to another file
std
::
ofstream
o
(
"pretty.json"
);
o
<<
std
::
setw
(
4
)
<<
jrun
<<
std
::
endl
;
//
std::ofstream o("pretty.json");
//
o << std::setw(4) << jrun << std::endl;
return
jrun
.
dump
();
}
...
...
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