Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nptool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
np
nptool
Commits
55f69354
Commit
55f69354
authored
9 years ago
by
adrien-matta
Browse files
Options
Downloads
Patches
Plain Diff
* Adding online option to NPOnline
parent
426a598f
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
NPLib/Core/NPOptionManager.cxx
+6
-1
6 additions, 1 deletion
NPLib/Core/NPOptionManager.cxx
NPLib/Core/NPOptionManager.h
+2
-0
2 additions, 0 deletions
NPLib/Core/NPOptionManager.h
with
8 additions
and
1 deletion
NPLib/Core/NPOptionManager.cxx
+
6
−
1
View file @
55f69354
...
...
@@ -65,6 +65,7 @@ void NPOptionManager::ReadTheInputArgument(int argc, char** argv){
fInputPhysicalTreeOption
=
false
;
fGenerateHistoOption
=
false
;
fPROOFMode
=
false
;
fOnline
=
false
;
for
(
int
i
=
0
;
i
<
argc
;
i
++
)
{
string
argument
=
argv
[
i
];
...
...
@@ -121,6 +122,9 @@ void NPOptionManager::ReadTheInputArgument(int argc, char** argv){
else
if
(
argument
==
"--last-res"
)
fLastResFile
=
true
;
else
if
(
argument
==
"--last-any"
)
fLastAnyFile
=
true
;
else
if
(
argument
==
"--online"
)
{
fOnline
=
true
;
fGenerateHistoOption
=
true
;}
//else ;
}
...
...
@@ -281,7 +285,7 @@ void NPOptionManager::SendErrorAndExit(const char* type) const{
else
if
(
stype
==
"DetectorConfiguration"
)
{
cout
<<
endl
;
cout
<<
"*********************************** Error ***********************************"
<<
endl
;
cout
<<
"* No detector geometry file found in $NPTool/Inputs/
EventGenerator
or local directories *"
<<
endl
;
cout
<<
"* No detector geometry file found in $NPTool/Inputs/
DetectorConfiguration
or local directories *"
<<
endl
;
cout
<<
"*****************************************************************************************"
<<
endl
;
cout
<<
endl
;
exit
(
1
);
...
...
@@ -319,6 +323,7 @@ void NPOptionManager::DisplayHelp(){
cout
<<
"
\t
--last-phy
\t
\t
\t
\t
Ignore the list of Run to treat if any and analysed the last Physics file"
<<
endl
;
cout
<<
"
\t
--last-res
\t
\t
\t
\t
Ignore the list of Run to treat if any and analysed the last Result file"
<<
endl
;
cout
<<
"
\t
--last-any
\t
\t
\t
\t
Ignore the list of Run to treat if any and analysed the last root file with a non standard Tree name"
<<
endl
;
cout
<<
"
\t
--online
\t
\t
\t
\t
Start the spectra server"
<<
endl
;
cout
<<
endl
<<
endl
;
// exit current program
...
...
This diff is collapsed.
Click to expand it.
NPLib/Core/NPOptionManager.h
+
2
−
0
View file @
55f69354
...
...
@@ -95,6 +95,7 @@ class NPOptionManager{
bool
GetInputPhysicalTreeOption
()
{
return
fInputPhysicalTreeOption
;}
bool
GetGenerateHistoOption
()
{
return
fGenerateHistoOption
;}
bool
GetCheckHistoOption
()
{
return
fCheckHistoOption
;}
bool
GetOnline
()
{
return
fOnline
;}
bool
GetPROOF
()
{
return
fPROOFMode
;}
int
GetVerboseLevel
()
{
return
fVerboseLevel
;}
int
GetNumberOfEntryToAnalyse
()
{
return
fNumberOfEntryToAnalyse
;}
...
...
@@ -125,6 +126,7 @@ class NPOptionManager{
bool
fInputPhysicalTreeOption
;
bool
fGenerateHistoOption
;
bool
fCheckHistoOption
;
bool
fOnline
;
// true if spectra server is started
bool
fPROOFMode
;
// if true, the system run in a pROOF environment
bool
fLastSimFile
;
bool
fLastPhyFile
;
...
...
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