5 from __future__
import print_function
18 for line
in subprocess.Popen(
"conddb --noLimit --db EcalPedestals_timestamp.db list EcalPedestals_timestamp",shell=
True,stdout=subprocess.PIPE,stderr=subprocess.STDOUT).stdout.readlines():
19 if "EcalCondObjectContainer" in line:
21 IOVs.append((line.split()[2].
strip(
')')).
strip(
'('))
23 print(
"There are %s IOVs!"%len(IOVs))
32 RelevantIOVs=[(IOV,IOVs[IOVs.index(IOV)+49],IOVs[IOVs.index(IOV)+50])
for IOV
in IOVs
if IOVs.index(IOV)==0
or ((IOVs.index(IOV))%50==0
and (IOVs.index(IOV)+50)<len(IOVs))]
34 RelevantIOVs.append((RelevantIOVs[-1][2],IOVs[-1],IOVs[-1]))
37 for i,splitIOVs
in enumerate(RelevantIOVs):
40 upperLimit=splitIOVs[1]
41 print(i,begin,end,upperLimit)
43 command =
"conddb_import -f sqlite:EcalPedestals_timestamp.db -c sqlite:EcalPedestals_timestamp_"+
str(begin)+
"_"+
str(end)+
".db -i EcalPedestals_timestamp -t EcalPedestals_timestamp -b "+
str(begin)+
" -e "+
str(end)
47 STDOUT=subprocess.Popen(command,shell=
True,stdout=subprocess.PIPE,stderr=subprocess.STDOUT).stdout.read()
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)