star-travex
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StiHifyPrgOptions.h
Go to the documentation of this file.
1 #ifndef StiHifyPrgOptions_h
2 #define StiHifyPrgOptions_h
3 
4 #include <string>
5 
6 #include <boost/program_options/options_description.hpp>
7 #include <boost/program_options/variables_map.hpp>
8 #include <boost/program_options/parsers.hpp>
9 
11 
12 
13 namespace {
14  namespace po = boost::program_options;
15 }
16 
17 
22 {
23 public:
24 
26  StiHifyPrgOptions(int argc, char **argv, const std::string& stiTreeName="t");
27 
28  bool AcceptCandidateHit() const { return fAcceptCandidateHit; }
29  bool SplitHistsByVolume() const { return fSplitHistsByVolume; }
30  double GetHistZMin() const { return fHistZMin; }
31  double GetHistZMax() const { return fHistZMax; }
32  double GetHistYMin() const { return fHistYMin; }
33  double GetHistYMax() const { return fHistYMax; }
34  void SetHistZRange(double minZ, double maxZ) { fHistZMin = minZ; fHistZMax = maxZ; }
35  void SetHistYRange(double minY, double maxY) { fHistYMin = minY; fHistYMax = maxY; }
36 
37 private:
38 
41 
44 
45  double fHistZMin;
46  double fHistZMax;
47  double fHistYMin;
48  double fHistYMax;
49 };
50 
51 #endif
double GetHistYMin() const
double GetHistZMin() const
double GetHistYMax() const
Processes and controls user options provided in the command line.
Processes and controls user options provided in the command line.
void SetHistYRange(double minY, double maxY)
bool AcceptCandidateHit() const
bool fAcceptCandidateHit
A flag to force closest candidate hit to be the accepted track node hit.
bool SplitHistsByVolume() const
bool fSplitHistsByVolume
A flag to produce separate histograms for each volume matching the regex.
double GetHistZMax() const
void SetHistZRange(double minZ, double maxZ)