KaliVeda
Toolkit for HIC analysis
KVDataAnalysisTask.h
1 /*
2 $Id: KVDataAnalysisTask.h,v 1.7 2009/01/14 16:01:38 franklan Exp $
3 $Revision: 1.7 $
4 $Date: 2009/01/14 16:01:38 $
5 $Author: franklan $
6 */
7 
8 #ifndef __KVDATAANALYSISTASK_H
9 #define __KVDATAANALYSISTASK_H
10 
11 #include "KVBase.h"
12 #include "KVList.h"
13 #include "KVString.h"
14 
83 class KVDataAnalysisTask: public KVBase {
84 
89 
95 
96 public:
97 
100  ROOT_COPY_ASSIGN_OP(KVDataAnalysisTask)
101  virtual ~ KVDataAnalysisTask();
102 
103 #if ROOT_VERSION_CODE >= ROOT_VERSION(3,4,0)
104  virtual void Copy(TObject&) const;
105 #else
106  virtual void Copy(TObject&);
107 #endif
108  virtual void SetPrereq(const Char_t* p)
109  {
110  fPrereq = p;
111  };
112  virtual const Char_t* GetPrereq() const
113  {
114  return fPrereq.Data();
115  };
116 
117  virtual void ls(Option_t* opt = "") const;
118  virtual void Print(Option_t* opt = "") const
119  {
120  ls(opt);
121  };
122 
123  virtual void SetDataAnalyser(const Char_t* d)
124  {
125  fAnalyser = d;
126  };
127  virtual const Char_t* GetDataAnalyser() const
128  {
129  return fAnalyser;
130  };
131  virtual void SetUserBaseClass(const Char_t* d);
132  virtual const Char_t* GetUserBaseClass() const
133  {
134  return fBaseClass;
135  };
136  virtual void SetWithUserClass(Bool_t w = kTRUE)
137  {
138  fUserClass = w;
139  };
140  virtual Bool_t WithUserClass() const
141  {
142  return fUserClass;
143  };
145  {
147  }
149  {
150  return fStatusUpdateInterval;
151  }
152 
154  void SetExtraAClicIncludes(const KVString& list)
155  {
156  fExtraAClicIncludes = list;
157  }
158 
159  ClassDef(KVDataAnalysisTask, 0) //A data analysis task
160 };
161 
162 #endif
#define d(i)
bool Bool_t
char Char_t
const char Option_t
#define ClassDef(name, id)
winID w
winID h TVirtualViewer3D TVirtualGLPainter p
Base class for KaliVeda framework.
Definition: KVBase.h:142
Define and manage data analysis tasks.
Bool_t fBaseIsPlugin
true if base class for user analysis is in a plugin library
KVString fPluginBase
known base class extended by plugin library
KVString fPluginURI
uri of the plugin library containing user base class
KVString fExtraAClicIncludes
to be added to AClic include paths before compilation
virtual Bool_t CheckUserBaseClassIsLoaded()
virtual void SetDataAnalyser(const Char_t *d)
KVString fBaseClass
base class for user analysis
KVString fPrereq
prerequisite data directory i.e. data on which analysis task is performed
virtual void Copy(TObject &) const
virtual void Print(Option_t *opt="") const
virtual Bool_t WithUserClass() const
KVString fAnalyser
name of KVDataAnalyser class used to perform analysis
KVDataAnalysisTask()
Default ctor.
virtual void SetPrereq(const Char_t *p)
virtual void SetStatusUpdateInterval(Long64_t n)
virtual const Char_t * GetDataAnalyser() const
virtual const Char_t * GetUserBaseClass() const
virtual Long64_t GetStatusUpdateInterval() const
void SetExtraAClicIncludes(const KVString &list)
virtual const Char_t * GetPrereq() const
virtual void ls(Option_t *opt="") const
Print analysis task information.
Bool_t fUserClass
true if analysis task requires user-supplied class (derived from fBaseClass)
Long64_t fStatusUpdateInterval
interval (number of events) after which batch job progress and status are updated
virtual void SetUserBaseClass(const Char_t *d)
virtual void SetWithUserClass(Bool_t w=kTRUE)
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:73
const char * Data() const
long long Long64_t
const Int_t n