KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVDataTransferDMS.cpp
Go to the documentation of this file.
1 #include "KVDataTransferDMS.h"
2 #include "KVDataSetManager.h"
3 
5 
6 
7 
10 void KVDataTransferDMS::ExecuteCommand()
11 {
12  // loop over runs
13  GetRunList().Begin();
14  while (!GetRunList().End()) {
15 
16  Int_t irun = GetRunList().Next();
17 
18  // name of file to transfer
19  TString file_name = GetDataSet()->GetRunfileName(GetDataType(), irun);
20 
21  // full path to destination in target repository
22  KVDataSet* targ_ds = fTargetRep->GetDataSetManager()->GetDataSet(GetDataSet()->GetName());
23  TString dest_full = fTargetRep->GetFullPathToTransferFile(targ_ds, GetDataType(), file_name);
24 
25  // copy file
26  fSourceRep->CopyFileFromRepository(GetDataSet(), GetDataType(), file_name, dest_full);
27  }
28 }
29 
30 
31 
32 
33 
int Int_t
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
Manage an experimental dataset corresponding to a given experiment or campaign.
Definition: KVDataSet.h:207
Transfer data from/to a DMS data repository.
BinData::ErrorType GetDataType(const TGraph *gr, DataOptions &fitOpt)
void End()