CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
selectionParser.selectionParser Class Reference
Inheritance diagram for selectionParser.selectionParser:

Public Member Functions

def __init__ (self, selectStr)
 
def numls (self, run)
 
def numruns (self)
 
def runs (self)
 
def runsandls (self)
 
def runsandlsStr (self)
 

Private Attributes

 __result
 
 __strresult
 

Detailed Description

Definition at line 4 of file selectionParser.py.

Constructor & Destructor Documentation

◆ __init__()

def selectionParser.selectionParser.__init__ (   self,
  selectStr 
)

Definition at line 5 of file selectionParser.py.

5  def __init__(self,selectStr):
6  self.__result={}
7  self.__strresult={}
8  strresult=json.loads(selectStr)
9  for k,v in strresult.items():
10  expandedvalues=[]
11  for w in v:
12  if len(w)==0:
13  self.__result[int(k)]=expandedvalues
14  self.__strresult[k]=[]
15  continue
16 
17  elif len(w)==1:
18  expandedvalues.append(w[0])
19 
20  elif len(w)==2 and w[0]==w[1]:
21  expandedvalues.append(w[0])
22  else:
23  for i in range(w[0],w[1]+1):
24  expandedvalues.append(i)
25  self.__result[int(k)]=expandedvalues
26  self.__strresult[k]=[str(x) for x in expandedvalues]

Member Function Documentation

◆ numls()

def selectionParser.selectionParser.numls (   self,
  run 
)

◆ numruns()

def selectionParser.selectionParser.numruns (   self)

◆ runs()

def selectionParser.selectionParser.runs (   self)

◆ runsandls()

def selectionParser.selectionParser.runsandls (   self)
return expanded {run:lslist}

Definition at line 29 of file selectionParser.py.

29  def runsandls(self):
30  '''return expanded {run:lslist}
31  '''
32  return self.__result

References pileupParser.pileupParser.__result, selectionParser.selectionParser.__result, csvLumibyLSParser.csvLumibyLSParser.__result, EgammaHLTValidationUtils.EgammaDQMModuleMaker.__result, and SequenceTypes._CopyAndExcludeSequenceVisitorOld.__result.

◆ runsandlsStr()

def selectionParser.selectionParser.runsandlsStr (   self)
return expanded {'run':lslist}

Definition at line 33 of file selectionParser.py.

33  def runsandlsStr(self):
34  '''return expanded {'run':lslist}
35  '''
36  return self.__strresult

References pileupParser.pileupParser.__strresult, selectionParser.selectionParser.__strresult, and csvLumibyLSParser.csvLumibyLSParser.__strresult.

Member Data Documentation

◆ __result

selectionParser.selectionParser.__result
private

◆ __strresult

selectionParser.selectionParser.__strresult
private

Definition at line 7 of file selectionParser.py.

Referenced by selectionParser.selectionParser.runsandlsStr().

FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
writedatasetfile.runs
runs
Definition: writedatasetfile.py:27
relativeConstraints.keys
keys
Definition: relativeConstraints.py:89
str
#define str(s)
Definition: TestProcessor.cc:48
createfilelist.int
int
Definition: createfilelist.py:10