KaliVeda
Toolkit for HIC analysis
KVDataTransferDMS.cpp
1 #include "KVDataTransferDMS.h"
2 #include "KVDataSetManager.h"
3 
5 
6 
7 
10 void KVDataTransferDMS::ExecuteCommand()
11 {
12  // loop over runs
13  for (auto& irun : GetRunList()) {
14 
15  // name of file to transfer
16  TString file_name = GetDataSet()->GetRunfileName(GetDataType(), irun);
17 
18  // full path to destination in target repository
19  KVDataSet* targ_ds = fTargetRep->GetDataSetManager()->GetDataSet(GetDataSet()->GetName());
20  TString dest_full = fTargetRep->GetFullPathToTransferFile(targ_ds, GetDataType(), file_name);
21 
22  // copy file
23  fSourceRep->CopyFileFromRepository(GetDataSet(), GetDataType(), file_name, dest_full);
24  }
25 }
26 
27 
28 
29 
30 
Manage an experimental dataset corresponding to a given experiment or campaign.
Definition: KVDataSet.h:36
Transfer data from/to a DMS data repository.
tuple file_name
BinData::ErrorType GetDataType(const TGraph *gr, DataOptions &fitOpt)
ClassImp(TPyArg)