Documentation / Developer's manual
Available modules
Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,  
Uranie / Launcher v4.9.0
|
Description of the class TOutputFileColumn. More...
#include <TOutputFileColumn.h>
Public Member Functions | |
Constructor and Destructor | |
TOutputFileColumn (TString str) | |
Default constructor. | |
virtual | ~TOutputFileColumn () |
Default destructor. | |
Add attribut to the File | |
void | addAttribute (URANIE::DataServer::TAttribute *att, Int_t nline=0) |
Add the attribute and the line number in the file. | |
void | addAttribute (TString name, Int_t nline=0) |
Add the attribute by this name and the nline number in the file. | |
Computes Output | |
Bool_t | searchOutput (Int_t &indcrt, Double_t *val, TList *lstOut=NULL) |
Looking for output usindouble only and transmitting matrix (not used by launcher anymore) | |
Bool_t | searchOutput (vector< URANIE::DataServer::UEntry * > *out) |
Looking for output using a map to be able to cope with vectors/strings. | |
Printing Log | |
virtual void | printLog (Option_t *option="") |
Public Member Functions inherited from URANIE::Launcher::TOutputFile | |
TOutputFile (TString str) | |
Default constructor. | |
virtual | ~TOutputFile () |
Default destructor. | |
virtual void | addAttribute (URANIE::DataServer::TAttribute *) |
Add the attribute in the file. | |
virtual void | addAttribute (TString name) |
Add the attribute by this name in the file. | |
Public Member Functions inherited from URANIE::Launcher::TCodeFile | |
TCodeFile (TString str) | |
Default constructor. | |
virtual | ~TCodeFile () |
Default destructor. | |
TString | getFileName () |
void | setCommentCharacter (const char *str) |
const char * | getCommentCharacter () |
void | setSeparatorCharacter (const char *str) |
const char * | getSeparatorCharacter () |
void | setFieldSeparatorCharacter (const char *str) |
const char * | getFieldSeparatorCharacter () |
URANIE::DataServer::TAttribute * | getAttribute (Int_t ind) |
Int_t | getAttributesNumber () const |
Int_t | getNAttributes () const |
void | setVectorProperties (TString beg, TString delim, TString end) |
void | setStringProperties (TString beg, TString end) |
void | getBegEndProperties (URANIE::DataServer::TAttribute *att, TString &beg, TString &end) |
Bool_t | isAttribute (TString sAttributeName) |
Verify is the attribute given by the name is is the list of attribute. | |
void | setLog () |
void | unsetLog () |
void | changeLog () |
Bool_t | getLog () |
Private Attributes | |
Int_t | _nLines |
The number of lines in the file. | |
Int_t | _nColumns |
The number of columnsin the file. | |
Int_t | _nLength |
The number of temporal data (_nColumns) to store. | |
Additional Inherited Members | |
Public Attributes inherited from URANIE::Launcher::TCodeFile | |
vector< URANIE::DataServer::TAttribute * > | _attributes |
Vector of attributes. | |
TString | _svecbeg |
TString | _svecend |
TString | _svecdel |
TString | _sstrbeg |
TString | _sstrend |
string used for the beginning, end and delimitation of vectors and strings | |
TString | _sFileName |
The name of file. | |
Bool_t | _blog |
Boolean for edit the log. | |
TString | _cComments |
The set of comment character. | |
TString | _cSeparators |
The set of separator character. | |
TString | _cFieldSeparator |
the separator to be used in between fields | |
Detailed Description
Description of the class TOutputFileColumn.
This class enables to get scalars written by column, in an ASCII file.
- Todo:
To be checked : apparently , all information that have to be raised, must be located on the first line.
Change the name of TOutputFileColumn to TOutputFileColumn
1.5697507E-19 1.9395840E-19 2.9158929E-16 3.6028774E-16 3.5310144E-14 4.3629214E-14 1.0450831E-12 1.2913046E-12 1.3153202E-11 1.6252097E-11 9.3449165E-11 1.1546579E-10 4.4158568E-10 5.4562327E-10 1.5389996E-09 1.9015880E-09 4.2396255E-09 5.2384812E-09 1.7353132E-07 2.1441529E-07 7.4187462E-08 9.1666024E-08 7.1243931E-09 8.8028997E-09 3.5554371E-10 4.3930981E-10 1.2805967E-11 1.5823053E-11 1.3971713E-12 1.7263449E-12 5.8563991E-12 7.2361665E-12 2.2953027E-11 2.8360760E-11 6.7645112E-11 8.3582301E-11 2.6601454E-09 3.2868757E-09 3.6597383E-09 4.5219726E-09 4.1768415E-09 5.1609055E-09 4.7367488E-09 5.8527267E-09 5.3706906E-09 6.6360251E-09 6.0915699E-09 7.5267437E-09 6.9160828E-09 8.5455119E-09 7.8621030E-09 9.7144142E-09
This file contains 26 attributes and for each attributes, it contains two values (like temporal attributes).
- Example code source
- Let the file "data.out" shown in the last section. Suppose that we want to store the four attributes in the lines 1, 15, 22 and 26. For the out22 attribute, we set the default value to -1.0
TOutputFileColumn * fout = new TOutputFileColumn("data.out"); fout->addAttribute( new TAttribute("out1"), 1); fout->addAttribute( new TAttribute("out15"), 15); TAttribute *attdose = new TAttribute("out22"); attdose->setDefaultValue(-1.0); fout->addAttribute(attdose, 22); fout->addAttribute( new TAttribute("out26"), 26);
- See also
- TOutputFile,
- TOutputFileRow
Constructor & Destructor Documentation
◆ TOutputFileColumn()
URANIE::Launcher::TOutputFileColumn::TOutputFileColumn | ( | TString | str | ) |
Default constructor.
Referenced by ClassImp().
◆ ~TOutputFileColumn()
|
virtual |
Default destructor.
Referenced by ClassImp().
Member Function Documentation
◆ addAttribute() [1/2]
void URANIE::Launcher::TOutputFileColumn::addAttribute | ( | TString | name, |
Int_t | nline = 0 |
||
) |
Add the attribute by this name and the nline number in the file.
The line number begins to 1.
◆ addAttribute() [2/2]
void URANIE::Launcher::TOutputFileColumn::addAttribute | ( | URANIE::DataServer::TAttribute * | att, |
Int_t | nline = 0 |
||
) |
Add the attribute and the line number in the file.
The line number begins to 1.
- Log
- Modified since URANIE v2.0/1. 1 arg was added.
Referenced by ClassImp().
◆ printLog()
|
virtual |
Reimplemented from URANIE::Launcher::TOutputFile.
Referenced by ClassImp().
◆ searchOutput() [1/2]
|
virtual |
Looking for output usindouble only and transmitting matrix (not used by launcher anymore)
Implements URANIE::Launcher::TOutputFile.
Referenced by ClassImp().
◆ searchOutput() [2/2]
|
virtual |
Looking for output using a map to be able to cope with vectors/strings.
Implements URANIE::Launcher::TOutputFile.
Member Data Documentation
◆ _nColumns
|
private |
The number of columnsin the file.
Referenced by ClassImp().
◆ _nLength
|
private |
The number of temporal data (_nColumns) to store.
Referenced by ClassImp().
◆ _nLines
|
private |
The number of lines in the file.
Referenced by ClassImp().