English Français

Documentation / Developer's manual

Available modules

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

Description of the class TOutputFileRow. More...

#include <TOutputFileRow.h>

Inheritance diagram for URANIE::Launcher::TOutputFileRow:
Collaboration diagram for URANIE::Launcher::TOutputFileRow:

Public Member Functions

Constructor and Destructor
 TOutputFileRow (TString str)
 Default constructor.
 
virtual ~TOutputFileRow ()
 Default destructor.
 
Add attribut to the File
void addAttribute (URANIE::DataServer::TAttribute *, Int_t nrow=0)
 Add the attribute and the row number in the file.
 
void addAttribute (TString name, Int_t nrow=0)
 Add the attribute by this name and the row number in the file.
 
Search the Output values
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
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.
 

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 TOutputFileRow.

The File format
The output data stored in the Row format likes :
0.20E+05   0.1125274E-25   0.5626372E-26
0.30E+05   0.6558204E-22   0.3279102E-22
0.40E+05   0.5512052E-19   0.2756026E-19
0.50E+05   0.1204756E-16   0.6023779E-17
0.60E+05   0.9529597E-15   0.4764799E-15
0.70E+05   0.3464354E-13   0.1732177E-13
0.80E+05   0.6793988E-12   0.3396994E-12
0.90E+05   0.8090790E-11   0.4045395E-11
0.10E+06   0.6406688E-10   0.3203344E-10
0.20E+06   0.3121793E-06   0.1560896E-06
0.30E+06   0.1549709E-06   0.7748547E-07
0.40E+06   0.3679952E-08   0.1839976E-08
0.50E+06   0.2374279E-10   0.1187140E-10
0.60E+06   0.7977330E-13   0.3988665E-13
0.70E+06   0.1085446E-40   0.5427229E-41
0.80E+06   0.8481527E-39   0.4240764E-39
0.90E+06   0.3601835E-37   0.1800918E-37
0.10E+07   0.9537987E-36   0.4768994E-36
0.20E+07   0.1399458E-27   0.6997289E-28
0.30E+07   0.4081473E-24   0.2040736E-24
0.40E+07   0.1816580E-22   0.9082898E-23
0.50E+07   0.1019476E-21   0.5097381E-22
0.60E+07   0.2019173E-21   0.1009586E-21
0.70E+07   0.2611224E-21   0.1305612E-21
0.80E+07   0.3016021E-21   0.1508010E-21
0.90E+07   0.3424757E-21   0.1712378E-21
where the first row is the time, and the the two last rows are called y1 and y2. This file contains three attributes. When you have only one row, the file looks like:
0.20E+05   0.1125274E-25   0.5626372E-26
Example code source
Let the file "data.out" shown in the last section. Suppose that we want to store the "time" (first row) and "y2" (the last row). For the y2 attribute, we set the default value to -1.0
TOutputFileRow * fout = new TOutputFileRow("data.out");
fout->addAttribute("time", 1);
fout->addAttribute(new TAttribute("y1"));
TAttribute *attdose = new TAttribute("y2");
attdose->setDefaultValue(-1.0);
fout->addAttribute(attdose, 3);
Description of the class TOutputFileRow.
Definition TOutputFileRow.h:117
void addAttribute(URANIE::DataServer::TAttribute *, Int_t nrow=0)
Add the attribute and the row number in the file.
  • For the "time" attribute, we use the addAttribute method with the name only. then, the row number is set automatically with 1.
  • For the "y1" attribute, we use the addAttribute method with create a TAttribute object. then, the row number is set automatically with 2 because it exists already an attribute for the first row.
  • For the "y2" attribute, we use the addAttribute method with create a TAttribute object ans define the row number
See also
TOutputFileColumn, TOutputFileKey and TOutputFileDataServer

Constructor & Destructor Documentation

◆ TOutputFileRow()

URANIE::Launcher::TOutputFileRow::TOutputFileRow ( TString  str)

Default constructor.

Referenced by ClassImp().

◆ ~TOutputFileRow()

virtual URANIE::Launcher::TOutputFileRow::~TOutputFileRow ( )
virtual

Default destructor.

Referenced by ClassImp().

Member Function Documentation

◆ addAttribute() [1/2]

void URANIE::Launcher::TOutputFileRow::addAttribute ( TString  name,
Int_t  nrow = 0 
)

Add the attribute by this name and the row number in the file.

The row number begins to 1.

◆ addAttribute() [2/2]

void URANIE::Launcher::TOutputFileRow::addAttribute ( URANIE::DataServer::TAttribute *  ,
Int_t  nrow = 0 
)

Add the attribute and the row number in the file.

The row number begins to 1.

Referenced by ClassImp().

◆ printLog()

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

Reimplemented from URANIE::Launcher::TOutputFile.

Referenced by ClassImp().

◆ searchOutput() [1/2]

Bool_t URANIE::Launcher::TOutputFileRow::searchOutput ( Int_t &  indcrt,
Double_t *  val,
TList *  lstOut = NULL 
)
virtual

Looking for output usindouble only and transmitting matrix (not used by launcher anymore)

Implements URANIE::Launcher::TOutputFile.

Referenced by ClassImp().

◆ searchOutput() [2/2]

Bool_t URANIE::Launcher::TOutputFileRow::searchOutput ( vector< URANIE::DataServer::UEntry * > *  out)
virtual

Looking for output using a map to be able to cope with vectors/strings.

Implements URANIE::Launcher::TOutputFile.

Member Data Documentation

◆ _nColumns

Int_t URANIE::Launcher::TOutputFileRow::_nColumns
private

The number of columnsin the file.

Referenced by ClassImp().

◆ _nLines

Int_t URANIE::Launcher::TOutputFileRow::_nLines
private

The number of lines in the file.

Referenced by ClassImp().