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.10.0
/* @license-end */
TLauncherByStep.h
Go to the documentation of this file.
1 // 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 
42 using std::cout;
43 using std::endl;
44 
45 // ROOT
46 #include "Rtypes.h"
47 
48 // Uranie
49 #include "TLauncher.h"
50 #include "Launcher.h"
51 
52 namespace URANIE
53 {
54 namespace Launcher
55 {
57 {
58 
59 public:
60  //---------------------------------------------
64  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  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 
176 private:
188  TString _sProjectName;
192  TString _sClusterName;
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
Definition: TCluster.h:66
void addExtraDirective(const TString &directive)
Add extra directive.
Definition: TLauncherByStep.h:170
TString getProjectName() const
Get the Project Name.
Definition: TLauncherByStep.h:146
Int_t getAllocatedTime() const
Get the Number of second allocated.
Definition: TLauncherByStep.h:130
virtual void run(Option_t *option="")
Evaluate the code in each working subdirectory.
Definition: TLauncherByStep.cxx:151
Int_t _nAllocatedCores
Definition: TLauncherByStep.h:184
virtual void preTreatment(Option_t *option="")
PreTreatment.
Definition: TLauncherByStep.cxx:81
virtual ~TLauncherByStep()
Default destructor.
Definition: TLauncherByStep.cxx:74
void setProjectName(TString project_name)
Sets the project name.
Definition: TLauncherByStep.h:138
Interface of the class URANIE::Launcher::TLauncher.
void setClusterName(TString cluster_name)
Sets the Cluster name.
Definition: TLauncherByStep.h:154
void setAllocatedTime(Int_t nseconds)
Sets the requested time in seconds.
Definition: TLauncherByStep.h:122
Int_t getNumberOfCores() const
Get the Number of cores allocated
Definition: TLauncherByStep.h:114
TLauncherByStep(URANIE::DataServer::TDataServer *tds, TCode *code, Option_t *option="")
Default constructor.
Definition: TLauncherByStep.cxx:64
virtual void postTreatment(Option_t *option="")
PostTreatment.
Definition: TLauncherByStep.cxx:256
virtual void printLog(Option_t *option="")
Print the log of the class.
Definition: TLauncherByStep.cxx:431
void setNumberOfCores(Int_t ncores)
Sets the number of cores requested.
Definition: TLauncherByStep.h:106
vector< TString > _sListExtraDirectives
Definition: TLauncherByStep.h:196
TString _sClusterName
Definition: TLauncherByStep.h:192
Description of the class TLauncher.
Definition: TLauncher.h:73
TString _sProjectName
Definition: TLauncherByStep.h:188
TString getClusterName() const
Get the Cluster Name.
Definition: TLauncherByStep.h:162
Definition: TLauncherByStep.h:56
Int_t _nAllocatedSeconds
Definition: TLauncherByStep.h:180
Description of the class TCode.
Definition: TCode.h:48