ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DataQuality
DataQualityUtils
python
filemovemod.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2
3
def
move_files
(prefix, config):
4
import
os, shutil, subprocess
5
6
filemap = config.filemap
7
if
filemap == {}:
8
return
9
for
src, dest
in
filemap.items():
10
print
(src, dest)
11
if
os.access(src, os.R_OK):
12
if
dest.startswith(
'root://'
):
13
try
:
14
subprocess.check_call([
'xrdcp'
, src, os.path.join(dest, prefix +
'_'
+ os.path.basename(src))])
15
except
subprocess.CalledProcessError
as
e:
16
print
(e)
17
else
:
18
try
:
19
shutil.copy2(src, os.path.join(dest, prefix +
'_'
+ os.path.basename(src)))
20
except
IOError
as
e:
21
print
(e)
22
print
void print(char *figname, TCanvas *c1)
Definition
TRTCalib_StrawStatusPlots.cxx:26
python.filemovemod.move_files
move_files(prefix, config)
Definition
filemovemod.py:3
Generated on
for ATLAS Offline Software by
1.17.0