BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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"
4
using namespace
std
;
5
#endif
6
7
void
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
11
FileCatalogue
FC;
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
}
FileCatalogue
Main Interface Class to work with the File Catalog of the experiment Throws runtime_exception if a cr...
Definition
FileCatalogue.h:135
FileCatalogue::GetFile
int GetFile(string LFN, string save_path)
Function to download file from the CICC (Dirac FC).
Definition
FileCatalogue.cxx:353
TString
get_file
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
std
Definition
json.hpp:4446
install
database
file_db
examples
get_file.C
Generated on
for BmnRoot by
1.17.0