KaliVeda
Toolkit for HIC analysis
KVDataTransfer.h
1 /*
2 $Id: KVDataTransfer.h,v 1.5 2007/01/04 16:38:50 franklan Exp $
3 $Revision: 1.5 $
4 $Date: 2007/01/04 16:38:50 $
5 */
6 
9 
10 #ifndef __KVDATATRANSFER_H
11 #define __KVDATATRANSFER_H
12 
13 #include "KVDataSetAnalyser.h"
14 #include "TString.h"
15 #include "KVDataRepository.h"
16 
52 protected:
57 
58  virtual void SetTransferExec(const Char_t* path)
59  {
60  fTransferExec = path;
61  }
62  virtual void ChooseAnalysisTask()
63  {
64  }
65  virtual void SubmitTask()
66  {
67  }
68 
69  virtual void ExecuteCommand() = 0;
70  virtual void WriteTransferScript() = 0;
71 
72  virtual void CheckTargetRepository();
73 
74  virtual void init();
76  virtual void set_dataset_pointer(KVDataSet* ds);
77  virtual void set_dataset_name(const Char_t* name);
78 
79 public:
80 
82  virtual ~ KVDataTransfer();
83  virtual void Run();
84  virtual void TransferRuns();
85 
86  static KVDataTransfer* NewTransfer(const Char_t* source_rep,
87  const Char_t* target_rep);
88 
89  ClassDef(KVDataTransfer, 0) //Transfers data between data repositories
90 };
91 
92 #endif
bool Bool_t
char Char_t
#define ClassDef(name, id)
Base class for managing repositories of experimental data.
Pilots user analysis of experimental data.
Manage an experimental dataset corresponding to a given experiment or campaign.
Definition: KVDataSet.h:35
Base class for transferring data between data repositories.
virtual void Run()
virtual void init()
Initialisation of data transfer.
virtual void set_dataset_name(const Char_t *name)
virtual void CheckTargetRepository()
virtual void set_dataset_pointer(KVDataSet *ds)
virtual void TransferRuns()
virtual void ExecuteCommand()=0
virtual void ChooseAnalysisTask()
Bool_t fOK
may be set to kFALSE by init(), in which case Run() will abort
KVDataRepository * fTargetRep
repository where files will be copied
virtual ~ KVDataTransfer()
virtual void SetTransferExec(const Char_t *path)
virtual void SubmitTask()
static KVDataTransfer * NewTransfer(const Char_t *source_rep, const Char_t *target_rep)
TString fTransferExec
full path to transfer client executable
virtual void WriteTransferScript()=0
TString fCmdFile
name of command file given to transfer agent
KVDataRepository * fSourceRep
repository containing source files