CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
estimatePileup_makeJSON Namespace Reference

Functions

def CalcPileup
 

Variables

int aveLumi = 0
 
dictionary csvDict = {}
 
tuple events = open(options.csvInput, 'r')
 
dictionary GapDict = {}
 
string help = 'Use CSV file from lumiCalc.py instead of lumiDB'
 
int InGap = 0
 
tuple inputGroup = optparse.OptionGroup(parser, "Input Options")
 
int LastDelivered = 0
 
tuple lastindex = len(OUTPUTLINE)
 
int lastLumiS = 0
 
list LastValidLumi = []
 
tuple LumiArray
 
string LumiString = "[%d,%2.4e,%2.4e,%2.4e],"
 
int OldRun = -1
 
list output = args[0]
 
tuple outputfile = open(output,'w')
 
string OUTPUTLINE = ""
 Let's start the fun. More...
 
tuple parameters = LumiQueryAPI.ParametersObject()
 

## Main Program

More...
 
tuple parser
 
list peakratio = lumiInfo[0]
 
tuple pieces = sepRE.split(line.strip())
 
list pileup = LastValidLumi[3]
 
tuple pileupGroup = optparse.OptionGroup(parser, "Pileup Options")
 
list record = lumiInfo[1]
 
dictionary runLumiDict = {}
 
tuple sepRE = re.compile(r'[\s,;:]+')
 
list trunc = OUTPUTLINE[0:lastindex]
 
list xingInstLumiArray
 

Function Documentation

def estimatePileup_makeJSON.CalcPileup (   deadTable,
  parameters,
  mode = 'deadtable' 
)
Given a deadtable, will calculate parameters of pileup distribution. Return formatted
string with LumiSection, LS integrated lumi, RMS of bunch to bunch lumi and pileup.

Definition at line 13 of file estimatePileup_makeJSON.py.

Variable Documentation

list estimatePileup_makeJSON.aveLumi = 0

Definition at line 194 of file estimatePileup_makeJSON.py.

dictionary estimatePileup_makeJSON.csvDict = {}

Definition at line 152 of file estimatePileup_makeJSON.py.

tuple estimatePileup_makeJSON.events = open(options.csvInput, 'r')

Definition at line 140 of file estimatePileup_makeJSON.py.

dictionary estimatePileup_makeJSON.GapDict = {}

Definition at line 144 of file estimatePileup_makeJSON.py.

string estimatePileup_makeJSON.help = 'Use CSV file from lumiCalc.py instead of lumiDB'

Definition at line 116 of file estimatePileup_makeJSON.py.

int estimatePileup_makeJSON.InGap = 0

Definition at line 143 of file estimatePileup_makeJSON.py.

tuple estimatePileup_makeJSON.inputGroup = optparse.OptionGroup(parser, "Input Options")

Definition at line 113 of file estimatePileup_makeJSON.py.

list estimatePileup_makeJSON.LastDelivered = 0

Definition at line 146 of file estimatePileup_makeJSON.py.

tuple estimatePileup_makeJSON.lastindex = len(OUTPUTLINE)

Definition at line 213 of file estimatePileup_makeJSON.py.

estimatePileup_makeJSON.lastLumiS = 0

Definition at line 186 of file estimatePileup_makeJSON.py.

estimatePileup_makeJSON.LastValidLumi = []

Definition at line 145 of file estimatePileup_makeJSON.py.

tuple estimatePileup_makeJSON.LumiArray
Initial value:
1 = CalcPileup(lumiDict, parameters,
2  mode='csv')

Definition at line 226 of file estimatePileup_makeJSON.py.

string estimatePileup_makeJSON.LumiString = "[%d,%2.4e,%2.4e,%2.4e],"

Definition at line 197 of file estimatePileup_makeJSON.py.

estimatePileup_makeJSON.OldRun = -1

Definition at line 141 of file estimatePileup_makeJSON.py.

list estimatePileup_makeJSON.output = args[0]

Definition at line 128 of file estimatePileup_makeJSON.py.

tuple estimatePileup_makeJSON.outputfile = open(output,'w')
estimatePileup_makeJSON.OUTPUTLINE = ""

Let's start the fun.

Definition at line 134 of file estimatePileup_makeJSON.py.

tuple estimatePileup_makeJSON.parameters = LumiQueryAPI.ParametersObject()

## Main Program

Definition at line 110 of file estimatePileup_makeJSON.py.

tuple estimatePileup_makeJSON.parser
Initial value:
1 = optparse.OptionParser("Usage: %prog [--options] output.root",
2  description = "Script to estimate average instantaneous bunch crossing luminosity using xing instantaneous luminosity information. Output is JSON format file with one entry per LumiSection")

Definition at line 111 of file estimatePileup_makeJSON.py.

list estimatePileup_makeJSON.peakratio = lumiInfo[0]

Definition at line 192 of file estimatePileup_makeJSON.py.

tuple estimatePileup_makeJSON.pieces = sepRE.split(line.strip())

Definition at line 153 of file estimatePileup_makeJSON.py.

list estimatePileup_makeJSON.pileup = LastValidLumi[3]
tuple estimatePileup_makeJSON.pileupGroup = optparse.OptionGroup(parser, "Pileup Options")

Definition at line 114 of file estimatePileup_makeJSON.py.

list estimatePileup_makeJSON.record = lumiInfo[1]

Definition at line 188 of file estimatePileup_makeJSON.py.

dictionary estimatePileup_makeJSON.runLumiDict = {}

Definition at line 151 of file estimatePileup_makeJSON.py.

tuple estimatePileup_makeJSON.sepRE = re.compile(r'[\s,;:]+')

Definition at line 139 of file estimatePileup_makeJSON.py.

list estimatePileup_makeJSON.trunc = OUTPUTLINE[0:lastindex]
list estimatePileup_makeJSON.xingInstLumiArray
Initial value:
1 = [( int(orbit), float(lum) ) \
2  for orbit, lum in zip( pieces[10::2],
3  pieces[11::2] ) ]
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)

Definition at line 172 of file estimatePileup_makeJSON.py.