CMS 3D CMS Logo

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

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 pileupParser.py.

Constructor & Destructor Documentation

def pileupParser.pileupParser.__init__ (   self,
  selectStr 
)

Definition at line 5 of file pileupParser.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 # print v
12  ldict={}
13  for elems in v:
14  llist = [ elems[1],elems[2],elems[3] ]
15  ldict[int(elems[0])] = llist
16 
17 
18 # for w in v:
19 # if len(w)==0:
20 # self.__result[int(k)]=expandedvalues
21 # self.__strresult[k]=[]
22 # continue
23  ###weed out [10]-like stuff just in case they exist
24 # elif len(w)==1:
25 # expandedvalues.append(w[0])
26  ##weed out [10,10]-like stuff
27 # elif len(w)==2 and w[0]==w[1]:
28 # expandedvalues.append(w[0])
29 # else:
30 # for i in range(w[0],w[1]+1):
31 # expandedvalues.append(i)
32  self.__result[int(k)]=ldict
33 # self.__strresult[k]=[str(x) for x in expandedvalues]
def __init__(self, selectStr)
Definition: pileupParser.py:5

Member Function Documentation

def pileupParser.pileupParser.numls (   self,
  run 
)
def pileupParser.pileupParser.numruns (   self)
def pileupParser.pileupParser.runs (   self)

Definition at line 34 of file pileupParser.py.

34  def runs(self):
35  return self.__result.keys()
def pileupParser.pileupParser.runsandls (   self)
def pileupParser.pileupParser.runsandlsStr (   self)
return expanded {'run':lslist}

Definition at line 40 of file pileupParser.py.

References pileupParser.pileupParser.__strresult, csvSelectionParser.csvSelectionParser.__strresult, and csvLumibyLSParser.csvLumibyLSParser.__strresult.

40  def runsandlsStr(self):
41  '''return expanded {'run':lslist}
42  '''
43  return self.__strresult

Member Data Documentation

pileupParser.pileupParser.__result
private
pileupParser.pileupParser.__strresult
private