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
3de15cb3
Commit
3de15cb3
authored
6 years ago
by
Adrien Matta
Browse files
Options
Downloads
Patches
Plain Diff
*Adding option to set the tree circular
parent
7f9a421c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NPLib/Core/NPOptionManager.cxx
+4
-0
4 additions, 0 deletions
NPLib/Core/NPOptionManager.cxx
NPLib/Core/NPOptionManager.h
+2
-0
2 additions, 0 deletions
NPLib/Core/NPOptionManager.h
NPLib/Core/RootOutput.cxx
+4
-0
4 additions, 0 deletions
NPLib/Core/RootOutput.cxx
with
10 additions
and
0 deletions
NPLib/Core/NPOptionManager.cxx
+
4
−
0
View file @
3de15cb3
...
@@ -76,6 +76,7 @@ void NPOptionManager::ReadTheInputArgument(int argc, char** argv){
...
@@ -76,6 +76,7 @@ void NPOptionManager::ReadTheInputArgument(int argc, char** argv){
fInputPhysicalTreeOption
=
false
;
fInputPhysicalTreeOption
=
false
;
fGenerateHistoOption
=
false
;
fGenerateHistoOption
=
false
;
fPROOFMode
=
false
;
fPROOFMode
=
false
;
fCircularTree
=
false
;
fOnline
=
false
;
fOnline
=
false
;
fG4BatchMode
=
false
;
fG4BatchMode
=
false
;
#ifdef __linux__
#ifdef __linux__
...
@@ -159,6 +160,8 @@ void NPOptionManager::ReadTheInputArgument(int argc, char** argv){
...
@@ -159,6 +160,8 @@ void NPOptionManager::ReadTheInputArgument(int argc, char** argv){
else
if
(
argument
==
"--online"
)
{
fOnline
=
true
;
fGenerateHistoOption
=
true
;}
else
if
(
argument
==
"--online"
)
{
fOnline
=
true
;
fGenerateHistoOption
=
true
;}
else
if
(
argument
==
"--circular"
)
{
fCircularTree
=
true
;}
//else ;
//else ;
}
}
...
@@ -408,6 +411,7 @@ void NPOptionManager::DisplayHelp(){
...
@@ -408,6 +411,7 @@ void NPOptionManager::DisplayHelp(){
std
::
cout
<<
"
\t
--last-res
\t\t\t
Ignore the list of Run to treat if any and analysed the last Result file"
<<
std
::
endl
;
std
::
cout
<<
"
\t
--last-res
\t\t\t
Ignore the list of Run to treat if any and analysed the last Result file"
<<
std
::
endl
;
std
::
cout
<<
"
\t
--last-any
\t\t\t
Ignore the list of Run to treat if any and analysed the last generated root file"
<<
std
::
endl
;
std
::
cout
<<
"
\t
--last-any
\t\t\t
Ignore the list of Run to treat if any and analysed the last generated root file"
<<
std
::
endl
;
std
::
cout
<<
"
\t
--online
\t\t\t
Start the spectra server"
<<
std
::
endl
;
std
::
cout
<<
"
\t
--online
\t\t\t
Start the spectra server"
<<
std
::
endl
;
std
::
cout
<<
"
\t
--circular
\t\t\t
Set the output tree a circular one"
<<
std
::
endl
;
std
::
cout
<<
std
::
endl
<<
"NPSimulation only:"
<<
std
::
endl
;
std
::
cout
<<
std
::
endl
<<
"NPSimulation only:"
<<
std
::
endl
;
std
::
cout
<<
"
\t
-M <arg>
\t\t\t
Execute Geant4 macro <arg> at startup"
<<
std
::
endl
;
std
::
cout
<<
"
\t
-M <arg>
\t\t\t
Execute Geant4 macro <arg> at startup"
<<
std
::
endl
;
std
::
cout
<<
"
\t
-B <arg>
\t\t\t
Execute in batch mode (no ui) with Geant4 macro <arg> at startup"
<<
std
::
endl
;
std
::
cout
<<
"
\t
-B <arg>
\t\t\t
Execute in batch mode (no ui) with Geant4 macro <arg> at startup"
<<
std
::
endl
;
...
...
This diff is collapsed.
Click to expand it.
NPLib/Core/NPOptionManager.h
+
2
−
0
View file @
3de15cb3
...
@@ -102,6 +102,7 @@ class NPOptionManager{
...
@@ -102,6 +102,7 @@ class NPOptionManager{
bool
GetOnline
()
{
return
fOnline
;}
bool
GetOnline
()
{
return
fOnline
;}
bool
GetPROOF
()
{
return
fPROOFMode
;}
bool
GetPROOF
()
{
return
fPROOFMode
;}
bool
GetG4BatchMode
()
{
return
fG4BatchMode
;}
bool
GetG4BatchMode
()
{
return
fG4BatchMode
;}
bool
GetCircularTree
()
{
return
fCircularTree
;}
int
GetVerboseLevel
()
{
return
fVerboseLevel
;}
int
GetVerboseLevel
()
{
return
fVerboseLevel
;}
int
GetNumberOfEntryToAnalyse
()
{
return
fNumberOfEntryToAnalyse
;}
int
GetNumberOfEntryToAnalyse
()
{
return
fNumberOfEntryToAnalyse
;}
int
GetFirstEntryToAnalyse
()
{
return
fFirstEntryToAnalyse
;}
int
GetFirstEntryToAnalyse
()
{
return
fFirstEntryToAnalyse
;}
...
@@ -141,6 +142,7 @@ class NPOptionManager{
...
@@ -141,6 +142,7 @@ class NPOptionManager{
bool
fLastPhyFile
;
bool
fLastPhyFile
;
bool
fLastResFile
;
bool
fLastResFile
;
bool
fLastAnyFile
;
bool
fLastAnyFile
;
bool
fCircularTree
;
int
fVerboseLevel
;
// 0 for not talk, 1 for talking
int
fVerboseLevel
;
// 0 for not talk, 1 for talking
int
fNumberOfEntryToAnalyse
;
// use to limit the number of analysed in NPA
int
fNumberOfEntryToAnalyse
;
// use to limit the number of analysed in NPA
int
fFirstEntryToAnalyse
;
// use to set the first event analysed in NPA (total: fFirstEntryToAnalyse -> fFirstEntryToAnalyse + fNumberOfEntryToAnalyse)
int
fFirstEntryToAnalyse
;
// use to set the first event analysed in NPA (total: fFirstEntryToAnalyse -> fFirstEntryToAnalyse + fNumberOfEntryToAnalyse)
...
...
This diff is collapsed.
Click to expand it.
NPLib/Core/RootOutput.cxx
+
4
−
0
View file @
3de15cb3
...
@@ -125,6 +125,10 @@ RootOutput::RootOutput(std::string fileNameBase, std::string treeNameBase){
...
@@ -125,6 +125,10 @@ RootOutput::RootOutput(std::string fileNameBase, std::string treeNameBase){
// Init TAsciiFile objects
// Init TAsciiFile objects
InitAsciiFiles
();
InitAsciiFiles
();
gDirectory
->
cd
(
currentPath
->
GetPath
());
gDirectory
->
cd
(
currentPath
->
GetPath
());
if
(
!
NPOptionManager
::
getInstance
()
->
GetCircularTree
()){
pRootTree
->
SetCircular
(
10000
);
}
}
}
...
...
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