CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Variables
makePileupJSON.py File Reference

Go to the source code of this file.

Namespaces

 makePileupJSON
 

Variables

tuple makePileupJSON.args = parser.parse_args()
 
tuple makePileupJSON.beam_energy = float(pieces[10])
 
int makePileupJSON.bunch_rms_lumi = 0
 
tuple makePileupJSON.bx = int(ibx)
 
tuple makePileupJSON.csv_input = open(args.inputFile, 'r')
 
 makePileupJSON.denom = total_lumi*total_lumi-total_weight2
 
int makePileupJSON.last_run = -1
 
list makePileupJSON.last_valid_lumi = []
 
tuple makePileupJSON.lumi_section = int(pieces[2])
 
list makePileupJSON.luminometer = pieces[14]
 
 makePileupJSON.mean_int = total_int/total_lumi
 
 makePileupJSON.mean_pileup = bunch_del_lumi*parameters.orbitLength/parameters.lumiSectionLength
 
 makePileupJSON.output = args.outputFile
 
string makePileupJSON.output_line = '{'
 
tuple makePileupJSON.outputfile = open(output,'w')
 
tuple makePileupJSON.parameters = LumiConstants.ParametersObject()
 

## Main Program

More...
 
tuple makePileupJSON.parser = argparse.ArgumentParser(description="Script to estimate average and RMS pileup using the per-bunch luminosity information provided by brilcalc. The output is a JSON file containing a dictionary by runs with one entry per lumi section.")
 
tuple makePileupJSON.pieces = sepRE.split(line.strip())
 
tuple makePileupJSON.run = int(pieces[0])
 
tuple makePileupJSON.sel_bx = set()
 
tuple makePileupJSON.sepRE = re.compile(r'[\]\[\s,;:]+')
 
float makePileupJSON.threshold = 8.0
 
int makePileupJSON.total_int = 0
 
int makePileupJSON.total_int2 = 0
 
int makePileupJSON.total_lumi = 0
 
int makePileupJSON.total_weight2 = 0
 
list makePileupJSON.xing_lumi_array = []