Skip to content
Snippets Groups Projects
Commit ebf124f4 authored by adrien-matta's avatar adrien-matta
Browse files

* Add Histogram option to NPOptionManager

parent b817ef18
No related branches found
No related tags found
No related merge requests found
File deleted
......@@ -61,6 +61,7 @@ void NPOptionManager::ReadTheInputArgument(int argc, char** argv){
fVerboseLevel = 1;
fDisableAllBranchOption = false;
fInputPhysicalTreeOption = false;
fGenerateHistoOption = false ;
fPROOFMode = false;
for (int i = 0; i < argc; i++) {
......@@ -96,8 +97,12 @@ void NPOptionManager::ReadTheInputArgument(int argc, char** argv){
else if (argument == "--input-physical") fInputPhysicalTreeOption = true ;
else if (argument == "-IP") fInputPhysicalTreeOption = true ;
else if (argument == "--proof") fPROOFMode= true ;
else if (argument == "-GH") fGenerateHistoOption = true ;
else if (argument == "--generate-histo") fGenerateHistoOption = true ;
else if (argument == "--proof") fPROOFMode = true ;
//else ;
}
......@@ -268,11 +273,12 @@ void NPOptionManager::DisplayHelp()
cout << "\t --detector -D <arg>\t \t \t \t \t \t Set arg as the detector configuration file" << endl ;
cout << "\t --event-generator -E <arg>\t \t \t \t \t Set arg as the event generator file" << endl ;
cout << "\t --output -O <arg>\t \t \t \t \t \t Set arg as the Output File Name (output tree)" << endl ;
cout << "\t --verbose -V <arg>\t \t \t \t \t \t \t Set the verbose level of some of the object, 0 for nothing, 1 for normal printout. Error and warning are not affected" << endl ;
cout << "\t --verbose -V <arg>\t \t \t \t \t \t Set the verbose level of some of the object, 0 for nothing, 1 for normal printout. Error and warning are not affected" << endl ;
cout << endl << "NPAnalysis only:"<<endl;
cout << "\t --run -R <arg>\t \t \t \t \t \t \t Set arg as the run to read file list" << endl ;
cout << "\t --cal -C <arg>\t \t \t \t \t \t \t Set arg as the calibration file list" << endl ;
cout << "\t --disable-branch\t \t \t \t \t \t Disable of branch of Input tree except the one of the detector (faster)" << endl ;
cout << "\t --generate-histo -GH\t \t \t \t \t \t Instantiate the T*Spectra class of each detector" << endl ;
cout << "\t --input-physical -IP\t \t \t \t \t \t Consider the Input file is containing Physics Class instead of Data Class. Output branches associate to the detector are not activated" << endl ;
cout << endl << endl ;
......
......@@ -92,6 +92,7 @@ class NPOptionManager
string GetOutputFile() {return fOutputFileName;}
bool GetDisableAllBranchOption() {return fDisableAllBranchOption;}
bool GetInputPhysicalTreeOption() {return fInputPhysicalTreeOption;}
bool GetGenerateHistoOption() {return fGenerateHistoOption;}
bool GetPROOF() {return fPROOFMode;}
int GetVerboseLevel() {return fVerboseLevel;}
......@@ -116,6 +117,7 @@ class NPOptionManager
string fOutputFileName;
bool fDisableAllBranchOption;
bool fInputPhysicalTreeOption;
bool fGenerateHistoOption;
bool fPROOFMode; // if true, the system run in a pROOF environment
int fVerboseLevel; // 0 for not talk, 1 for talking
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment