Public Attributes | |
compactList | |
duplicates | |
filename | |
url | |
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. 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 18 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 46 of file LumiList.py.
def LumiList.LumiList.__add__ | ( | self, | |
other | |||
) |
Definition at line 181 of file LumiList.py.
References GlobalTag.GlobalTag.__or__(), SequenceTypes._BooleanLogicSequenceable.__or__(), and LumiList.LumiList.__or__().
Referenced by counter.Counter.__iadd__(), and average.Average.__iadd__().
def LumiList.LumiList.__and__ | ( | self, | |
other | |||
) |
Definition at line 133 of file LumiList.py.
References LumiList.LumiList.compactList.
def LumiList.LumiList.__contains__ | ( | self, | |
runTuple | |||
) |
Definition at line 362 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(), and LumiList.LumiList.contains().
def LumiList.LumiList.__len__ | ( | self | ) |
Returns number of runs in list
Definition at line 185 of file LumiList.py.
References LumiList.LumiList.compactList.
def LumiList.LumiList.__or__ | ( | self, | |
other | |||
) |
Definition at line 164 of file LumiList.py.
Referenced by LumiList.LumiList.__add__().
def LumiList.LumiList.__str__ | ( | self | ) |
def LumiList.LumiList.__sub__ | ( | self, | |
other | |||
) |
Definition at line 105 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 248 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 327 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 189 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 268 of file LumiList.py.
References LumiList.LumiList._getLumiParts(), and join().
def LumiList.LumiList.getCompactList | ( | self | ) |
Return the compact list representation
Definition at line 211 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 218 of file LumiList.py.
References LumiList.LumiList.duplicates.
def LumiList.LumiList.getLumis | ( | self | ) |
Return the list of pairs representation
Definition at line 225 of file LumiList.py.
References LumiList.LumiList.compactList.
def LumiList.LumiList.getRuns | ( | self | ) |
Turn compactList into an (optionally tracked) VLuminosityBlockRange
Definition at line 279 of file LumiList.py.
References LumiList.LumiList._getLumiParts().
def LumiList.LumiList.removeRuns | ( | self, | |
runList | |||
) |
removes runs from runList from collection
Definition at line 301 of file LumiList.py.
References LumiList.LumiList.compactList.
def LumiList.LumiList.selectRuns | ( | self, | |
runList | |||
) |
Selects only runs from runList in collection
Definition at line 313 of file LumiList.py.
References LumiList.LumiList.compactList.
def LumiList.LumiList.writeJSON | ( | self, | |
fileName | |||
) |
LumiList.LumiList.compactList |
Definition at line 51 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(), LumiList.LumiList.removeRuns(), and LumiList.LumiList.selectRuns().
LumiList.LumiList.duplicates |
Definition at line 52 of file LumiList.py.
Referenced by LumiList.LumiList.getDuplicates().
LumiList.LumiList.filename |
Definition at line 54 of file LumiList.py.
Referenced by cuy.ValElement.__init__(), python.rootplot.rootmath.Target.__repr__(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties(), and utils.unpickler.run().
LumiList.LumiList.url |
Definition at line 58 of file LumiList.py.
Referenced by rrapi.RRApi.get().