Public Member Functions | |
def | __add__ (self, other) |
def | __and__ (self, other) |
def | __contains__ (self, runTuple) |
def | __init__ (self, filename=None, lumis=None, runsAndLumis=None, runs=None, compactList=None, url=None) |
def | __len__ (self) |
def | __or__ (self, other) |
def | __str__ (self) |
def | __sub__ (self, other) |
def | contains (self, run, lumiSection=None) |
def | filterLumis (self, lumiList) |
def | getCMSSWString (self) |
def | getCompactList (self) |
def | getDuplicates (self) |
def | getLumis (self) |
def | getRuns (self) |
def | getVLuminosityBlockRange (self, tracked=False) |
def | removeRuns (self, runList) |
def | selectRuns (self, runList) |
def | writeJSON (self, fileName) |
Public Attributes | |
compactList | |
duplicates | |
filename | |
url | |
Private Member Functions | |
def | _getLumiParts (self) |
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. This form also takes a list of these objects which can be much faster than LumiList += LumiList 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 19 of file LumiList.py.
def LumiList.LumiList.__init__ | ( | self, | |
filename = None , |
|||
lumis = None , |
|||
runsAndLumis = None , |
|||
runs = None , |
|||
compactList = None , |
|||
url = 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 47 of file LumiList.py.
def LumiList.LumiList.__add__ | ( | self, | |
other | |||
) |
Definition at line 193 of file LumiList.py.
References GlobalTag.GlobalTag.__or__(), SequenceTypes._BooleanLogicSequenceable.__or__(), LumiList.LumiList.__or__(), Config._BoolModifierBase.__or__(), and Config.Modifier.__or__().
Referenced by counter.Counter.__iadd__(), and average.Average.__iadd__().
def LumiList.LumiList.__and__ | ( | self, | |
other | |||
) |
Definition at line 145 of file LumiList.py.
References LumiList.LumiList.compactList.
def LumiList.LumiList.__contains__ | ( | self, | |
runTuple | |||
) |
Definition at line 374 of file LumiList.py.
References edm::Association< C >.contains(), edm::helper::IndexRangeAssociation.contains(), FWGeometry.contains(), edm::ValueMap< T >.contains(), edm::MultiAssociation< C >.contains(), PhysicsTools::Calibration::MVAComputerContainer.contains(), SequenceTypes._ModuleSequenceType.contains(), LumiList.LumiList.contains(), SequenceTypes.Schedule.contains(), and SequenceTypes.Task.contains().
def LumiList.LumiList.__len__ | ( | self | ) |
Returns number of runs in list
Definition at line 197 of file LumiList.py.
References LumiList.LumiList.compactList.
def LumiList.LumiList.__or__ | ( | self, | |
other | |||
) |
Definition at line 176 of file LumiList.py.
Referenced by LumiList.LumiList.__add__().
def LumiList.LumiList.__str__ | ( | self | ) |
def LumiList.LumiList.__sub__ | ( | self, | |
other | |||
) |
Definition at line 117 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 260 of file LumiList.py.
References LumiList.LumiList.compactList, and str.
Referenced by LumiList.LumiList.getCMSSWString(), and LumiList.LumiList.getVLuminosityBlockRange().
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 339 of file LumiList.py.
References LumiList.LumiList.compactList, and str.
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 201 of file LumiList.py.
References str.
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 280 of file LumiList.py.
References LumiList.LumiList._getLumiParts(), join(), and str.
def LumiList.LumiList.getCompactList | ( | self | ) |
Return the compact list representation
Definition at line 223 of file LumiList.py.
References LumiList.LumiList.compactList.
def LumiList.LumiList.getDuplicates | ( | self | ) |
Return the list of duplicates found during construction as a LumiList
Definition at line 230 of file LumiList.py.
References LumiList.LumiList.duplicates.
def LumiList.LumiList.getLumis | ( | self | ) |
Return the list of pairs representation
Definition at line 237 of file LumiList.py.
References LumiList.LumiList.compactList, and createfilelist.int.
def LumiList.LumiList.getRuns | ( | self | ) |
Turn compactList into an (optionally tracked) VLuminosityBlockRange
Definition at line 291 of file LumiList.py.
References LumiList.LumiList._getLumiParts().
def LumiList.LumiList.removeRuns | ( | self, | |
runList | |||
) |
removes runs from runList from collection
Definition at line 313 of file LumiList.py.
References LumiList.LumiList.compactList, and str.
def LumiList.LumiList.selectRuns | ( | self, | |
runList | |||
) |
Selects only runs from runList in collection
Definition at line 325 of file LumiList.py.
References LumiList.LumiList.compactList, and createfilelist.int.
def LumiList.LumiList.writeJSON | ( | self, | |
fileName | |||
) |
LumiList.LumiList.compactList |
Definition at line 52 of file LumiList.py.
Referenced by LumiList.LumiList.__and__(), LumiList.LumiList.__len__(), LumiList.LumiList.__str__(), LumiList.LumiList.__sub__(), LumiList.LumiList._getLumiParts(), LumiList.LumiList.contains(), LumiList.LumiList.getCompactList(), LumiList.LumiList.getLumis(), LumiList.LumiList.removeRuns(), and LumiList.LumiList.selectRuns().
LumiList.LumiList.duplicates |
Definition at line 53 of file LumiList.py.
Referenced by LumiList.LumiList.getDuplicates(), edmIntegrityCheck.IntegrityCheck.report(), edmIntegrityCheck.IntegrityCheck.structured(), and edmIntegrityCheck.IntegrityCheck.test().
LumiList.LumiList.filename |
Definition at line 55 of file LumiList.py.
Referenced by python.rootplot.rootmath.Target.__repr__(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties(), and utils.unpickler.run().
LumiList.LumiList.url |
Definition at line 59 of file LumiList.py.
Referenced by rrapi.RRApi.get().