CMS 3D CMS Logo

Functions
mergeJSON Namespace Reference

Functions

def filterRuns (lumiList, minRun, maxRun)
 

Function Documentation

def mergeJSON.filterRuns (   lumiList,
  minRun,
  maxRun 
)

Definition at line 10 of file mergeJSON.py.

References createfilelist.int, and edm.print().

10 def filterRuns (lumiList, minRun, maxRun):
11  allRuns = lumiList.getRuns()
12  runsToRemove = []
13  for run in allRuns:
14  if minRun and int(run) < minRun:
15  runsToRemove.append (run)
16  if maxRun and int(run) > maxRun:
17  runsToRemove.append (run)
18  lumiList.removeRuns (runsToRemove)
19 
20 
21 
def filterRuns(lumiList, minRun, maxRun)
Definition: mergeJSON.py:10