English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / DataServer: TTemporalTree.h Source File
Uranie / DataServer v4.9.0
/* @license-end */
TTemporalTree.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/>.
18// $Id$
19// $Author$
20// $Date$
21// $Revision$
22// $State$
24
32#ifndef TTEMPORALTREE_H
33#define TTEMPORALTREE_H
34
35// ROOT
36#include "TROOT.h"
37#include "TTree.h"
38#include "TNamed.h"
39
40// Uranie
41#include "DataServer.h"
42#include "TDataServer.h"
43
44namespace URANIE
45{
46namespace DataServer
47{
48class TTemporalTree : public TNamed {
49
50private:
51 TString _sIter; // The iterator attribute
52 TString _sTime; // The time attribute (nT \eq 1)
53 TString _sY; // The output attribute (nY \eq 1)
54 TString _sXs; // The vector of X attributes (nX \leq 1)
55 TList * _lstOfYTAttributes; // The list of Output (Y) and Time(T) attributes
56 TList * _lstOfXAttributes; // The list of X attributes
57 TString _sAdditional; // The additional attribute to store
58 Bool_t _bHaveAdditionnal; // Boolean if have additional attribute
59 Bool_t _bHaveXs; // Boolean if have nX attributes
60 Bool_t _bdrawProgressBar; // Boolean to know if the progress bar has to be drawn
61
62 TTree * _tTree; //-> TTree contain vector of time values and of sY values
63 TTree * _tStatTree; //-> TTree contain vector of time values and of sY values
64 TDataServer * _tds; // Pointer to a TDS
65 Int_t _nNMaxTime; // The maximun number of time
66 Int_t _nNMinTime; // The minimum number of time
67 Bool_t _blog; // Log printing.
68public:
69 //---------------------------------------------
84 TTemporalTree(TDataServer *tds, TString stime, TString sy, TString sXs = "");
88 virtual ~TTemporalTree();
90
91 //---------------------------------------------
100 Bool_t buildTree(Option_t *option = "");
105 void draw(Option_t *option = "");
107
108 //---------------------------------------------
116 void setIterator(TString siter);
121 TString getIterator() { return _sIter;}
126 Int_t getNMinTime() { return _nNMinTime;}
131 Int_t getNMaxTime() { return _nNMaxTime;}
136 TTree * getTTree();
145 TTree * getStatTree();
150 void setAdditinalAttribute(TString sname);
153
154 //---------------------------------------------
158
163 void setDrawProgressBar(Bool_t bbool = kTRUE)
164 {
165 _bdrawProgressBar = bbool;
166 }
167
169
173 {
174 return _bdrawProgressBar;
175 }
177
178 //---------------------------------------------
182 void setLog()
183 {
184 _blog = kTRUE;
185 }
186 void unsetLog()
187 {
188 _blog = kFALSE;
189 }
191 {
192 _blog = _blog ? kFALSE : kTRUE;
193 }
194 Bool_t getLog()
195 {
196 return _blog;
197 }
198 virtual void printLog();
200
201 ClassDef(URANIE::DataServer::TTemporalTree, ID_DATASERVER) //TTemporalAttribute structure
202};
203
204} // Fin du namespace DataServer
205} // Fin du namespace URANIE
206#endif // TTEMPORALTREE_H
Interface of the class URANIE::DataServer::TDataServer.
Description of the class TDataServer.
Definition TDataServer.h:86
Definition TTemporalTree.h:48
TList * _lstOfXAttributes
Definition TTemporalTree.h:56
TString _sTime
Definition TTemporalTree.h:52
TString getIterator()
Return the name of the attribute used as the iterator.
Definition TTemporalTree.h:121
TString _sXs
Definition TTemporalTree.h:54
Bool_t getLog()
Definition TTemporalTree.h:194
void unsetLog()
Definition TTemporalTree.h:186
Bool_t buildTree(Option_t *option="")
Build the data and statistics TTrees.
void setIterator(TString siter)
Set the iterator attributes if different than tds->getIteratorName.
virtual ~TTemporalTree()
virtaul destructor
TTemporalTree()
Default empty constructor.
void setAdditinalAttribute(TString sname)
setAdditinalAttribute
Int_t _nNMaxTime
Definition TTemporalTree.h:65
Bool_t _bHaveXs
Definition TTemporalTree.h:59
void setLog()
Definition TTemporalTree.h:182
TTree * getStatTree()
Build a TTree with statistics of the Y attribute versus times. The statistic are :
TTree * _tStatTree
Definition TTemporalTree.h:63
TString getAdditinalAttribute()
Definition TTemporalTree.h:151
void draw(Option_t *option="")
Make two graphics with the data and statistics.
Int_t getNMinTime()
Get the number of minimum of times.
Definition TTemporalTree.h:126
TString _sAdditional
Definition TTemporalTree.h:57
void changeLog()
Definition TTemporalTree.h:190
Int_t _nNMinTime
Definition TTemporalTree.h:66
Int_t getNMaxTime()
Get the number of mximum of times.
Definition TTemporalTree.h:131
TTemporalTree(TDataServer *tds, TString stime, TString sy, TString sXs="")
Build a TTree object with one only temporal Y attribute.
Bool_t getDrawProgressBar()
Get the "draw progress bar" flag.
Definition TTemporalTree.h:172
Bool_t _bdrawProgressBar
Definition TTemporalTree.h:60
Bool_t _blog
Definition TTemporalTree.h:67
TList * _lstOfYTAttributes
Definition TTemporalTree.h:55
TTree * _tTree
Definition TTemporalTree.h:62
TString _sIter
Definition TTemporalTree.h:51
void setDrawProgressBar(Bool_t bbool=kTRUE)
Set the "draw progress bar" flag.
Definition TTemporalTree.h:163
Bool_t _bHaveAdditionnal
Definition TTemporalTree.h:58
TTree * getTTree()
Get the pointer to the TTree object.
TString _sY
Definition TTemporalTree.h:53
TDataServer * _tds
Definition TTemporalTree.h:64
ROOT.
Definition TAttribute.h:106