Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Jobs.h
1/*
2 * HalJobs.h
3 *
4 * Created on: 30-04-2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HAL_FEATURES_HALJOBS_H_
10#define HAL_FEATURES_HALJOBS_H_
11
12#include <TObject.h>
13#include <TString.h>
14#include <vector>
15
39namespace Hal {
40 class Jobs : public TObject {
41 Bool_t fArray;
42 Bool_t fDebugCommands;
43 TString fDir;
44 TString fFile;
45 TString fSubmitCommand;
46 Int_t fStartJob, fEndJob;
47 std::vector<TString> fCommands;
48 std::vector<std::pair<TString, TString>> fParameters;
49 static Int_t GetNVariablesTxt(TString textfile);
50 static Int_t GetNVariablesXML(TString xmlfile);
51 static TString GetParameterTxt(TString textfile, Int_t job, Int_t var);
52 static TString GetParameterXml(TString xmlfile, Int_t job, Int_t var);
53
54 public:
55 Jobs(TString name);
56 void DebugCommands() { fDebugCommands = kTRUE; }
57 void CreateJobs();
58 void SubmitJobs();
66 static void CreateDummyTxtFile(TString textfile, Int_t jobs, Int_t vars);
74 static void CreateDummyXMLFile(TString xmlfile, Int_t jobs, Int_t vars);
80 static Int_t GetNVariables(TString textfile);
88 static TString GetParameter(TString textfile, Int_t job_no, Int_t var_no);
89 virtual ~Jobs();
90 ClassDef(Jobs, 1)
91 };
92} // namespace Hal
93
94#endif /* HAL_FEATURES_HALJOBS_H_ */
static void CreateDummyTxtFile(TString textfile, Int_t jobs, Int_t vars)
Definition Jobs.cxx:138
static TString GetParameter(TString textfile, Int_t job_no, Int_t var_no)
Definition Jobs.cxx:133
static Int_t GetNVariables(TString textfile)
Definition Jobs.cxx:128
static void CreateDummyXMLFile(TString xmlfile, Int_t jobs, Int_t vars)
Definition Jobs.cxx:218