CMS 3D CMS Logo

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

◆ description()

const char* VisualizationOptions::description ( ) const
inline

Definition at line 38 of file visualizeHFPhase1PMTParams.h.

38  {
39  if (descr_.empty()) {
40  std::ostringstream os;
41 
42  os << " --minAsymm (default " << minAsymm << ") minimum value of charge asymmetry for plot axes\n\n";
43  os << " --maxAsymm (default " << maxAsymm << ") maximum value of charge asymmetry for plot axes\n\n";
44  os << " --minCharge (default " << minCharge << ") minimum value of charge for plot axes\n\n";
45  os << " --maxCharge (default " << maxCharge << ") maximum value of charge for plot axes\n\n";
46  os << " --maxTDC (default " << minTDC << ") minimum value of TDC time for plot axes\n\n";
47  os << " --maxTDC (default " << maxTDC << ") maximum value of TDC time for plot axes\n\n";
48  os << " -v (verbose) print various diagnostics "
49  << "to the standard output\n";
50 
51  descr_ = os.str();
52  }
53  return descr_.c_str();
54  }

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

◆ load()

void VisualizationOptions::load ( cmdline::CmdLine cmdline)
inline

Definition at line 22 of file visualizeHFPhase1PMTParams.h.

22  {
23  cmdline.option(nullptr, "--minAsymm") >> minAsymm;
24  cmdline.option(nullptr, "--maxAsymm") >> maxAsymm;
25  cmdline.option(nullptr, "--minCharge") >> minCharge;
26  cmdline.option(nullptr, "--maxCharge") >> maxCharge;
27  cmdline.option(nullptr, "--minTDC") >> minTDC;
28  cmdline.option(nullptr, "--maxTDC") >> maxTDC;
29  cmdline.option(nullptr, "--plotPoints") >> plotPoints;
30  verbose = cmdline.has("-v");
31  }

References maxAsymm, maxCharge, maxTDC, minAsymm, minCharge, minTDC, plotPoints, and verbose.

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

◆ options()

static const char* VisualizationOptions::options ( )
inlinestatic

Member Data Documentation

◆ descr_

std::string VisualizationOptions::descr_
mutableprivate

Definition at line 57 of file visualizeHFPhase1PMTParams.h.

Referenced by description().

◆ maxAsymm

double VisualizationOptions::maxAsymm {5.0}

Definition at line 18 of file visualizeHFPhase1PMTParams.h.

Referenced by description(), and load().

◆ maxCharge

double VisualizationOptions::maxCharge {1.0e3}

Definition at line 14 of file visualizeHFPhase1PMTParams.h.

Referenced by description(), and load().

◆ maxTDC

double VisualizationOptions::maxTDC {25.0}

Definition at line 16 of file visualizeHFPhase1PMTParams.h.

Referenced by description(), and load().

◆ minAsymm

double VisualizationOptions::minAsymm {-5.0}

Definition at line 17 of file visualizeHFPhase1PMTParams.h.

Referenced by description(), and load().

◆ minCharge

double VisualizationOptions::minCharge {-1.0e2}

Definition at line 13 of file visualizeHFPhase1PMTParams.h.

Referenced by description(), and load().

◆ minTDC

double VisualizationOptions::minTDC {0.0}

Definition at line 15 of file visualizeHFPhase1PMTParams.h.

Referenced by description(), and load().

◆ plotPoints

unsigned VisualizationOptions::plotPoints {1000}

Definition at line 19 of file visualizeHFPhase1PMTParams.h.

Referenced by load().

◆ verbose

bool VisualizationOptions::verbose {false}
VisualizationOptions::plotPoints
unsigned plotPoints
Definition: visualizeHFPhase1PMTParams.h:19
VisualizationOptions::descr_
std::string descr_
Definition: visualizeHFPhase1PMTParams.h:57
VisualizationOptions::maxTDC
double maxTDC
Definition: visualizeHFPhase1PMTParams.h:16
VisualizationOptions::minAsymm
double minAsymm
Definition: visualizeHFPhase1PMTParams.h:17
VisualizationOptions::maxAsymm
double maxAsymm
Definition: visualizeHFPhase1PMTParams.h:18
VisualizationOptions::maxCharge
double maxCharge
Definition: visualizeHFPhase1PMTParams.h:14
VisualizationOptions::minTDC
double minTDC
Definition: visualizeHFPhase1PMTParams.h:15
cmdline
Definition: CmdLine.h:119
VisualizationOptions::minCharge
double minCharge
Definition: visualizeHFPhase1PMTParams.h:13
VisualizationOptions::verbose
bool verbose
Definition: visualizeHFPhase1PMTParams.h:20