CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
fit::RootMinuitCommand Struct Reference

#include <RootMinuitCommands.h>

Public Member Functions

void print (std::ostream &cout) const
 

Public Attributes

std::vector< double > doubleArgs
 
std::string name
 
std::vector< std::string > stringArgs
 

Detailed Description

Definition at line 26 of file RootMinuitCommands.h.

Member Function Documentation

◆ print()

void fit::RootMinuitCommand::print ( std::ostream &  cout) const
inline

Definition at line 30 of file RootMinuitCommands.h.

References gather_cfg::cout, doubleArgs, mps_fire::i, name, and stringArgs.

Referenced by fit::RootMinuitCommands< Function >::init().

30  {
31  cout << name;
32  if (!stringArgs.empty()) {
33  for (size_t i = 0; i != stringArgs.size(); ++i) {
34  if (i != 0)
35  cout << ",";
36  cout << " \"" << stringArgs[i] << "\"";
37  }
38  }
39  if (!doubleArgs.empty()) {
40  for (size_t i = 0; i != doubleArgs.size(); ++i) {
41  if (i != 0)
42  cout << ",";
43  cout << " " << doubleArgs[i];
44  }
45  }
46  }
std::vector< std::string > stringArgs
std::vector< double > doubleArgs

Member Data Documentation

◆ doubleArgs

std::vector<double> fit::RootMinuitCommand::doubleArgs

Definition at line 29 of file RootMinuitCommands.h.

Referenced by fit::RootMinuitCommands< Function >::init(), and print().

◆ name

std::string fit::RootMinuitCommand::name

◆ stringArgs

std::vector<std::string> fit::RootMinuitCommand::stringArgs

Definition at line 28 of file RootMinuitCommands.h.

Referenced by fit::RootMinuitCommands< Function >::init(), and print().