CMS 3D CMS Logo

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

Go to the source code of this file.

Namespaces

 ntuplemaker
 

Functions

def ntuplemaker.getFill
 

Variables

string ntuplemaker.acommand = 'cmscond_list_iov -c frontier://PromptProd/CMS_COND_31X_BEAMSPOT -P /afs/cern.ch/cms/DB/conddb -t '
 
list ntuplemaker.afill = aline[1]
 
tuple ntuplemaker.aIOV = IOV()
 
tuple ntuplemaker.aline = line.split()
 
tuple ntuplemaker.begintime = time.mktime( time.strptime(line.split()[0] + " " + line.split()[1] + " " + line.split()[2],"%Y.%m.%d %H:%M:%S %Z") )
 
tuple ntuplemaker.bntuple = spot()
 
string ntuplemaker.datafilename = "tmp_beamspot.dat"
 
tuple ntuplemaker.endtime = time.mktime( time.strptime(line.split()[0] + " " + line.split()[1] + " " + line.split()[2],"%Y.%m.%d %H:%M:%S %Z") )
 
list ntuplemaker.files = tmp[1]
 
dictionary ntuplemaker.FillList = {}
 
string ntuplemaker.firstRun = "0:0"
 
tuple ntuplemaker.fntuple = TFile( 'bntuple.root', 'RECREATE' )
 
 ntuplemaker.getDBdata = True
 
list ntuplemaker.ibeam = listbeam[ii]
 
int ntuplemaker.iline = 0
 
tuple ntuplemaker.input = open(option.data +"/"+f)
 
string ntuplemaker.IOVbase = 'lumibase'
 
list ntuplemaker.iovlist = []
 
 ntuplemaker.jline = iline
 
string ntuplemaker.lastRun = "4999999999:4999999999"
 
 ntuplemaker.line = ibeam.IOVBeginTime
 
tuple ntuplemaker.linedata = line.split()
 
list ntuplemaker.listbeam = []
 
tuple ntuplemaker.listmap = readBeamSpotFile(datafilename,listbeam,IOVbase,firstRun,lastRun)
 
string ntuplemaker.otherArgs = ''
 
tuple ntuplemaker.output = open(datafilename,"w")
 
 ntuplemaker.passiov = False
 
 ntuplemaker.passline = False
 
list ntuplemaker.run0 = aline[3]
 
list ntuplemaker.run1 = aline[5]
 
tuple ntuplemaker.runsfile = open("FillandRuns.txt")
 
tuple ntuplemaker.status = commands.getstatusoutput( acommand )
 
tuple ntuplemaker.tbyIOV = TTree( 'byIOV', 'beam spot data by IOV' )
 
tuple ntuplemaker.tbylumi = TTree( 'bylumi', 'beam spot data lumi by lumi' )
 
tuple ntuplemaker.tbyrun = TTree( 'byrun', 'beam spot data by run' )
 
tuple ntuplemaker.tmp = commands.getstatusoutput("ls "+option.data)
 
tuple ntuplemaker.tmpfile = open(datafilename,'w')
 
list ntuplemaker.tmplistiov = tmpstatus[1]
 
tuple ntuplemaker.tmplumi = unpack(iIOV.since)
 
int ntuplemaker.tmplumifirst = 1
 
int ntuplemaker.tmplumilast = 9999999
 
tuple ntuplemaker.tmprun = unpack(iIOV.since)
 
 ntuplemaker.tmprunfirst = firstRun
 
 ntuplemaker.tmprunlast = lastRun
 
tuple ntuplemaker.tmpstatus = commands.getstatusoutput( acommand )
 
tuple ntuplemaker.totlines = len(tmplistiov)
 
 ntuplemaker.weightedlist = listbeam