star-travex
|
Processes and controls user options provided in the command line. More...
#include <PrgOptionProcessor.h>
Public Member Functions | |
PrgOptionProcessor () | |
PrgOptionProcessor (int argc, char **argv, const std::string &stiTreeName="t") | |
~PrgOptionProcessor () | |
std::string | PathToStiTreeFile () const |
std::string | PathToGeometryFile () const |
const std::set< std::string > & | GetVolumeList () const |
TChain * | GetStiTChain () |
void | ProcessOptions () |
Takes the standard command line arguments and parses them with the boost program_options utility. More... | |
bool | MatchedVolName (const std::string &volName) const |
Note that the function returns true when the internal list of regex'es formed by the user specified options is empty. More... | |
Protected Member Functions | |
void | BuildInputChains () |
virtual void | VerifyOptions () |
virtual void | AddToInputChains (std::string stiTreeRootFileName) |
This private method takes a path to a valid ROOT file as input. More... | |
Protected Attributes | |
std::string | fGeomFilePath |
Full path to a ROOT file with TGeo geometry. More... | |
std::string | fVolumeListFile |
Full path to a text file with Sti/TGeo volume names. More... | |
std::string | fVolumePattern |
Regex pattern provided by the user in the command line. More... | |
std::set< std::string > | fVolumeList |
A list of volume names to consider. More... | |
TChain * | fStiTChain |
A (chained) TTree from the input file. More... | |
Processes and controls user options provided in the command line.
Definition at line 24 of file PrgOptionProcessor.h.
PrgOptionProcessor::PrgOptionProcessor | ( | ) |
Definition at line 13 of file PrgOptionProcessor.cxx.
PrgOptionProcessor::PrgOptionProcessor | ( | int | argc, |
char ** | argv, | ||
const std::string & | stiTreeName = "t" |
||
) |
Definition at line 16 of file PrgOptionProcessor.cxx.
PrgOptionProcessor::~PrgOptionProcessor | ( | ) |
Definition at line 39 of file PrgOptionProcessor.cxx.
|
protectedvirtual |
This private method takes a path to a valid ROOT file as input.
No check is done to make sure the input chains exist.
XXX: Need to add a check to validate the tree in the file.
Reimplemented in StiScanPrgOptions.
Definition at line 195 of file PrgOptionProcessor.cxx.
|
protected |
Definition at line 163 of file PrgOptionProcessor.cxx.
|
inline |
Definition at line 35 of file PrgOptionProcessor.h.
|
inline |
Definition at line 34 of file PrgOptionProcessor.h.
bool PrgOptionProcessor::MatchedVolName | ( | const std::string & | volName | ) | const |
Note that the function returns true when the internal list of regex'es formed by the user specified options is empty.
Definition at line 144 of file PrgOptionProcessor.cxx.
|
inline |
Definition at line 33 of file PrgOptionProcessor.h.
|
inline |
Definition at line 32 of file PrgOptionProcessor.h.
void PrgOptionProcessor::ProcessOptions | ( | ) |
Takes the standard command line arguments and parses them with the boost program_options utility.
Additional checks are implemented to verify the validity of the supplied arguments.
Definition at line 50 of file PrgOptionProcessor.cxx.
|
protectedvirtual |
Reimplemented in StiScanPrgOptions.
Definition at line 62 of file PrgOptionProcessor.cxx.
|
protected |
Full path to a ROOT file with TGeo geometry.
Definition at line 47 of file PrgOptionProcessor.h.
|
protected |
A (chained) TTree from the input file.
Definition at line 59 of file PrgOptionProcessor.h.
|
protected |
A list of volume names to consider.
Definition at line 56 of file PrgOptionProcessor.h.
|
protected |
Full path to a text file with Sti/TGeo volume names.
Definition at line 50 of file PrgOptionProcessor.h.
|
protected |
Regex pattern provided by the user in the command line.
Definition at line 53 of file PrgOptionProcessor.h.