ATLAS Offline Software
Namespaces | Functions | Variables
compileRPVLLRates.py File Reference

Go to the source code of this file.

Namespaces

 compileRPVLLRates
 

Functions

def compileRPVLLRates.end_lb (lumiBlock, lbEventList=[], rateHists=[], totalRateHist=0)
 CLASS TO FILL RATE HISTOGRAMS W/ NUMBER OF PASSING EVENTS PER LUMIBLOCK ## lumiblock = specific lumiblock being read lbEventList = list of number of events analyzed and accepted per filter + total accepted for one lumiblock rateHists = list of individual filter rate histograms totalRateHist = overall rpvll rate histogram. More...
 

Variables

 compileRPVLLRates.mypath = sys.argv[1]
 GET INPUT ARGUMENTS ##. More...
 
 compileRPVLLRates.runNumber = sys.argv[2]
 
 compileRPVLLRates.lb_rates = sys.argv[3]
 
list compileRPVLLRates.filterNames
 GET FILTERS ## DVAugmentationKernel not a filter – include in printout but not plots or rate calc. More...
 
list compileRPVLLRates.filterNames_mAug = [fn for fn in filterNames if fn != 'DVAugmentationKernel']
 
 compileRPVLLRates.nf = len(filterNames)
 
 compileRPVLLRates.nfm = len(filterNames_mAug)
 
int compileRPVLLRates.nft = nf*2+1
 
list compileRPVLLRates.n_aug = filterNames.index('DVAugmentationKernel')
 
list compileRPVLLRates.rateHists = []
 INITIALIZE HISTOGRAMS ## individual filter histograms. More...
 
list compileRPVLLRates.eventHists = []
 
 compileRPVLLRates.totalRateHist = TH1F("ratePerLB_overall", "ratePerLB_overall;lb;rate", 2500, 0, 2500)
 
 compileRPVLLRates.lbTimeHist = TH1F("lbTimeHist", "lbTimeHist", 2500, 0, 2500)
 
 compileRPVLLRates.lbList = open(lb_rates).readlines()
 
 compileRPVLLRates.List = open(mypath).readlines()
 GET FILTER EVENT DATA FROM RPVLL LOG FILE ## open list of filter data. More...
 
list compileRPVLLRates.lbEventList = [0] * nft
 
list compileRPVLLRates.eventList = [0] * nft
 
int compileRPVLLRates.first_lb = 0
 
 compileRPVLLRates.first_line = List[0]
 
int compileRPVLLRates.current_lb = first_lb
 
int compileRPVLLRates.last_lb = 2500
 
list compileRPVLLRates.procEvents = []
 
 compileRPVLLRates.s = line.split()[-1]
 
list compileRPVLLRates.totalEvents = eventList[0]
 RATE / EFFICIENCY CALCULATIONS ##. More...
 
list compileRPVLLRates.totalRPVLLpass = eventList[nft-1]
 
list compileRPVLLRates.fracList_total = [0] * nf
 
list compileRPVLLRates.fracList_RPVLL = [0] * nf
 
list compileRPVLLRates.filterEvents = [0] * nf
 
int compileRPVLLRates.closureTest = 0
 
int compileRPVLLRates.closureTest_mAug = closureTest - filterEvents[n_aug]
 
 compileRPVLLRates.lbEventHist = TH1F("lbEventHist", "lbEventHist", 2500, 0, 2500)
 INITIALIZE OTHER LUMIBLOCK HISTS ##. More...
 
 compileRPVLLRates.lbFullEventHist = TH1F("lbFullEventHist", "lbFullEventHist", 2500, 0, 2500)
 
 compileRPVLLRates.lbScaleHist = TH1F("lbScaleHist", "lbScaleHist", 2500, 0, 2500)
 
list compileRPVLLRates.scale = []
 
int compileRPVLLRates.l = 0
 
list compileRPVLLRates.colors
 DRAW + PRINT PLOTS ## set colors for individual filter rate hists. More...
 
 compileRPVLLRates.c1 = TCanvas('c1', '', 1000, 600)
 
 compileRPVLLRates.l1 = ROOT.TLegend(0.76, 0.1, 0.97, 0.91)
 
 compileRPVLLRates.hs1 = THStack("hs1", "");
 
 compileRPVLLRates.latex1 = ROOT.TLatex(0.52, 0.875, "#font[72]{ATLAS }#font[42]{Internal}")
 configure axes set axis titles More...
 
 compileRPVLLRates.latex2 = ROOT.TLatex(0.55, 0.82, "Run " + runNumber)
 
 compileRPVLLRates.c2 = TCanvas('c2', '', 850, 600)
 
 compileRPVLLRates.latex3 = ROOT.TLatex(0.62, 0.875, "#font[72]{ATLAS }#font[42]{Internal}")
 
 compileRPVLLRates.latex4 = ROOT.TLatex(0.65, 0.82, "Run " + runNumber)
 
 compileRPVLLRates.hs2 = THStack("hs2", "");