1 #include "KVDataSetAnalyser.h"
2 #include "KVXtermBatch.h"
24 std::vector<int> runs_per_job(max_num_cpus);
27 for (
auto&
r : runs) {
28 ++runs_per_job[job_index++];
29 if (job_index == max_num_cpus) job_index = 0;
32 fCurrJobRunList.Clear();
34 bool submitted =
false;
35 for (
auto& run : runs) {
36 if (!remaining_runs)
break;
38 fCurrJobRunList.Add(run);
40 if (fCurrJobRunList.GetNValues() == runs_per_job[job_index]) {
44 std::cout <<
"Submitting job " << job_index + 1 <<
" for runs:" << fCurrJobRunList.AsString() << std::endl;
46 fCurrJobRunList.Clear();
51 if (!submitted && !fCurrJobRunList.IsEmpty()) {
55 std::cout <<
"Submitting job " << job_index + 1 <<
" for runs:" << fCurrJobRunList.AsString() << std::endl;
57 fCurrJobRunList.Clear();
80 nl.SetValue(
"MaxNumCPUs", max_num_cpus);
virtual void SetBatchSystemParameters(const KVNameValueList &)
Use the parameters in the list to set all relevant parameters for batch system.
virtual void GetBatchSystemParameterList(KVNameValueList &)
virtual Bool_t CheckJobParameters()
Checks the job and ask for the job name if needed.
Pilots user analysis of experimental data.
void SetRuns(const run_index_list &nl, Bool_t check=kTRUE)
const run_index_list & GetRunList() const
void SetFullRunList(const run_index_list &nl)
Handles lists of named parameters with different types, a list of KVNamedParameter objects.
Int_t GetIntValue(const Char_t *name) const
Run analysis in multiple xterm windows.
void SetBatchSystemParameters(const KVNameValueList &nl) override