English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Modeler: TNisp.h Source File
Uranie / Modeler v4.9.0
/* @license-end */
TNisp.h
Go to the documentation of this file.
1
2// Copyright (C) 2013-2024 CEA/DES
3//
4// This program is free software: you can redistribute it and/or modify
5// it under the terms of the GNU Lesser General Public License as published
6// by the Free Software Foundation, either version 3 of the License, or any
7// later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU Lesser General Public License for more details.
13//
14// You should have received a copy of the GNU Lesser General Public License
15// along with this program. If not, see <http://www.gnu.org/licenses/>.
17
38#ifndef TNISP_H
39#define TNISP_H
40
41//ROOT
42#include "Rtypes.h"
43#include "TLeaf.h"
44
45// uranie
46#include "TDataServer.h"
47#include "Modeler.h"
48#include "TStochAttribut.h"
49#include "UExceptions.h"
50
51// nisp
52#include "nisp_gva.h"
53
54using namespace URANIE::DataServer;
55using namespace URANIE::Exceptions;
56
57namespace URANIE
58{
59namespace Modeler
60{
61class TNisp
62{
64public:
66 TDataServer * _tds;
69 SetRandomVariable * _gvx;
72 SetRandomVariable * _gvu;
74 Int_t _nx;
76 Int_t _ns;
78 Int_t _level;
80 TDataSpecification * _listAttIn;
84 TString _sWeight;
85
86protected:
88 Bool_t _blog;
89
90private:
92 Bool_t _bSavePsi;
94 Bool_t _bIsSample;
96 Bool_t _bError;
98 Bool_t _bSuppress;
99
101public:
106
119 TNisp(TDataServer *tds);
121 virtual ~TNisp();
123
130 void generateSample(TString type, Int_t level, Option_t *option =
131 "nosavegvx");
133
138 void setSample(TString methode, Option_t *option = "nosavegvx");
140
145
150 /*
151 \brief Return the level of th method used to build the sample.
152 */
153 Int_t getLevel();
154
156
159 void setLevel(Int_t level);
160
161 //---------------------------------------------
165 void setLog()
166 {
167 _blog = kTRUE;
168 }
169 void unsetLog()
170 {
171 _blog = kFALSE;
172 }
174 {
175 _blog = _blog ? kFALSE : kTRUE;
176 }
177 Bool_t getLog()
178 {
179 return _blog;
180 }
181 virtual void printLog(Option_t *option = "");
183
184 ClassDef(URANIE::Modeler::TNisp, ID_MODELER)
185
186};
187//end of the class TNisp
188}//end of the namespace Modeler
189} //end of the namespace URANIE
190#endif
Description of the class TNisp.
Definition TNisp.h:62
void setLevel(Int_t level)
set the level of the method used to build the sample
Bool_t getLog()
Definition TNisp.h:177
Bool_t _blog
Boolean for edit the log.
Definition TNisp.h:88
void generateSample(TString type, Int_t level, Option_t *option="nosavegvx")
Realisation of a sample.
Bool_t _bIsSample
Boolean used to verify the use (or not) of the method setSample.x.
Definition TNisp.h:94
SetRandomVariable * _gvu
Definition TNisp.h:72
Int_t _ns
Number of simulation.
Definition TNisp.h:76
TDataServer * _tds
Object of type TDataServer.
Definition TNisp.h:66
Int_t getLevel()
Level.
Bool_t _bHasWeight
Boolean used to verify the use (or not) of integration weight.
Definition TNisp.h:82
void setLog()
Definition TNisp.h:165
Int_t getNAttributes()
Number of ramdom variable i.e. stochastic dimension (_nx)
virtual ~TNisp()
Destructor.
SetRandomVariable * _gvx
Definition TNisp.h:69
Int_t _nx
Number of random variable.
Definition TNisp.h:74
Bool_t _bSavePsi
Boolean used to active the saving of the stochastic variables in the tds.
Definition TNisp.h:92
virtual void printLog(Option_t *option="")
void changeLog()
Definition TNisp.h:173
Int_t _level
Level of the method used to build the sample.
Definition TNisp.h:78
Bool_t _bError
Boolean used to write a warning if the option name is KO.
Definition TNisp.h:96
TNisp(TDataServer *tds)
Constructor from a TDataServer object.
void unsetLog()
Definition TNisp.h:169
void setSample(TString methode, Option_t *option="nosavegvx")
Specification of a sample from another componant.
Int_t getNPatterns()
Get the number of simulation i.e. size of the sample (_size)
Bool_t _bSuppress
Boolean used to write a warning if the tuple of tds already exist.
Definition TNisp.h:98
TString _sWeight
Name of the integration weight.
Definition TNisp.h:84
TDataSpecification * _listAttIn
Object of type TDataSpecification used to index the name of the variables.
Definition TNisp.h:80
ROOT.
Definition TAnisp.h:164