test
CMS 3D CMS Logo

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

Go to the source code of this file.

Namespaces

 plotBeamSpotDB
 

Functions

def plotBeamSpotDB.SetStyle
 

Variables

string plotBeamSpotDB.acommand = 'cmscond_list_iov -c '
 
tuple plotBeamSpotDB.aIOV = IOV()
 
 plotBeamSpotDB.atime = ibeam.IOVBeginTime
 
string plotBeamSpotDB.Banner = "CMS Preliminary"
 
list plotBeamSpotDB.cvlist = []
 
tuple plotBeamSpotDB.da = TDatime(time.strftime('%Y-%m-%d %H:%M:%S',ptm))
 
tuple plotBeamSpotDB.da_first = TDatime(time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(first - time.timezone)))
 
tuple plotBeamSpotDB.da_last = TDatime(time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(last - time.timezone)))
 
string plotBeamSpotDB.datafilename = "tmp_beamspot.dat"
 
int plotBeamSpotDB.datax = 0
 
tuple plotBeamSpotDB.dataxerr = (float(last) - float(first))
 Comment out this block if running on Mac ##. More...
 
int plotBeamSpotDB.datay = 0
 
 plotBeamSpotDB.datayerr = ibeam.Xerr
 
list plotBeamSpotDB.files = tmp[1]
 
 plotBeamSpotDB.first = ibeam.IOVfirst
 
string plotBeamSpotDB.firstRun = "0"
 
 plotBeamSpotDB.getDBdata = True
 
list plotBeamSpotDB.graphlist = []
 
list plotBeamSpotDB.graphnamelist = ['X','Y','Z','SigmaZ','dxdz','dydz','beamWidthX', 'beamWidthY']
 
list plotBeamSpotDB.graphtitlelist = ['beam spot X','beam spot Y','beam spot Z','beam spot #sigma_Z','beam spot dX/dZ','beam spot dY/dZ','beam width X','beam width Y']
 
string plotBeamSpotDB.graphXaxis = 'Run number'
 
list plotBeamSpotDB.graphYaxis = ['beam spot X [cm]','beam spot Y [cm]','beam spot Z [cm]', 'beam spot #sigma_{Z} [cm]', 'beam spot dX/dZ', 'beam spot dY/dZ','beam width X [cm]', 'beam width Y [cm]']
 
list plotBeamSpotDB.ibeam = listbeam[ii]
 
int plotBeamSpotDB.iline = 0
 
tuple plotBeamSpotDB.input = open(option.data +"/"+f)
 
string plotBeamSpotDB.IOVbase = 'runbase'
 
list plotBeamSpotDB.iovlist = []
 
int plotBeamSpotDB.ipoint = 0
 
 plotBeamSpotDB.jline = iline
 
 plotBeamSpotDB.last = ibeam.IOVlast
 
string plotBeamSpotDB.lastRun = "4999999999"
 
tuple plotBeamSpotDB.linedata = line.split()
 
list plotBeamSpotDB.listbeam = []
 
tuple plotBeamSpotDB.listmap = readBeamSpotFile(datafilename,listbeam,IOVbase,firstRun,lastRun)
 
string plotBeamSpotDB.mydestdb = 'frontier://PromptProd/CMS_COND_31X_BEAMSPOT'
 
 plotBeamSpotDB.offset_daylight = time.timezone-time.altzone
 
string plotBeamSpotDB.otherArgs = ''
 
tuple plotBeamSpotDB.output = open(datafilename,"w")
 
tuple plotBeamSpotDB.outroot = TFile(option.output,"RECREATE")
 
 plotBeamSpotDB.passiov = False
 
 plotBeamSpotDB.passline = False
 
 plotBeamSpotDB.printBanner = False
 
 plotBeamSpotDB.printCanvas = False
 
string plotBeamSpotDB.printFormat = "png"
 
tuple plotBeamSpotDB.ptm = time.localtime(reftime)
 
 plotBeamSpotDB.reftime = first
 print local time More...
 
tuple plotBeamSpotDB.status = commands.getstatusoutput( acommand )
 
string plotBeamSpotDB.suffix = ''
 print local time More...
 
string plotBeamSpotDB.tag = ''
 
tuple plotBeamSpotDB.tmp = commands.getstatusoutput("ls "+option.data)
 
tuple plotBeamSpotDB.tmpfile = open(datafilename,'w')
 
list plotBeamSpotDB.tmplistiov = tmpstatus[1]
 
tuple plotBeamSpotDB.tmplumi = unpack(iIOV.since)
 
int plotBeamSpotDB.tmplumifirst = 1
 
int plotBeamSpotDB.tmplumilast = 9999999
 
tuple plotBeamSpotDB.tmprun = unpack(iIOV.since)
 
 plotBeamSpotDB.tmprunfirst = firstRun
 
 plotBeamSpotDB.tmprunlast = lastRun
 
tuple plotBeamSpotDB.tmpstatus = commands.getstatusoutput( acommand )
 
tuple plotBeamSpotDB.totlines = len(tmplistiov)
 
 plotBeamSpotDB.weighted = True;