CMS 3D CMS Logo

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

Go to the source code of this file.

Namespaces

 specificLumi
 

Functions

def specificLumi.calculateSpecificLumi
 
def specificLumi.filltofiles
 output methods#### More...
 
def specificLumi.getFillFromDB
 
def specificLumi.getFillFromFile
 
def specificLumi.getSpecificLumi
 
def specificLumi.lastcompleteFill
 
def specificLumi.listfilldir
 
def specificLumi.specificlumiTofile
 

Variables

string specificLumi.action = 'store'
 
string specificLumi.allfillname = 'allfills.txt'
 
tuple specificLumi.allfillsFromDB = lumiCalcAPI.fillInRange(schema,fillmin=minfillnum,fillmax=maxfillnum,amodetag=options.amodetag)
 
list specificLumi.amodetagChoices = [ "PROTPHYS","IONPHYS",'PAPHYS' ]
 
 specificLumi.choices = amodetagChoices,
 
tuple specificLumi.dataidmap = revisionDML.dataIdsByTagId(session.nominalSchema(),datatagid,runlist=runlist,withcomment=False)
 
 specificLumi.datatagname = options.datatag
 
string specificLumi.default = 'frontier://LumiCalc/CMS_LUMI_PROD'
 
dictionary specificLumi.filldata = {}
 
list specificLumi.fillstoprocess = []
 
string specificLumi.help = 'connect string to lumiDB,optional'
 
tuple specificLumi.lastcompletedFill = lastcompleteFill(os.path.join(options.inputdir,'runtofill_dqm.txt'))
 
int specificLumi.MAXFILL = 9999
 
 specificLumi.maxfillnum = options.maxfill
 
int specificLumi.MINFILL = 1800
 
 specificLumi.minfillnum = options.minfill
 
int specificLumi.normid = 0
 
tuple specificLumi.normmap = normDML.normIdByType(session.nominalSchema(),lumitype='HF',defaultonly=True)
 
string specificLumi.normname = 'NONE'
 
dictionary specificLumi.normvalueDict = {}
 
tuple specificLumi.options = parser.parse_args()
 
tuple specificLumi.parser = argparse.ArgumentParser(prog=os.path.basename(sys.argv[0]),description = "specific lumi",formatter_class=argparse.ArgumentDefaultsHelpFormatter)
 

## Main Program

More...
 
tuple specificLumi.processedfills = listfilldir(options.outputdir)
 
tuple specificLumi.reqfillmax = max(fillstoprocess)
 
tuple specificLumi.reqfillmin = min(fillstoprocess)
 
 specificLumi.required = False,
 
tuple specificLumi.runlist = lumiCalcAPI.runList(session.nominalSchema(),options.fillnum,runmin=None,runmax=None,fillmin=reqfillmin,fillmax=reqfillmax,startT=None,stopT=None,l1keyPattern=None,hltkeyPattern=None,amodetag=options.amodetag,nominalEnergy=None,energyFlut=None,requiretrg=False,requirehlt=False)
 
tuple specificLumi.schema = session.nominalSchema()
 
tuple specificLumi.session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')])
 
tuple specificLumi.svc = sessionManager.sessionManager(options.connect,authpath=options.authpath,debugON=options.debug)
 query DB for all fills and compare with allfills.txt if found newer fills, store in mem fill number reprocess anyway the last 1 fill in the dir redo specific lumi for all marked fills More...
 
 specificLumi.type = int,
 
list specificLumi.xingAlgoChoices = [ "OCC1","OCC2","ET"]