ATLAS Offline Software
Classes | Namespaces | Functions | Variables
bin/beamspotnt.py File Reference

Go to the source code of this file.

Classes

class  beamspotnt.Plots
 

Namespaces

 beamspotnt
 

Functions

def beamspotnt.setCuts (nt)
 
def beamspotnt.getNt ()
 
def beamspotnt.cleanUpLowStat (allBSResultsInNt, averagenVtx, lbSize)
 
def beamspotnt.fillInMissingLbs (allBSResultsInNt, lbSize)
 

Variables

string beamspotnt.__author__ = 'Juerg Beringer'
 
string beamspotnt.__version__ = 'beamspotnt.py atlas/athena'
 
string beamspotnt.__usage__
 
string beamspotnt.periodDef = '/afs/cern.ch/user/a/atlidbs/nt/DataPeriods'
 
list beamspotnt.qargv = [ ]
 
string beamspotnt.qcmd = ' '.join(qargv)
 
 beamspotnt.parser = OptionParser(usage=__usage__, version=__version__)
 
 beamspotnt.dest
 
 beamspotnt.default
 
 beamspotnt.help
 
 beamspotnt.action
 
 beamspotnt.False
 
 beamspotnt.type
 
 beamspotnt.None
 
 beamspotnt.options
 
 beamspotnt.args
 
 beamspotnt.cmd = args[0]
 
 beamspotnt.varDefs
 
bool beamspotnt.cmdOk = False
 
string beamspotnt.timeLabel = 'Time (%s)' % options.timezone
 
 beamspotnt.datefmt
 
 beamspotnt.atlasx
 
 beamspotnt.atlasy
 
 beamspotnt.atlasdx
 
 beamspotnt.ntClass = locals()[options.type]
 
def beamspotnt.nt = getNt()
 
string beamspotnt.tableTemplate
 
list beamspotnt.varList = ['status','posX','posY','posZ','sigmaX','sigmaY','sigmaZ','k']
 
list beamspotnt.rows = []
 
list beamspotnt.cols = []
 
dictionary beamspotnt.runInfo = {}
 
 beamspotnt.r = b.run
 
 beamspotnt.srcNtClass = locals()[options.srctype]
 
 beamspotnt.srcNt = srcNtClass(args[1],database=options.database,folder=options.dbfolder,fullCorrelations=options.fullCorrelations)
 
 beamspotnt.dstNt = ntClass(options.ntname,True,fullCorrelations=options.fullCorrelations,addScanVars=options.addScanVars)
 
int beamspotnt.totalEntries = 0
 
int beamspotnt.totalVtxs = 0
 
int beamspotnt.lbSize = 0
 
list beamspotnt.allBSResultsInNt = []
 
int beamspotnt.averagenVtx = totalVtxs/totalEntries
 
 beamspotnt.plots = Plots(nt)
 
 beamspotnt.whatList
 
 beamspotnt.saveAsList
 
 beamspotnt.allCanvasSize
 
 beamspotnt.allCanvasDivs
 
 beamspotnt.calc = BeamSpotAverage(varList,weightedAverage=not options.simpleaverage)
 
int beamspotnt.minrun = 1e10
 
int beamspotnt.maxrun = 0
 
 beamspotnt.ave = calc.ave
 
 beamspotnt.err = calc.err
 
 beamspotnt.rms = calc.rms
 
list beamspotnt.varRanges
 
int beamspotnt.iTable = 1
 
string beamspotnt.latexheader = 'Period '
 
string beamspotnt.latexrow = '%s' % options.period.replace('_','\_')
 
list beamspotnt.parName = calc.varList[i]
 
 beamspotnt.useAlternate
 
string beamspotnt.sqliteFile = options.cooltag+'.db'
 
 beamspotnt.folderHandle = openBeamSpotDbFile(sqliteFile,True)
 
 beamspotnt.tag
 
 beamspotnt.status
 
 beamspotnt.posX
 
 beamspotnt.posY
 
 beamspotnt.posZ
 
 beamspotnt.sigmaX
 
 beamspotnt.sigmaY
 
 beamspotnt.sigmaZ
 
 beamspotnt.tiltX
 
 beamspotnt.tiltY
 
 beamspotnt.sigmaXY
 
 beamspotnt.posXErr
 
 beamspotnt.posYErr
 
 beamspotnt.posZErr
 
 beamspotnt.sigmaXErr
 
 beamspotnt.sigmaYErr
 
 beamspotnt.sigmaZErr
 
 beamspotnt.tiltXErr
 
 beamspotnt.tiltYErr
 
 beamspotnt.sigmaXYErr
 
 beamspotnt.runMin
 
 beamspotnt.runMax
 
 beamspotnt.runEndInt = b.runEnd
 
 beamspotnt.lbMin
 
 beamspotnt.lbMax
 
 beamspotnt.var = args[1]
 
 beamspotnt.singleCanvasSize
 
string beamspotnt.plotType = 'perbcid'
 
 beamspotnt.msize
 
list beamspotnt.labels = []
 
 beamspotnt.datasetinfo = options.ntname.replace("-DB_BEAMSPOT","").split('.')
 
int beamspotnt.time0 = 1262304000
 
 beamspotnt.ascii = open(args[1],'w')
 
string beamspotnt.xtype = 'time'
 
 beamspotnt.graphs = plots.genPlot(var,'plotscan')
 
list beamspotnt.scans = [(int(s.split('-')[0]), int(s.split('-')[1])) for s in options.scans.split(',')]
 
 beamspotnt.overlayScans