test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes
VisualizationOptions Struct Reference

#include <visualizeHFPhase1PMTParams.h>

Public Member Functions

const char * description () const
 
void load (cmdline::CmdLine &cmdline)
 

Static Public Member Functions

static const char * options ()
 

Public Attributes

double maxAsymm {5.0}
 
double maxCharge {1.0e3}
 
double maxTDC {25.0}
 
double minAsymm {-5.0}
 
double minCharge {-1.0e2}
 
double minTDC {0.0}
 
unsigned plotPoints {1000}
 
bool verbose {false}
 

Private Attributes

std::string descr_
 

Detailed Description

Definition at line 11 of file visualizeHFPhase1PMTParams.h.

Member Function Documentation

const char* VisualizationOptions::description ( ) const
inline

Definition at line 41 of file visualizeHFPhase1PMTParams.h.

References descr_, maxAsymm, maxCharge, maxTDC, minAsymm, minCharge, and minTDC.

42  {
43  if (descr_.empty())
44  {
45  std::ostringstream os;
46 
47  os << " --minAsymm (default " << minAsymm
48  << ") minimum value of charge asymmetry for plot axes\n\n";
49  os << " --maxAsymm (default " << maxAsymm
50  << ") maximum value of charge asymmetry for plot axes\n\n";
51  os << " --minCharge (default " << minCharge
52  << ") minimum value of charge for plot axes\n\n";
53  os << " --maxCharge (default " << maxCharge
54  << ") maximum value of charge for plot axes\n\n";
55  os << " --maxTDC (default " << minTDC
56  << ") minimum value of TDC time for plot axes\n\n";
57  os << " --maxTDC (default " << maxTDC
58  << ") maximum value of TDC time for plot axes\n\n";
59  os << " -v (verbose) print various diagnostics "
60  << "to the standard output\n";
61 
62  descr_ = os.str();
63  }
64  return descr_.c_str();
65  }
void VisualizationOptions::load ( cmdline::CmdLine cmdline)
inline

Definition at line 23 of file visualizeHFPhase1PMTParams.h.

References cmdline::CmdLine::has(), maxAsymm, maxCharge, maxTDC, minAsymm, minCharge, minTDC, cmdline::CmdLine::option(), and plotPoints.

Referenced by MatrixToProcess.MatrixToProcess::getProcess(), and MatrixToProcess.MatrixToProcess::listAll().

24  {
25  cmdline.option(0, "--minAsymm") >> minAsymm;
26  cmdline.option(0, "--maxAsymm") >> maxAsymm;
27  cmdline.option(0, "--minCharge") >> minCharge;
28  cmdline.option(0, "--maxCharge") >> maxCharge;
29  cmdline.option(0, "--minTDC") >> minTDC;
30  cmdline.option(0, "--maxTDC") >> maxTDC;
31  cmdline.option(0, "--plotPoints") >> plotPoints;
32  verbose = cmdline.has("-v");
33  }
bool has(const char *shortOpt, const char *longOpt=0)
Definition: CmdLine.h:306
OneShotIStream option(const char *shortOpt, const char *longOpt=0)
Definition: CmdLine.h:322
static const char* VisualizationOptions::options ( )
inlinestatic

Definition at line 35 of file visualizeHFPhase1PMTParams.h.

Referenced by betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::checkInput(), DOTExport.DotExport::export(), and DOTExport.DotExport::write_output().

36  {
37  return "[-v] [--minAsymm a0] [--maxAsymm a1] [--minCharge Qmin] "
38  "[--maxCharge Qmax] [--minTDC t0] [--maxTDC t1] [--plotPoints n]";
39  }

Member Data Documentation

std::string VisualizationOptions::descr_
mutableprivate

Definition at line 68 of file visualizeHFPhase1PMTParams.h.

Referenced by description().

double VisualizationOptions::maxAsymm {5.0}

Definition at line 19 of file visualizeHFPhase1PMTParams.h.

Referenced by description(), and load().

double VisualizationOptions::maxCharge {1.0e3}

Definition at line 15 of file visualizeHFPhase1PMTParams.h.

Referenced by description(), and load().

double VisualizationOptions::maxTDC {25.0}

Definition at line 17 of file visualizeHFPhase1PMTParams.h.

Referenced by description(), and load().

double VisualizationOptions::minAsymm {-5.0}

Definition at line 18 of file visualizeHFPhase1PMTParams.h.

Referenced by description(), and load().

double VisualizationOptions::minCharge {-1.0e2}

Definition at line 14 of file visualizeHFPhase1PMTParams.h.

Referenced by description(), and load().

double VisualizationOptions::minTDC {0.0}

Definition at line 16 of file visualizeHFPhase1PMTParams.h.

Referenced by description(), and load().

unsigned VisualizationOptions::plotPoints {1000}

Definition at line 20 of file visualizeHFPhase1PMTParams.h.

Referenced by load().

bool VisualizationOptions::verbose {false}