KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KV_CCIN2P3_GE.h
1
3
4#ifndef __KV_CCIN2P3_GE_H
5#define __KV_CCIN2P3_GE_H
6
7#include <KVBatchSystem.h>
8
16
17protected:
18
27
28 virtual void ChangeDefJobOpt(KVDataAnalyser*);
29
30public:
31
32 KV_CCIN2P3_GE(const Char_t* name);
33 virtual ~ KV_CCIN2P3_GE();
34
35 void SetJobTime(const Char_t* h = ""); /* Set CPU time for batch job */
36 void SetJobMemory(const Char_t* h = ""); /* Set max memory for batch job */
37 void SetJobDisk(const Char_t* h = ""); /* Set max disk space for batch job */
38 void PrintJobs(Option_t* opt = ""); /* Print list of all jobs submitted to system */
39
40 virtual Bool_t CheckJobParameters(); /* Checks job parameters */
41 void SetMultiJobsMode(Bool_t on = kTRUE)
42 {
43 fMultiJobs = on;
44 }
46 {
47 return fMultiJobs;
48 }
49
51 {
53 fRunsPerJob = n;
54 }
56 {
58 return fRunsPerJob;
59 }
60
61 const Char_t* GetJobTime(void) const; /* Get CPU time for batch job */
62 const Char_t* GetJobMemory(void) const; /* Get max memory for batch job */
63 const Char_t* GetJobDisk(void) const; /* Get max disk space for batch job */
64
65 void ChooseJobTime(void); /* Choose CPU time for batch job */
66 void ChooseJobMemory(void); /* Choose max memory for batch job */
67 void ChooseJobDisk(void); /* Choose max disk space for batch job */
68
69 virtual void Clear(Option_t* opt = "");
70
71 virtual void WriteBatchEnvFile(TEnv*);
72 virtual void ReadBatchEnvFile(TEnv*);
73 virtual void Print(Option_t* /*option*/ = "") const;
74
75 virtual void SanitizeJobName() const;
76
77 virtual KVList* GetListOfJobs();
78
81 void SetSendMailAddress(const char*);
82
83 void Run();
85 virtual void SetBatchSystemParameters(const KVNameValueList&);
86
87 ClassDef(KV_CCIN2P3_GE, 1) //Interface to CCIN2P3-GE batch job management system
88};
89
90#endif
int Int_t
bool Bool_t
char Char_t
const char Option_t
#define ClassDef(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Base class for interface to a batch job management system.
Manager class which sets up and runs data analysis tasks.
Extended TList class which owns its objects by default.
Definition KVList.h:28
Handles lists of named parameters with different types, a list of KVNamedParameter objects.
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition KVString.h:73
Interface to CCIN2P3 Grid Engine batch job management system.
virtual KVList * GetListOfJobs()
Bool_t fMultiJobs
set to kTRUE if several jobs are to be submitted for the runlist set in fAnalyser
virtual void GetBatchSystemParameterList(KVNameValueList &)
void SetSendMailOnJobEnd()
add option to send mail when job ends
Bool_t MultiJobsMode() const
const Char_t * GetJobTime(void) const
returns the parameter string corresponding to the job CPU time
Int_t fRunsPerJob
number of runs per job submitted in multi job mode (default=1)
void PrintJobs(Option_t *opt="")
Print list of owner's jobs.
void SetJobMemory(const Char_t *h="")
void ChooseJobDisk(void)
KVString fDefJobTime
default job length
void SetJobDisk(const Char_t *h="")
virtual void WriteBatchEnvFile(TEnv *)
virtual void SanitizeJobName() const
virtual void Print(Option_t *="") const
KVString fDefJobDisk
default job disk space (with units, e.g. "1G")
KVString fDefJobMem
default job memory allocation (with units, e.g. "512M")
virtual Bool_t CheckJobParameters()
Checks the job and asks for any missing parameters.
void SetSendMailAddress(const char *)
set email address for notifications
const Char_t * GetJobDisk(void) const
returns the parameter string corresponding to the job Disk
virtual void Clear(Option_t *opt="")
Clear previously set parameters in order to create a new job submission command.
void ChooseJobMemory(void)
void ChooseJobTime(void)
void SetJobTime(const Char_t *h="")
Int_t GetRunsPerJob() const
const Char_t * GetJobMemory(void) const
returns the parameter string corresponding to the job Memory
virtual void ChangeDefJobOpt(KVDataAnalyser *)
void SetRunsPerJob(Int_t n)
void SetSendMailOnJobStart()
add option to send mail when job starts
virtual void SetBatchSystemParameters(const KVNameValueList &)
Use the parameters in the list to set all relevant parameters for batch system.
virtual void ReadBatchEnvFile(TEnv *)
void SetMultiJobsMode(Bool_t on=kTRUE)
const Int_t n