star-travex
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StiHifyPrgOptions.cxx
Go to the documentation of this file.
2 
3 
5 
6 
7 StiHifyPrgOptions::StiHifyPrgOptions(int argc, char **argv, const std::string& stiTreeName) :
8  PrgOptionProcessor(argc, argv, stiTreeName),
9  fAcceptCandidateHit(false),
10  fSplitHistsByVolume(false),
11  fHistZMin(0), fHistZMax(0),
12  fHistYMin(0), fHistYMax(0)
13 {
14  fOptions.add_options()
15  ("accept-candidate,c", po::value<bool>(&fAcceptCandidateHit)->implicit_value(true), "Force closest candidate hit to be the accepted track node hit")
16  ("split-by-volume,v", po::value<bool>(&fSplitHistsByVolume)->implicit_value(true), "Separate histograms will be created for each volume matching regex")
17  ("z-min-local", po::value<double>(&fHistZMin)->default_value(fHistZMin), "If provided the minimum limit along local z will be overwritten by this value in the output histograms")
18  ("z-max-local", po::value<double>(&fHistZMax)->default_value(fHistZMax), "If provided the maximum limit along local z will be overwritten by this value in the output histograms")
19  ("y-min-local", po::value<double>(&fHistYMin)->default_value(fHistYMin), "If provided the minimum limit along local y will be overwritten by this value in the output histograms")
20  ("y-max-local", po::value<double>(&fHistYMax)->default_value(fHistYMax), "If provided the maximum limit along local y will be overwritten by this value in the output histograms")
21  ;
22 }
Processes and controls user options provided in the command line.
Processes and controls user options provided in the command line.
bool fAcceptCandidateHit
A flag to force closest candidate hit to be the accepted track node hit.
bool fSplitHistsByVolume
A flag to produce separate histograms for each volume matching the regex.