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
selectionParser.selectionParser Class Reference
Inheritance diagram for selectionParser.selectionParser:

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

Constructor & Destructor Documentation

def selectionParser.selectionParser.__init__ (   self,
  selectStr 
)

Definition at line 5 of file selectionParser.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  for w in v:
13  if len(w)==0:
14  self.__result[int(k)]=expandedvalues
15  self.__strresult[k]=[]
16  continue
17  ###weed out [10]-like stuff just in case they exist
18  elif len(w)==1:
19  expandedvalues.append(w[0])
20  ##weed out [10,10]-like stuff
21  elif len(w)==2 and w[0]==w[1]:
22  expandedvalues.append(w[0])
23  else:
24  for i in range(w[0],w[1]+1):
25  expandedvalues.append(i)
26  self.__result[int(k)]=expandedvalues
self.__strresult[k]=[str(x) for x in expandedvalues]
const uint16_t range(const Frame &aFrame)
#define str(s)

Member Function Documentation

def selectionParser.selectionParser.numls (   self,
  run 
)

Definition at line 39 of file selectionParser.py.

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

39 
40  def numls(self,run):
return len(self.__result[run])
def selectionParser.selectionParser.numruns (   self)

Definition at line 37 of file selectionParser.py.

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

37 
38  def numruns(self):
return len(self.__result)
def selectionParser.selectionParser.runs (   self)

Definition at line 27 of file selectionParser.py.

27 
28  def runs(self):
return self.__result.keys()
def selectionParser.selectionParser.runsandls (   self)
return expanded {run:lslist}

Definition at line 29 of file selectionParser.py.

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

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

Definition at line 33 of file selectionParser.py.

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

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

Member Data Documentation

selectionParser.selectionParser.__result
private

Definition at line 6 of file selectionParser.py.

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

selectionParser.selectionParser.__strresult
private

Definition at line 7 of file selectionParser.py.

Referenced by selectionParser.selectionParser.runsandlsStr().