English Français

Documentation / Developer's manual

Available modules

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

Description of a variable (field). More...

#include <TQMC.h>

Inheritance diagram for URANIE::Sampler::TQMC:
Collaboration diagram for URANIE::Sampler::TQMC:

Public Member Functions

Constructor and Destructor
 TQMC (URANIE::DataServer::TDataServer *tds, Option_t *option, Int_t nCalcul)
 Constructor from a TDataServer, the name of the method and the size of the sample.
 
virtual ~TQMC ()
 Default destructor.
 
Generation of the sample

Creates the TNtupleD of data with only the TStochasticAttributes

virtual void generateSample (Option_t *option="")
 Generates the sample.
 
Printing Log
virtual void printLog (Option_t *option="")
 Prints the log.
 
- Public Member Functions inherited from URANIE::Sampler::TSamplerDeterminist
 TSamplerDeterminist (URANIE::DataServer::TDataServer *tds, Option_t *option, Int_t ns)
 Constructor with a dataserver.
 
virtual ~TSamplerDeterminist ()
 Default destructor.
 
- Public Member Functions inherited from URANIE::Sampler::TSampler
 TSampler (URANIE::DataServer::TDataServer *tds, Option_t *option, Int_t nCalcul)
 Constructor with a TDataServer, the options and the size of the sample.
 
virtual ~TSampler ()
 Default destructor.
 
Int_t GetID ()
 Returns the ID of the class.
 
void setMethodName (TString str)
 Sets the method name in a global variable.
 
TString getMethodName ()
 Gets the method name.
 
virtual URANIE::DataServer::TDataServer * getTDS ()
 Return the TDS filling by the sampling algorithm.
 
void parseOption (Option_t *option)
 Parse the option.
 
virtual void createListOfAttributes ()
 Creates the List of attributes to simulate.
 
virtual void createTuple ()
 Creates the TDSNtupleD of data with only the TStochasticAttributes.
 
URANIE::DataServer::TDSNtupleD * getTuple ()
 Returns the TDSNtupleD of data.
 
virtual void fillOtherAttributes ()
 Fills the TDSNtupleD of data with other TFormulaAttributes.
 
void setLog ()
 
void unsetLog ()
 
void changeLog ()
 
Bool_t getLog ()
 

Private Attributes

TSequence_Sequence
 
TString _sSequence
 

Additional Inherited Members

- Public Attributes inherited from URANIE::Sampler::TSampler
Int_t _nS
 The size of the sample.
 
Int_t _nX
 The size of attributes to sample.
 
URANIE::DataServer::TDSNtupleD * _ntsample
 the tntuple of data
 
TString _sMethod
 The title of the sampler method.
 
Bool_t _blog
 Log Printing.
 
Bool_t _bupdateFile
 Update the back up file when generating the attributeformula if there is some.
 
URANIE::DataServer::TDataServer * _tds
 Pointer to a TDS.
 
TList * _lstOfAttributesToSample
 The list of Stochastic Attributes to sample.
 

Detailed Description

Description of a variable (field).

Both currently sequences implemented are :

  • "sobol"
  • "halton"

Example of use

Firstly, a pointer to a TDataServer is constructed

TDataServer *tdsqmc = new TDataServer("tdsQMC", "Test for qMC");
tdsqmc->addAttribute( new TAttribute("x_{1}", -1.0 , 2.) );
tdsqmc->addAttribute( new TAttribute("x_{2}", 0.0 , 3.) );
tdsqmc->addAttribute( new TAttribute("x_{3}", 1.0, 1.5) );

Then, a pointer to an object TQMC of the chosen sequence ("sobol"|"halton") is constructed from this TDataServer , and the generateSample() method is applied

TQMC * qmc = new TQMC(tdsqmc, "sobol", 300);
Description of a variable (field).
Definition TQMC.h:84
virtual void generateSample(Option_t *option="")
Generates the sample.

Bibliography source

The bibliography is :

  • Eric Thiemard's thesis intitulated Sur le Calcul et la Majoration de la disrepance a l'Origine - Lausanne, EPFL, 2000 (in french)
  • Lectures Notes in statistics intitulated Random and Quasi-Random Points Sets
    He proposes a theorical presentation of the Digital Point Sets of Gerhard Larcher.Anyway, this book is mostly oriented to the tests for checking that the generated points are really random ones.

Constructor & Destructor Documentation

◆ TQMC()

URANIE::Sampler::TQMC::TQMC ( URANIE::DataServer::TDataServer *  tds,
Option_t *  option,
Int_t  nCalcul 
)

Constructor from a TDataServer, the name of the method and the size of the sample.

Referenced by ClassImp().

◆ ~TQMC()

virtual URANIE::Sampler::TQMC::~TQMC ( )
virtual

Default destructor.

Referenced by ClassImp().

Member Function Documentation

◆ generateSample()

virtual void URANIE::Sampler::TQMC::generateSample ( Option_t *  option = "")
virtual

Generates the sample.

Implements URANIE::Sampler::TSampler.

Referenced by ClassImp().

◆ printLog()

virtual void URANIE::Sampler::TQMC::printLog ( Option_t *  option = "")
virtual

Prints the log.

Reimplemented from URANIE::Sampler::TSamplerDeterminist.

Referenced by ClassImp().

Member Data Documentation

◆ _Sequence

TSequence* URANIE::Sampler::TQMC::_Sequence
private

Referenced by ClassImp().

◆ _sSequence

TString URANIE::Sampler::TQMC::_sSequence
private

Referenced by ClassImp().