CMS 3D CMS Logo

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

Functions

def fillPileupHistogram
 
def MyErf
 
def parseInputFile
 

Variables

list CalculationModeChoices = ['truth', 'observed']
 
string default = 'PileupCalc.root'
 
string help = 'output root file'
 
tuple histFile = ROOT.TFile.Open(output, 'recreate')
 
tuple inpf = open(options.inputfile, 'r')
 
tuple inputfilecontent = inpf.read()
 
tuple inputPileupRange = parseInputFile(options.inputLumiJSON)
 
tuple inputRange = selectionParser.selectionParser(inputfilecontent)
 
list LSPUlist = inputPileupRange[run]
 
list lumiInfo = LSPUlist[LSnumber]
 
 nbins = options.numPileupBins
 
list output = args[0]
 
tuple parser
 

## Main Program

More...
 
tuple pileupHist
 
 type = float,
 
 upper = options.maxPileupBin
 
string VERSION = '1.00'
 

Function Documentation

def pileupCalc.fillPileupHistogram (   lumiInfo,
  calcOption,
  hist,
  minbXsec,
  Nbins 
)
lumiinfo:[intlumi per LS, mean interactions ]

intlumi is the deadtime corrected average integraged lumi per lumisection

Definition at line 54 of file pileupCalc.py.

def pileupCalc.MyErf (   input)

Definition at line 22 of file pileupCalc.py.

def pileupCalc.parseInputFile (   inputfilename)
output ({run:[ls:[inlumi, meanint]]})

Definition at line 10 of file pileupCalc.py.

Variable Documentation

list pileupCalc.CalculationModeChoices = ['truth', 'observed']

Definition at line 172 of file pileupCalc.py.

string pileupCalc.default = 'PileupCalc.root'

Definition at line 183 of file pileupCalc.py.

string pileupCalc.help = 'output root file'

Definition at line 184 of file pileupCalc.py.

tuple pileupCalc.histFile = ROOT.TFile.Open(output, 'recreate')

Definition at line 278 of file pileupCalc.py.

tuple pileupCalc.inpf = open(options.inputfile, 'r')

Definition at line 240 of file pileupCalc.py.

tuple pileupCalc.inputfilecontent = inpf.read()

Definition at line 241 of file pileupCalc.py.

tuple pileupCalc.inputPileupRange = parseInputFile(options.inputLumiJSON)

Definition at line 247 of file pileupCalc.py.

tuple pileupCalc.inputRange = selectionParser.selectionParser(inputfilecontent)

Definition at line 242 of file pileupCalc.py.

list pileupCalc.LSPUlist = inputPileupRange[run]

Definition at line 257 of file pileupCalc.py.

list pileupCalc.lumiInfo = LSPUlist[LSnumber]

Definition at line 262 of file pileupCalc.py.

pileupCalc.nbins = options.numPileupBins

Definition at line 237 of file pileupCalc.py.

list pileupCalc.output = args[0]

Definition at line 219 of file pileupCalc.py.

tuple pileupCalc.parser
Initial value:
1 = optparse.OptionParser("Usage: %prog [--options] output.root",
2  description = "Script to estimate pileup distribution using xing instantaneous luminosity information and minimum bias cross section. Output is TH1D stored in root file")

## Main Program

Definition at line 168 of file pileupCalc.py.

tuple pileupCalc.pileupHist
Initial value:
1 = ROOT.TH1D(options.pileupHistName,options.pileupHistName,
2  options.numPileupBins,
3  0., options.maxPileupBin)

Definition at line 233 of file pileupCalc.py.

pileupCalc.type = float,

Definition at line 192 of file pileupCalc.py.

pileupCalc.upper = options.maxPileupBin
string pileupCalc.VERSION = '1.00'

Definition at line 2 of file pileupCalc.py.