Public Member Functions | |
def | __add__ |
def | __and__ |
def | __contains__ |
def | __init__ |
def | __len__ |
def | __or__ |
def | __str__ |
def | __sub__ |
def | contains |
def | filterLumis |
def | getCMSSWString |
def | getCompactList |
def | getLumis |
def | getRuns |
def | getVLuminosityBlockRange |
def | removeRuns |
def | writeJSON |
Public Attributes | |
compactList | |
filename | |
Private Member Functions | |
def | _getLumiParts |
Deal with lists of lumis in several different forms: Compact list: { '1': [[1, 33], [35, 35], [37, 47], [49, 75], [77, 130], [133, 136]], '2':[[1,45],[50,80]] } where the first key is the run number, subsequent pairs are ranges of lumis within that run that are desired Runs and lumis: { '1': [1,2,3,4,6,7,8,9,10], '2': [1,4,5,20] } where the first key is the run number and the list is a list of individual lumi sections Run lumi pairs: [[1,1], [1,2],[1,4], [2,1], [2,5], [1,10]] where each pair in the list is an individual run&lumi CMSSW representation: '1:1-1:33,1:35,1:37-1:47,2:1-2:45,2:50-2:80' The string used by CMSSW in lumisToProcess or lumisToSkip is a subset of the compactList example above
Definition at line 18 of file LumiList.py.
def LumiList.LumiList.__init__ | ( | self, | |
filename = None , |
|||
lumis = None , |
|||
runsAndLumis = None , |
|||
runs = None , |
|||
compactList = None |
|||
) |
Constructor takes filename (JSON), a list of run/lumi pairs, or a dict with run #'s as the keys and a list of lumis as the values, or just a list of runs
Definition at line 45 of file LumiList.py.
def LumiList.LumiList.__add__ | ( | self, | |
other | |||
) |
Definition at line 167 of file LumiList.py.
def LumiList.LumiList.__and__ | ( | self, | |
other | |||
) |
Definition at line 119 of file LumiList.py.
References LumiList.LumiList.compactList.
def LumiList.LumiList.__contains__ | ( | self, | |
runTuple | |||
) |
Definition at line 325 of file LumiList.py.
References edm::Association< C >.contains(), edm::helper::IndexRangeAssociation.contains(), FWGeometry.contains(), edm::ValueMap< T >.contains(), edm::MultiAssociation< C >.contains(), and LumiList.LumiList.contains().
def LumiList.LumiList.__len__ | ( | self | ) |
Returns number of runs in list
Definition at line 171 of file LumiList.py.
References LumiList.LumiList.compactList.
def LumiList.LumiList.__or__ | ( | self, | |
other | |||
) |
def LumiList.LumiList.__str__ | ( | self | ) |
def LumiList.LumiList.__sub__ | ( | self, | |
other | |||
) |
Definition at line 91 of file LumiList.py.
References LumiList.LumiList.compactList.
|
private |
Turn compactList into a list of the format [ 'R1:L1', 'R2:L2-R2:L3' ] which is used by getCMSSWString and getVLuminosityBlockRange
Definition at line 227 of file LumiList.py.
References LumiList.LumiList.compactList.
Referenced by LumiList.LumiList.getCMSSWString(), and LumiList.LumiList.getVLuminosityBlockRange().
def LumiList.LumiList.contains | ( | self, | |
run, | |||
lumiSection = None |
|||
) |
returns true if the run, lumi section passed in is contained in this lumiList. Input can be either: - a single tuple of (run, lumi), - separate run and lumi numbers - a single run number (returns true if any lumi sections exist)
Definition at line 290 of file LumiList.py.
Referenced by LumiList.LumiList.__contains__().
def LumiList.LumiList.filterLumis | ( | self, | |
lumiList | |||
) |
Return a list of lumis that are in compactList. lumilist is of the simple form [(run1,lumi1),(run1,lumi2),(run2,lumi1)]
Definition at line 175 of file LumiList.py.
def LumiList.LumiList.getCMSSWString | ( | self | ) |
Turn compactList into a list of the format R1:L1,R2:L2-R2:L3 which is acceptable to CMSSW LumiBlockRange variable
Definition at line 247 of file LumiList.py.
References LumiList.LumiList._getLumiParts(), and join().
def LumiList.LumiList.getCompactList | ( | self | ) |
Return the compact list representation
Definition at line 197 of file LumiList.py.
References LumiList.LumiList.compactList.
def LumiList.LumiList.getLumis | ( | self | ) |
Return the list of pairs representation
Definition at line 204 of file LumiList.py.
References LumiList.LumiList.compactList.
def LumiList.LumiList.getRuns | ( | self | ) |
Turn compactList into an (optionally tracked) VLuminosityBlockRange
Definition at line 258 of file LumiList.py.
References LumiList.LumiList._getLumiParts().
def LumiList.LumiList.removeRuns | ( | self, | |
runList | |||
) |
removes runs from runList from collection
Definition at line 280 of file LumiList.py.
References LumiList.LumiList.compactList.
def LumiList.LumiList.writeJSON | ( | self, | |
fileName | |||
) |
LumiList.LumiList.compactList |
Definition at line 50 of file LumiList.py.
Referenced by LumiList.LumiList.__and__(), LumiList.LumiList.__len__(), LumiList.LumiList.__str__(), LumiList.LumiList.__sub__(), LumiList.LumiList._getLumiParts(), LumiList.LumiList.getCompactList(), LumiList.LumiList.getLumis(), and LumiList.LumiList.removeRuns().
LumiList.LumiList.filename |
Definition at line 52 of file LumiList.py.
Referenced by cuy.ValElement.__init__(), python.rootplot.rootmath.Target.__repr__(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties(), and utils.unpickler.run().