Jpp  master_rocky
the software that should make you happy
Public Member Functions | Public Attributes | Friends | List of all members
JMinimizer Struct Reference

Auxiliary data structure to define ROOT minimizer. More...

#include <JMinimizer.hh>

Public Member Functions

 JMinimizer ()
 Default constructor. More...
 
void configure ()
 Configure ROOT minimizer. More...
 

Public Attributes

std::string type
 
std::string algorithm
 
int debug
 

Friends

std::istream & operator>> (std::istream &in, JMinimizer &object)
 Stream input of ROOT minimzer. More...
 
std::ostream & operator<< (std::ostream &out, const JMinimizer &object)
 Stream output of ROOT minimzer. More...
 

Detailed Description

Auxiliary data structure to define ROOT minimizer.

Definition at line 14 of file JMinimizer.hh.

Constructor & Destructor Documentation

◆ JMinimizer()

JMinimizer::JMinimizer ( )
inline

Default constructor.

Definition at line 18 of file JMinimizer.hh.

18  :
19  type ("Minuit"),
20  algorithm("Migrad"),
21  debug (0)
22  {
23  configure();
24  }
std::string type
Definition: JMinimizer.hh:71
void configure()
Configure ROOT minimizer.
Definition: JMinimizer.hh:30
std::string algorithm
Definition: JMinimizer.hh:72

Member Function Documentation

◆ configure()

void JMinimizer::configure ( )
inline

Configure ROOT minimizer.

Definition at line 30 of file JMinimizer.hh.

31  {
32  ROOT::Math::MinimizerOptions::SetDefaultMinimizer(type.c_str(), algorithm.c_str());
33  ROOT::Math::MinimizerOptions::SetDefaultPrintLevel(debug);
34  }

Friends And Related Function Documentation

◆ operator>>

std::istream& operator>> ( std::istream &  in,
JMinimizer object 
)
friend

Stream input of ROOT minimzer.

Parameters
ininput stream
objectROOT minimzer
Returns
input stream

Definition at line 44 of file JMinimizer.hh.

45  {
46  if (in >> object.type >> object.algorithm) {
47 
48  in >> object.debug;
49 
50  in.clear();
51 
52  object.configure();
53  }
54 
55  return in;
56  }

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const JMinimizer object 
)
friend

Stream output of ROOT minimzer.

Parameters
outoutput stream
objectROOT minimzer
Returns
output stream

Definition at line 66 of file JMinimizer.hh.

67  {
68  return out << object.type << ' ' << object.algorithm;
69  }

Member Data Documentation

◆ type

std::string JMinimizer::type

Definition at line 71 of file JMinimizer.hh.

◆ algorithm

std::string JMinimizer::algorithm

Definition at line 72 of file JMinimizer.hh.

◆ debug

int JMinimizer::debug

Definition at line 73 of file JMinimizer.hh.


The documentation for this struct was generated from the following file: