Classes | |
class | EquidistantBinning |
Functions | |
def | fillPileupHistogram |
def | MyErf |
def | parseInputFile |
def | poisson |
Variables | |
tuple | binning = EquidistantBinning(options.numPileupBins, 0., options.maxPileupBin) |
list | choices = ['true', 'observed'] |
string | default = 'pileup' |
tuple | hContents = np.zeros(binning.centers.shape) |
string | help = 'input Run/LS file for your analysis in JSON format' |
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] |
tuple | options = parser.parse_args() |
output = options.outputfile | |
tuple | parser = argparse.ArgumentParser(description = "Script to estimate pileup distribution using bunch instantaneous luminosity information and minimum bias cross section. Outputs a TH1D of the pileup distribution stored in a ROOT file.") |
## Main ProgramMore... | |
tuple | pileupHist |
tuple | req_group = parser.add_argument_group('required arguments') |
tuple | Sqrt2 = np.sqrt(2) |
float | type = 69200.0 |
string | VERSION = '1.00' |
def pileupCalc.fillPileupHistogram | ( | lumiInfo, | |
calcOption, | |||
binning, | |||
hContents, | |||
minbXsec, | |||
run, | |||
ls | |||
) |
lumiinfo:[intlumi per LS, mean interactions ] intlumi is the deadtime corrected average integrated lumi per lumisection
Definition at line 69 of file pileupCalc.py.
References MyErf(), poisson(), and print().
def pileupCalc.MyErf | ( | xInput | ) |
def pileupCalc.parseInputFile | ( | inputfilename | ) |
output ({run:[ls:[inlumi, meanint]]})
Definition at line 12 of file pileupCalc.py.
def pileupCalc.poisson | ( | x, | |
par | |||
) |
tuple pileupCalc.binning = EquidistantBinning(options.numPileupBins, 0., options.maxPileupBin) |
Definition at line 163 of file pileupCalc.py.
Referenced by TagProbeFitTreeAnalyzer.calculateEfficiency().
list pileupCalc.choices = ['true', 'observed'] |
Definition at line 135 of file pileupCalc.py.
string pileupCalc.default = 'pileup' |
Definition at line 146 of file pileupCalc.py.
tuple pileupCalc.hContents = np.zeros(binning.centers.shape) |
Definition at line 164 of file pileupCalc.py.
Definition at line 130 of file pileupCalc.py.
tuple pileupCalc.histFile = ROOT.TFile.Open(output, 'recreate') |
Definition at line 209 of file pileupCalc.py.
tuple pileupCalc.inpf = open(options.inputfile, 'r') |
Definition at line 166 of file pileupCalc.py.
tuple pileupCalc.inputfilecontent = inpf.read() |
Definition at line 167 of file pileupCalc.py.
tuple pileupCalc.inputPileupRange = parseInputFile(options.inputLumiJSON) |
Definition at line 172 of file pileupCalc.py.
tuple pileupCalc.inputRange = selectionParser.selectionParser(inputfilecontent) |
Definition at line 168 of file pileupCalc.py.
Referenced by SiStripNoiseNormalizedWithApvGainBuilder.analyze(), SiStripApvGainBuilderFromTag.analyze(), SiStripGain.fillNewGain(), cms::ReconstructerFP420.produce(), cms::TrackerizerFP420.produce(), cms::ClusterizerFP420.produce(), cms::DigitizerFP420.produce(), CTPPSPixelDigiCollection.put(), PixelDigiCollection.put(), DigiCollectionFP420.put(), ClusterCollectionFP420.put(), TrackCollectionFP420.put(), RecoCollectionFP420.put(), TrackCollectionFP420.putclear(), RecoCollectionFP420.putclear(), ClusterCollectionFP420.putclear(), DigiCollectionFP420.putclear(), FP420TrackMain.run(), and FP420ClusterMain.run().
list pileupCalc.LSPUlist = inputPileupRange[run] |
Definition at line 182 of file pileupCalc.py.
list pileupCalc.lumiInfo = LSPUlist[LSnumber] |
Definition at line 187 of file pileupCalc.py.
tuple pileupCalc.options = parser.parse_args() |
Definition at line 150 of file pileupCalc.py.
pileupCalc.output = options.outputfile |
Definition at line 151 of file pileupCalc.py.
tuple pileupCalc.parser = argparse.ArgumentParser(description = "Script to estimate pileup distribution using bunch instantaneous luminosity information and minimum bias cross section. Outputs a TH1D of the pileup distribution stored in a ROOT file.") |
Definition at line 124 of file pileupCalc.py.
tuple pileupCalc.pileupHist |
Definition at line 204 of file pileupCalc.py.
tuple pileupCalc.req_group = parser.add_argument_group('required arguments') |
Definition at line 127 of file pileupCalc.py.
tuple pileupCalc.Sqrt2 = np.sqrt(2) |
Definition at line 67 of file pileupCalc.py.
int pileupCalc.type = 69200.0 |
Definition at line 139 of file pileupCalc.py.
string pileupCalc.VERSION = '1.00' |
Definition at line 4 of file pileupCalc.py.