Jpp  19.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 ( )
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

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  }
std::string type
Definition: JMinimizer.hh:71
std::string algorithm
Definition: JMinimizer.hh:72

Friends And Related Function Documentation

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  }
std::string type
Definition: JMinimizer.hh:71
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:48
std::string algorithm
Definition: JMinimizer.hh:72
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

std::string JMinimizer::type

Definition at line 71 of file JMinimizer.hh.

std::string JMinimizer::algorithm

Definition at line 72 of file JMinimizer.hh.

int JMinimizer::debug

Definition at line 73 of file JMinimizer.hh.


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