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 22 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 50 of file LumiList.py.
def LumiList.LumiList.__add__ | ( | self, | |
other | |||
) |
Definition at line 199 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 151 of file LumiList.py.
References LumiList.LumiList.compactList, and relativeConstraints.keys.
def LumiList.LumiList.__contains__ | ( | self, | |
runTuple | |||
) |
Definition at line 383 of file LumiList.py.
References edm::Association< C >.contains(), edm::eventsetup::DataProxyProvider::KeyedProxies.contains(), edm::helper::IndexRangeAssociation.contains(), edm::ThinnedRefSet< C >.contains(), FWGeometry.contains(), edm::ValueMap< T >.contains(), edm::MultiAssociation< C >.contains(), PhysicsTools::Calibration::MVAComputerContainer.contains(), LumiList.LumiList.contains(), SequenceTypes._ModuleSequenceType.contains(), SequenceTypes.Schedule.contains(), and SequenceTypes._TaskBase.contains().
def LumiList.LumiList.__len__ | ( | self | ) |
Returns number of runs in list
Definition at line 203 of file LumiList.py.
References LumiList.LumiList.compactList.
def LumiList.LumiList.__or__ | ( | self, | |
other | |||
) |
Definition at line 182 of file LumiList.py.
References LumiList.LumiList.compactList, and relativeConstraints.keys.
Referenced by LumiList.LumiList.__add__().
def LumiList.LumiList.__str__ | ( | self | ) |
def LumiList.LumiList.__sub__ | ( | self, | |
other | |||
) |
Definition at line 123 of file LumiList.py.
References LumiList.LumiList.compactList, and relativeConstraints.keys.
|
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 266 of file LumiList.py.
References LumiList.LumiList.compactList, relativeConstraints.keys, and str.
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 348 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 207 of file LumiList.py.
References LumiList.LumiList.compactList, and 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 289 of file LumiList.py.
References LumiList.LumiList._getLumiParts(), join(), and str.
def LumiList.LumiList.getCompactList | ( | self | ) |
Return the compact list representation
Definition at line 229 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 236 of file LumiList.py.
References LumiList.LumiList.duplicates.
def LumiList.LumiList.getLumis | ( | self | ) |
Return the list of pairs representation
Definition at line 243 of file LumiList.py.
References LumiList.LumiList.compactList, createfilelist.int, relativeConstraints.keys, and FastTimerService_cff.range.
def LumiList.LumiList.getRuns | ( | self | ) |
return the sorted list of runs contained
Definition at line 259 of file LumiList.py.
References LumiList.LumiList.compactList, and relativeConstraints.keys.
def LumiList.LumiList.getVLuminosityBlockRange | ( | self, | |
tracked = False |
|||
) |
Turn compactList into an (optionally tracked) VLuminosityBlockRange
Definition at line 300 of file LumiList.py.
References LumiList.LumiList._getLumiParts().
def LumiList.LumiList.removeRuns | ( | self, | |
runList | |||
) |
removes runs from runList from collection
Definition at line 322 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 334 of file LumiList.py.
References LumiList.LumiList.compactList, createfilelist.int, and relativeConstraints.keys.
def LumiList.LumiList.writeJSON | ( | self, | |
fileName | |||
) |
Write out a JSON file representation of the object
Definition at line 313 of file LumiList.py.
LumiList.LumiList.compactList |
Definition at line 55 of file LumiList.py.
Referenced by LumiList.LumiList.__and__(), LumiList.LumiList.__len__(), LumiList.LumiList.__or__(), LumiList.LumiList.__str__(), LumiList.LumiList.__sub__(), LumiList.LumiList._getLumiParts(), LumiList.LumiList.contains(), LumiList.LumiList.filterLumis(), LumiList.LumiList.getCompactList(), LumiList.LumiList.getLumis(), LumiList.LumiList.getRuns(), LumiList.LumiList.removeRuns(), and LumiList.LumiList.selectRuns().
LumiList.LumiList.duplicates |
Definition at line 56 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 58 of file LumiList.py.
Referenced by python.rootplot.rootmath.Target.__repr__().
LumiList.LumiList.url |
Definition at line 62 of file LumiList.py.
Referenced by rrapi.RRApi.get().