3 import os,time,sys,shutil,stat,glob
7 exedir =
'/home/dqmprolocal/filecopy'
8 DIR =
'/home/dqmprolocal/output'
9 TMPDIR =
'/data/dqm/.dropbox_tmp'
10 FILEDIR =
'/data/dqm/dropbox'
11 TimeTag =
'/home/dqmprolocal/output/timetag'
12 server =
'srv-c2d05-19'
16 cmd = exedir +
'/filechk.sh ' + rootfile
20 if tag ==
'(int)(-1)':
45 os.popen(
'scp '+org+
' '+server+
':'+tmp).
read()
46 os.popen(
'ssh '+server+
' -t mv '+tmp+
' '+final).
read()
47 a=os.popen(
'ssh '+server+
' -t ls '+final).
read().
split()
50 print 'File transfer failed. try again 2 min later ...'
52 os.popen(
'scp '+org+
' '+server+
':'+tmp).
read()
53 os.popen(
'ssh '+server+
' -t mv '+tmp+
' '+final).
read()
54 a=os.popen(
'ssh '+server+
' -t ls '+final).
read().
split()
58 cmd = exedir +
'/convert.sh ' + infile +
' ' +ofile
65 TempTag = TimeTag +
'-tmp'
66 if not os.path.exists(TimeTag):
67 os.system(
'touch -t 01010000 '+ TimeTag)
75 NEW_ = os.popen(
'find '+ DIR +
'/ -type f -name "tagfile_runend_?????_*" -newer '+ TimeTag).
read().
split()
78 print 'waiting for new files...'
82 os.system(
'touch '+ TempTag)
90 i = tagfile.find(
'/tagfile_runend_')
91 run = tagfile[i+16:i+21]
92 pairs.append((run,tagfile))
105 subfiles = glob.glob(DIR +
'/DQM_*_R????' + run +
'_T*.root')
106 playbacks = glob.glob(DIR +
'/Playback*SiStrip_R????' + run +
'_T*.root')
107 subfiles = subfiles + playbacks
111 for fname
in subfiles:
112 i = fname.rfind(
'_R')
118 for fhead
in UniqHeads:
119 fname = fhead +
'_R0000'+run+
'.root'
120 fname_Ts = os.popen(
'ls -rt '+fhead+
'_R????'+run+
'_T*.root').
read().
split()
121 if os.path.exists(fname): fname_Ts.append(fname)
123 numbers = range(len(fname_Ts))
126 fname_T = fname_Ts[i]
128 print fname_T +
' is incomplete'
130 print fname_T +
' is OK'
132 if fname_T.rfind(
'Playback') != -1:
133 dqmfile = fname_T.replace(
'Playback',
'DQM')
137 fname = fname.replace(
'Playback',
'DQM')
139 tmpfile = fname.replace(fname[:fname.find(
'/DQM_')],TMPDIR)
140 file = fname.replace(fname[:fname.find(
'/DQM_')],FILEDIR)
142 if not fname_T == fname:
143 os.rename(fname_T,fname)
145 if not (j==i
or j==(i-1)): os.remove(fname_Ts[j])
148 shutil.copy2(TempTag,TimeTag)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run