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  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
Manage an experimental dataset corresponding to a given experiment or campaign.
Definition: KVDataSet.h:35
Transfer data from/to a DMS data repository.
tuple file_name
BinData::ErrorType GetDataType(const TGraph *gr, DataOptions &fitOpt)
void End()
ClassImp(TPyArg)