English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Launcher: URANIE::Launcher::TLauncherFunction Class Reference
Uranie / Launcher v4.9.0
/* @license-end */
URANIE::Launcher::TLauncherFunction Class Reference

Execute an analytical function on a dataserver. More...

#include <TLauncherFunction.h>

Inheritance diagram for URANIE::Launcher::TLauncherFunction:
Collaboration diagram for URANIE::Launcher::TLauncherFunction:

Public Member Functions

Constructor and Destructor
 TLauncherFunction (URANIE::DataServer::TDataServer *tds, const char *functionanme, TString sinput="", TString soutput="")
 Constructor by a TDataServer, the name of the function and a list of inputs (optional). User MUST specify that functionanme IS a TString by forecasting it so as to use the fiest constructor.
 
 TLauncherFunction (URANIE::DataServer::TDataServer *tds, void(*fcn)(Double_t *, Double_t *), TString sinput, TString soutput)
 Constructor by a TDataServer, a function and list of inputs and outputs (optional)
 
virtual ~TLauncherFunction ()
 Default destructor.
 
Setting and Getting attributs
void setNOutput (Int_t n)
 Sets the number of output.
 
void setDrawProgressBar (Bool_t bbool=kTRUE)
 Set the "draw progress bar" flag.
 
Bool_t getDrawProgressBar ()
 Get the "draw progress bar" flag.
 
Evaluate the function
virtual void run (TString sinput="", TString soutput="", Option_t *option="")
 Runs phase of the code.
 
void delOutputAttributes ()
 
Printing Log
void setLog ()
 
void unsetLog ()
 
void changeLog ()
 
Bool_t getLog ()
 
virtual void printLog (Option_t *option="")
 

Private Attributes

TMethodCall * _fMethodCall
 Pointer to MethodCall in case of interpreted function.
 
void(* _fMethod )(Double_t *gin, Double_t *f)
 
TString _soutput
 Name of the output attributes.
 
Int_t _nOutput
 The dimension of the output vector.
 
URANIE::DataServer::TDataServer * _tds
 Pointer to the DataServer.
 
TList * _listOfInputAttributes
 List of the input branches.
 
Bool_t _blog
 Boolean to edit the log.
 
Bool_t _bdrawProgressBar
 Boolean to know if the progress bar has to be drawn.
 
URANIE::DataServer::TDSNtupleD * _internal
 

Detailed Description

Execute an analytical function on a dataserver.

This class extends the old class TPleXNum which is devoted to exectute an analytical function on a numerical experiment plant.

Constructor & Destructor Documentation

◆ TLauncherFunction() [1/2]

URANIE::Launcher::TLauncherFunction::TLauncherFunction ( URANIE::DataServer::TDataServer *  tds,
const char *  functionanme,
TString  sinput = "",
TString  soutput = "" 
)

Constructor by a TDataServer, the name of the function and a list of inputs (optional). User MUST specify that functionanme IS a TString by forecasting it so as to use the fiest constructor.

Referenced by ClassImp().

◆ TLauncherFunction() [2/2]

URANIE::Launcher::TLauncherFunction::TLauncherFunction ( URANIE::DataServer::TDataServer *  tds,
void(*)(Double_t *, Double_t *)  fcn,
TString  sinput,
TString  soutput 
)

Constructor by a TDataServer, a function and list of inputs and outputs (optional)

◆ ~TLauncherFunction()

virtual URANIE::Launcher::TLauncherFunction::~TLauncherFunction ( )
virtual

Default destructor.

Referenced by ClassImp().

Member Function Documentation

◆ changeLog()

void URANIE::Launcher::TLauncherFunction::changeLog ( )
inline

References _blog.

◆ delOutputAttributes()

void URANIE::Launcher::TLauncherFunction::delOutputAttributes ( )

Referenced by ClassImp().

◆ getDrawProgressBar()

Bool_t URANIE::Launcher::TLauncherFunction::getDrawProgressBar ( )
inline

Get the "draw progress bar" flag.

Returns
(Bool_t) the "draw progress bar" flag (boolean)

References _bdrawProgressBar.

◆ getLog()

Bool_t URANIE::Launcher::TLauncherFunction::getLog ( )
inline

References _blog.

◆ printLog()

virtual void URANIE::Launcher::TLauncherFunction::printLog ( Option_t *  option = "")
virtual

Referenced by ClassImp().

◆ run()

virtual void URANIE::Launcher::TLauncherFunction::run ( TString  sinput = "",
TString  soutput = "",
Option_t *  option = "" 
)
virtual

Runs phase of the code.

Referenced by ClassImp().

◆ setDrawProgressBar()

void URANIE::Launcher::TLauncherFunction::setDrawProgressBar ( Bool_t  bbool = kTRUE)
inline

Set the "draw progress bar" flag.

The progress bar will be drawn if and only if the "draw progress bar" flag is true.

References _bdrawProgressBar.

◆ setLog()

void URANIE::Launcher::TLauncherFunction::setLog ( )
inline

References _blog.

◆ setNOutput()

void URANIE::Launcher::TLauncherFunction::setNOutput ( Int_t  n)

Sets the number of output.

Referenced by ClassImp().

◆ unsetLog()

void URANIE::Launcher::TLauncherFunction::unsetLog ( )
inline

References _blog.

Member Data Documentation

◆ _bdrawProgressBar

Bool_t URANIE::Launcher::TLauncherFunction::_bdrawProgressBar
private

Boolean to know if the progress bar has to be drawn.

Referenced by ClassImp(), getDrawProgressBar(), and setDrawProgressBar().

◆ _blog

Bool_t URANIE::Launcher::TLauncherFunction::_blog
private

Boolean to edit the log.

Referenced by changeLog(), ClassImp(), getLog(), setLog(), and unsetLog().

◆ _fMethod

void(* URANIE::Launcher::TLauncherFunction::_fMethod) (Double_t *gin, Double_t *f)
private

Referenced by ClassImp().

◆ _fMethodCall

TMethodCall* URANIE::Launcher::TLauncherFunction::_fMethodCall
private

Pointer to MethodCall in case of interpreted function.

Referenced by ClassImp().

◆ _internal

URANIE::DataServer::TDSNtupleD* URANIE::Launcher::TLauncherFunction::_internal
private

Referenced by ClassImp().

◆ _listOfInputAttributes

TList* URANIE::Launcher::TLauncherFunction::_listOfInputAttributes
private

List of the input branches.

Referenced by ClassImp().

◆ _nOutput

Int_t URANIE::Launcher::TLauncherFunction::_nOutput
private

The dimension of the output vector.

Referenced by ClassImp().

◆ _soutput

TString URANIE::Launcher::TLauncherFunction::_soutput
private

Name of the output attributes.

Referenced by ClassImp().

◆ _tds

URANIE::DataServer::TDataServer* URANIE::Launcher::TLauncherFunction::_tds
private

Pointer to the DataServer.

Referenced by ClassImp().