CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
pileupParser.pileupParser Class Reference
Inheritance diagram for pileupParser.pileupParser:

Public Member Functions

def __init__
 
def numls
 
def numruns
 
def runs
 
def runsandls
 
def runsandlsStr
 

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

Member Function Documentation

def pileupParser.pileupParser.numls (   self,
  run 
)

Definition at line 46 of file pileupParser.py.

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

46 
47  def numls(self,run):
return len(self.__result[run])
def pileupParser.pileupParser.numruns (   self)

Definition at line 44 of file pileupParser.py.

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

44 
45  def numruns(self):
return len(self.__result)
def pileupParser.pileupParser.runs (   self)

Definition at line 34 of file pileupParser.py.

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

Definition at line 36 of file pileupParser.py.

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

36 
37  def runsandls(self):
38  '''return expanded {run:lslist}
39  '''
return self.__result
def pileupParser.pileupParser.runsandlsStr (   self)
return expanded {'run':lslist}

Definition at line 40 of file pileupParser.py.

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

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

Member Data Documentation

pileupParser.pileupParser.__result
private

Definition at line 6 of file pileupParser.py.

Referenced by selectionParser.selectionParser.numls(), pileupParser.pileupParser.numls(), selectionParser.selectionParser.numruns(), pileupParser.pileupParser.numruns(), selectionParser.selectionParser.runsandls(), and pileupParser.pileupParser.runsandls().

pileupParser.pileupParser.__strresult
private

Definition at line 7 of file pileupParser.py.

Referenced by selectionParser.selectionParser.runsandlsStr(), and pileupParser.pileupParser.runsandlsStr().