133 import FWCore.ParameterSet.Config
as cms
136 print "the query is",query
139 while eC!=0
and count<3:
141 print 'Sleeping, then retrying DAS' 143 p = Popen(
'dasgoclient %s --query "%s"'%(option,query), stdout=PIPE,shell=
True)
145 tupleP = os.waitpid(p.pid, 0)
149 print "DAS succeeded after",count,
"attempts",eC
151 print "DAS failed 3 times- I give up" 152 for line
in pipe.split(
'\n'):
153 if line.count(
".root")>=2:
155 entries=line.replace(
"\n",
"").
split()
156 prim.append(entries[0])
157 sec.append(entries[1])
158 elif (line.find(
".root")!=-1):
159 entry=line.replace(
"\n",
"")
162 prim = sorted(
list(set(prim)))
163 sec = sorted(
list(set(sec)))
165 if not hasattr(s,
"fileNames"):
166 s.fileNames=cms.untracked.vstring(prim)
168 s.fileNames.extend(prim)
170 if not hasattr(s,
"secondaryFileNames"):
171 s.secondaryFileNames=cms.untracked.vstring(sec)
173 s.secondaryFileNames.extend(sec)
174 print "found files: ",prim
176 print "found parent files:",sec
def filesFromDASQuery(query, option="", s=None)
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