Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hcana
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Wiki
Code
Merge requests
1
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
fb7f7615
Commit
fb7f7615
authored
6 years ago
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
Added default DB_DIR
- added default DB_DIR - Fixed Scandalizer due to change in codaversion -> dataversion
parent
f1044b96
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Scandalizer.cxx
+2
-2
2 additions, 2 deletions
src/Scandalizer.cxx
src/main.C
+14
-0
14 additions, 0 deletions
src/main.C
with
16 additions
and
2 deletions
src/Scandalizer.cxx
+
2
−
2
View file @
fb7f7615
...
@@ -23,9 +23,9 @@ Int_t Scandalizer::ReadOneEvent()
...
@@ -23,9 +23,9 @@ Int_t Scandalizer::ReadOneEvent()
// there may be a better place to do this, but this works
// there may be a better place to do this, but this works
if
(
fWantCodaVers
>
0
)
{
if
(
fWantCodaVers
>
0
)
{
fEvData
->
Set
Cod
aVersion
(
fWantCodaVers
);
fEvData
->
Set
Dat
aVersion
(
fWantCodaVers
);
}
else
{
}
else
{
fEvData
->
Set
Cod
aVersion
(
fRun
->
Get
Cod
aVersion
());
fEvData
->
Set
Dat
aVersion
(
fRun
->
Get
Dat
aVersion
());
}
}
switch
(
status
)
{
switch
(
status
)
{
...
...
This diff is collapsed.
Click to expand it.
src/main.C
+
14
−
0
View file @
fb7f7615
...
@@ -7,12 +7,26 @@
...
@@ -7,12 +7,26 @@
#include
"THcInterface.h"
#include
"THcInterface.h"
#include
<iostream>
#include
<iostream>
#include
<cstring>
#include
<cstring>
#include
<string>
#include
<cstdlib>
using
namespace
std
;
using
namespace
std
;
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
// Create a ROOT-style interactive interface
// Create a ROOT-style interactive interface
//
if
(
const
char
*
env_p
=
std
::
getenv
(
"DB_DIR"
))
{
std
::
cout
<<
"Your DB_DIR is: "
<<
env_p
<<
'\n'
;
}
else
{
std
::
string
db_dir_env
=
"DBASE"
;
if
(
setenv
(
"DB_DIR"
,
db_dir_env
.
c_str
(),
1
))
{
std
::
cout
<<
"Failed to set env var DB_DIR
\n
"
;
std
::
exit
(
EXIT_FAILURE
);
}
std
::
cout
<<
"DB_DIR set to DBASE
\n
"
;
}
// Handle convenience command line options
// Handle convenience command line options
bool
print_version
=
false
,
no_logo
=
false
;
bool
print_version
=
false
,
no_logo
=
false
;
...
...
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