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 9 of file mergeJSON.py.

References createfilelist.int.

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