10 #include "KVDataTransfer.h" 
   11 #include "KVDataSet.h" 
   12 #include "KVDataRepositoryManager.h" 
   13 #include "KVDataSetManager.h" 
   33    fSourceRep = fTargetRep = 0;
 
   42 KVDataTransfer::~KVDataTransfer()
 
   96    if (!gDataRepositoryManager) {
 
  103       ::Error(
"KVDataTransfer::NewTransfer",
 
  104               "Unknown source data repository: %s", source_rep);
 
  110       ::Error(
"KVDataTransfer::NewTransfer",
 
  111               "Unknown target data repository: %s", target_rep);
 
  128    if (transfer_exec == 
"") {
 
  129       ::Error(
"KVDataTransfer::NewTransfer",
 
  130               "No file transfer executable to perform transfer");
 
  171       Error(
"KVDataTransfer::Run",
 
  172             "Status not OK. Data transfer aborted.");
 
  227       Error(
"KVDataTransfer::Transfer",
 
  228             "No dataset defined for transfer. Choose dataset first.");
 
  233       Error(
"KVDataTransfer::Transfer",
 
  234             "No data type defined for transfer. Choose type of data to transfer first.");
 
  239       Error(
"KVDataTransfer::Transfer",
 
  240             "No runlist defined for transfer. Choose runs to transfer first.");
 
  320       Error(
"SetDataSet", 
"Unknown dataset %s", 
name);
 
  360             "Dataset %s is not available for analysis", ds->
GetName());
 
R__EXTERN TSystem * gSystem
 
virtual Bool_t IsType(const Char_t *typ) const
 
static TPluginHandler * LoadPlugin(const Char_t *base, const Char_t *uri="0")
 
const KVString & GetDataType() const
 
void SetSubmit(Bool_t yes=kTRUE)
 
void SetQuit(Bool_t yes=kTRUE)
 
void SetDataType(const Char_t *name)
 
void SetMenus(Bool_t on=kTRUE)
 
Manages access to one or more data repositories.
 
KVDataRepository * GetRepository(const Char_t *name) const
 
Base class for managing repositories of experimental data.
 
virtual KVDataSetManager * GetDataSetManager() const
Return pointer to data set manager for this repository.
 
virtual const Char_t * GetFileTransferExec() const
returns full path to executable used for remote file transfer
 
virtual const Char_t * GetFileTransferType() const
returns protocol used for remote file transfer
 
virtual void MakeSubdirectory(const KVDataSet *dataset, const Char_t *datatype="")
 
Bool_t IsChooseTask() const
 
Bool_t IsChooseRuns() const
 
void SetDataSet(KVDataSet *ds)
 
void ChooseRuns(KVDBSystem *system=nullptr, const Char_t *data_type="")
 
void ChooseSystem(const Char_t *data_type="")
 
void SetChooseSystem(Bool_t yes=kTRUE)
 
const KVDataSet * GetDataSet() const
 
void SetChooseRuns(Bool_t yes=kTRUE)
 
void SetSystem(KVDBSystem *syst)
Set the System used in the analysis.
 
Bool_t IsChooseDataSet() const
 
const KVNumberList & GetRunList() const
 
Bool_t IsChooseSystem() const
 
void SetChooseDataSet(Bool_t yes=kTRUE)
 
void SetChooseTask(Bool_t yes=kTRUE)
 
void _set_dataset_pointer(KVDataSet *ds)
 
KVDataSet * GetDataSet(Int_t) const
Return pointer to DataSet using index in list of all datasets, index>=0.
 
Manage an experimental dataset corresponding to a given experiment or campaign.
 
KVDataRepository * GetRepository() const
Get pointer to data repository in which dataset is stored.
 
void UpdateAvailableRuns(const Char_t *type)
 
virtual Bool_t IsAvailable() const
Returns kTRUE if this dataset is available for analysis, i.e. if any associated data files are stored...
 
Base class for transferring data between data repositories.
 
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
 
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 void SetTransferExec(const Char_t *path)
 
static KVDataTransfer * NewTransfer(const Char_t *source_rep, const Char_t *target_rep)
 
virtual void WriteTransferScript()=0
 
TString fCmdFile
name of command file given to transfer agent
 
KVDataRepository * fSourceRep
repository containing source files
 
const char * GetName() const override
 
virtual const char * GetName() const
 
virtual void Error(const char *method, const char *msgfmt,...) const
 
Longptr_t ExecPlugin(int nargs)
 
const char * Data() const
 
virtual int Unlink(const char *name)
 
void update(const LAYERDATA &prevLayerData, LAYERDATA &currLayerData, double factorWeightDecay, EnumRegularization regularization)