34 fSourceRep = fTargetRep = 0;
43 KVDataTransfer::~KVDataTransfer()
94 ::Error(
"KVDataTransfer::NewTransfer",
95 "Unknown source data repository: %s", source_rep);
101 ::Error(
"KVDataTransfer::NewTransfer",
102 "Unknown target data repository: %s", target_rep);
116 if (transfer_exec ==
"") {
117 ::Error(
"KVDataTransfer::NewTransfer",
118 "No file transfer executable to perform transfer");
159 Error(
"KVDataTransfer::Run",
160 "Status not OK. Data transfer aborted.");
215 Error(
"KVDataTransfer::Transfer",
216 "No dataset defined for transfer. Choose dataset first.");
221 Error(
"KVDataTransfer::Transfer",
222 "No data type defined for transfer. Choose type of data to transfer first.");
227 Error(
"KVDataTransfer::Transfer",
228 "No runlist defined for transfer. Choose runs to transfer first.");
308 Error(
"SetDataSet",
"Unknown dataset %s", name);
348 "Dataset %s is not available for analysis", ds->
GetName());
KVDataRepositoryManager * gDataRepositoryManager
Defines macros for standard error messages.
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
R__EXTERN TSystem * gSystem
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)
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
virtual const char * GetName() const
virtual const char * GetName() const
virtual void Error(const char *method, const char *msgfmt,...) const
Longptr_t ExecPlugin(int nargs, const T &... params)
const char * Data() const
virtual int Unlink(const char *name)
void update(const LAYERDATA &prevLayerData, LAYERDATA &currLayerData, double factorWeightDecay, EnumRegularization regularization)