CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
mergeJSON Namespace Reference

Functions

def filterRuns
 

Variables

tuple filename = match.group(1)
 
tuple finalList = LumiList()
 
string help = 'Save output to file OUTPUT'
 
tuple localList = LumiList(filename = filename)
 
tuple match = minMaxRE.search(filename)
 
tuple maxRun = int( match.group(3) )
 
tuple minMaxRE = re.compile(r'(\S+):(\d+)-(\d*)')
 
int minRun = 0
 
tuple parser = optparse.OptionParser("Usage: %prog alpha1.json [alpha2.json:142300-145900]")
 

Function Documentation

def mergeJSON.filterRuns (   lumiList,
  minRun,
  maxRun 
)

Definition at line 10 of file mergeJSON.py.

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

Variable Documentation

tuple mergeJSON.filename = match.group(1)

Definition at line 39 of file mergeJSON.py.

mergeJSON.finalList = LumiList()

Definition at line 34 of file mergeJSON.py.

string mergeJSON.help = 'Save output to file OUTPUT'

Definition at line 26 of file mergeJSON.py.

tuple mergeJSON.localList = LumiList(filename = filename)

Definition at line 47 of file mergeJSON.py.

tuple mergeJSON.match = minMaxRE.search(filename)

Definition at line 37 of file mergeJSON.py.

tuple mergeJSON.maxRun = int( match.group(3) )

Definition at line 42 of file mergeJSON.py.

tuple mergeJSON.minMaxRE = re.compile(r'(\S+):(\d+)-(\d*)')

Definition at line 32 of file mergeJSON.py.

tuple mergeJSON.minRun = 0

Definition at line 36 of file mergeJSON.py.

tuple mergeJSON.parser = optparse.OptionParser("Usage: %prog alpha1.json [alpha2.json:142300-145900]")

Definition at line 24 of file mergeJSON.py.