BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
get_file.C
Go to the documentation of this file.
1// macro for downloading file by its LFN
2#ifndef __CLING__
3#include "../FileCatalogue.h"
4using namespace std;
5#endif
6
7void get_file(TString lfn = "/bmn.nica.jinr/user/i/isjiron/newone.data",
8 TString outPath = "/eos/nica/bmn/users/$USER/fileFromFC.data")
9{
10 // create File Catalogue interface
12
13 // call GetFileLocal function to get file by the given LFN
14 int res = FC.GetFile(lfn.Data(), outPath.Data());
15 if (res == 0)
16 cout << "File ' " << lfn << "' downloaded" << endl;
17 else
18 cout << "Downloading failed for file: " << lfn << endl;
19}
Main Interface Class to work with the File Catalog of the experiment Throws runtime_exception if a cr...
int GetFile(string LFN, string save_path)
Function to download file from the CICC (Dirac FC).
void get_file(TString lfn="/bmn.nica.jinr/user/i/isjiron/newone.data", TString outPath="/eos/nica/bmn/users/$USER/fileFromFC.data")
Definition get_file.C:7
Definition json.hpp:4446