English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Launcher: TLauncherByStep.h Source File
Uranie / Launcher v4.9.0
/* @license-end */
TLauncherByStep.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
34#ifndef TLAUNCHERBYSTEP_H
35#define TLAUNCHERBYSTEP_H
36
37#include "TNamed.h"
38
39#include <iostream>
40#include <fstream>
41
42using std::cout;
43using std::endl;
44
45// ROOT
46#include "Rtypes.h"
47
48// Uranie
49#include "TLauncher.h"
50#include "Launcher.h"
51
52namespace URANIE
53{
54namespace Launcher
55{
57{
58
59public:
60 //---------------------------------------------
64
65 TLauncherByStep(URANIE::DataServer::TDataServer *tds, TCode *code, Option_t *option="");
67 virtual ~TLauncherByStep();
69 //---------------------------------------------
73
77 virtual void preTreatment(Option_t *option = "");
79
82 virtual void run(Option_t *option = "");
84
87 virtual void postTreatment(Option_t *option = "");
89
90 //---------------------------------------------
94
95 virtual void printLog(Option_t *option = "");
97
98 //-----------------------------------------------
102
106 void setNumberOfCores(Int_t ncores)
107 {
108 _nAllocatedCores = ncores;
109 }
114 Int_t getNumberOfCores() const
115 {
116 return _nAllocatedCores;
117 }
119
122 void setAllocatedTime(Int_t nseconds)
123 {
124 _nAllocatedSeconds = nseconds;
125 }
130 Int_t getAllocatedTime() const
131 {
132 return _nAllocatedSeconds;
133 }
135
138 void setProjectName(TString project_name)
139 {
140 _sProjectName = project_name;
141 }
146 TString getProjectName() const
147 {
148 return _sProjectName;
149 }
151
154 void setClusterName(TString cluster_name)
155 {
156 _sClusterName = cluster_name;
157 }
162 TString getClusterName() const
163 {
164 return _sClusterName;
165 }
167
170 void addExtraDirective(const TString& directive)
171 {
172 _sListExtraDirectives.push_back(directive);
173 }
175
176private:
196 vector<TString> _sListExtraDirectives;
197
198 ClassDef(URANIE::Launcher::TLauncherByStep, ID_LAUNCHER)
199 //The description
200};
201
202} // End Of namespace Launcher
203} // End Of namespace URANIE
204
205#endif
206// End Of File TLauncherByStep.h
Interface of the class URANIE::Launcher::TLauncher.
Description of the class TCode.
Definition TCode.h:46
Definition TLauncherByStep.h:57
Int_t getAllocatedTime() const
Get the Number of second allocated.
Definition TLauncherByStep.h:130
void addExtraDirective(const TString &directive)
Add extra directive.
Definition TLauncherByStep.h:170
vector< TString > _sListExtraDirectives
Definition TLauncherByStep.h:196
void setAllocatedTime(Int_t nseconds)
Sets the requested time in seconds.
Definition TLauncherByStep.h:122
virtual void run(Option_t *option="")
Evaluate the code in each working subdirectory.
Definition TLauncherByStep.cxx:146
virtual void printLog(Option_t *option="")
Print the log of the class.
Definition TLauncherByStep.cxx:445
TString getClusterName() const
Get the Cluster Name.
Definition TLauncherByStep.h:162
virtual void preTreatment(Option_t *option="")
PreTreatment.
Definition TLauncherByStep.cxx:78
Int_t getNumberOfCores() const
Get the Number of cores allocated
Definition TLauncherByStep.h:114
TString _sProjectName
Definition TLauncherByStep.h:188
Int_t _nAllocatedSeconds
Definition TLauncherByStep.h:180
virtual void postTreatment(Option_t *option="")
PostTreatment.
Definition TLauncherByStep.cxx:250
void setNumberOfCores(Int_t ncores)
Sets the number of cores requested.
Definition TLauncherByStep.h:106
TString _sClusterName
Definition TLauncherByStep.h:192
void setProjectName(TString project_name)
Sets the project name.
Definition TLauncherByStep.h:138
TString getProjectName() const
Get the Project Name.
Definition TLauncherByStep.h:146
virtual ~TLauncherByStep()
Default destructor.
Definition TLauncherByStep.cxx:71
void setClusterName(TString cluster_name)
Sets the Cluster name.
Definition TLauncherByStep.h:154
Int_t _nAllocatedCores
Definition TLauncherByStep.h:184
Description of the class TLauncher.
Definition TLauncher.h:72
Definition TCluster.h:67