CMS 3D CMS Logo

Namespaces | Functions | Variables

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/RecoLuminosity/LumiDB/scripts/lumiContext.py File Reference

Go to the source code of this file.

Namespaces

namespace  lumiContext

Functions

def lumiContext::parseInputFiles

Variables

string lumiContext::action = 'store_true'
list lumiContext::allowedActions = ['hltbyls','hltmenu','trgbyls', 'beambyls','runsummary']
list lumiContext::amodetag = r[2]
list lumiContext::amodetagChoices = [ "PROTPHYS","IONPHYS","PAPHYS" ]
list lumiContext::beamModeChoices = ["stable"]
tuple lumiContext::c = lumiTime.lumiTime()
 lumiContext::choices = beamModeChoices,
tuple lumiContext::dataidmap = revisionDML.dataIdsByTagId(session.nominalSchema(),datatagid,runlist=rruns,withcomment=False)
 lumiContext::datatagname = options.datatag
string lumiContext::default = 'frontier://LumiCalc/CMS_LUMI_PROD'
string lumiContext::dest = 'withbeamintensity'
 switches
 lumiContext::dumpbeamintensity = False
string lumiContext::egev = 'n/a'
string lumiContext::fill = 'n/a'
string lumiContext::help = 'command actions'
 basic arguments
list lumiContext::hltkey = r[4]
list lumiContext::iresults = []
dictionary lumiContext::irunlsdict = {}
 lumiContext::isdetail = False
list lumiContext::l1key = r[1]
tuple lumiContext::options = parser.parse_args()
tuple lumiContext::parser = argparse.ArgumentParser(prog=os.path.basename(sys.argv[0]),description = "Additional information needed in the lumi calculation",formatter_class=argparse.ArgumentDefaultsHelpFormatter)
 ######################## ## ## ################## ## ## ## ## Main Program ## ## ## ## ################## ## ## ######################## ##
 lumiContext::pbeammode = None
 lumiContext::reqHlt = False
 lumiContext::reqTrg = False
 lumiContext::required = False,
 arg to select exact run and ls
tuple lumiContext::result = lumiCalcAPI.trgForIds(session.nominalSchema(),irunlsdict,dataidmap,trgbitname=sname,trgbitnamepattern=spattern,withL1Count=True,withPrescale=True)
list lumiContext::rruns = []
list lumiContext::run = r[0]
tuple lumiContext::runlist = lumiCalcAPI.runList(session.nominalSchema(),options.fillnum,runmin=None,runmax=None,startT=options.begin,stopT=options.end,l1keyPattern=None,hltkeyPattern=None,amodetag=options.amodetag,nominalEnergy=options.beamenergy,energyFlut=options.beamfluctuation,requiretrg=reqTrg,requirehlt=reqHlt)
list lumiContext::sequence = r[6]
tuple lumiContext::session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')])
 lumiContext::sname = options.name
 lumiContext::spattern = None
tuple lumiContext::starttime = c.StrToDatetime(r[7])
tuple lumiContext::stoptime = c.StrToDatetime(r[8])
tuple lumiContext::svc
list lumiContext::thiscmmd = sys.argv[0]
 lumiContext::type = int,
 lumiContext::withHLTAccept = True
 lumiContext::withL1Pass = True