CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
lumiContext Namespace Reference

Functions

def parseInputFiles
 

Variables

string action = 'store_true'
 
list allowedActions = ['hltbyls','hltmenu','trgbyls', 'beambyls','runsummary']
 
list amodetag = r[2]
 
list amodetagChoices = [ "PROTPHYS","IONPHYS","PAPHYS" ]
 
list beamModeChoices = ["stable"]
 
tuple c = lumiTime.lumiTime()
 
 choices = beamModeChoices,
 
tuple dataidmap = lumiCalcAPI.runList(session.nominalSchema(),datatagid,runmin=reqrunmin,runmax=reqrunmax,fillmin=reqfillmin,fillmax=reqfillmax,startT=reqtimemin,stopT=reqtimemax,l1keyPattern=None,hltkeyPattern=None,amodetag=options.amodetag,nominalEnergy=options.beamenergy,energyFlut=options.beamfluctuation,requiretrg=reqTrg,requirehlt=reqHlt,preselectedruns=filerunlist)
 
tuple datatagid = revisionDML.getDataTagId(session.nominalSchema(),datatagname)
 
 datatagname = options.datatag
 
string default = 'frontier://LumiCalc/CMS_LUMI_PROD'
 
string dest = 'withbeamintensity'
 switches More...
 
 dumpbeamintensity = False
 
string egev = 'n/a'
 
 filerunlist = None
 
string fill = 'n/a'
 
string help = 'command actions'
 basic arguments More...
 
list hltkey = r[4]
 
list iresults = []
 
dictionary irunlsdict = {}
 check run/ls list More...
 
 isdetail = False
 
list l1key = r[1]
 
tuple lute = lumiTime.lumiTime()
 
tuple options = parser.parse_args()
 
tuple parser = argparse.ArgumentParser(prog=os.path.basename(sys.argv[0]),description = "Additional information needed in the lumi calculation",formatter_class=argparse.ArgumentDefaultsHelpFormatter)
 

## Main Program

More...
 
 pbeammode = None
 
 reqfillmax = None
 
 reqfillmin = None
 
 reqHlt = False
 
 reqrunmax = None
 
 reqrunmin = None
 
 reqtimemax = None
 
tuple reqtimemaxT = lute.StrToDatetime(reqtimemax,customfm='%m/%d/%y %H:%M:%S')
 
 reqtimemin = None
 
tuple reqtimeminT = lute.StrToDatetime(reqtimemin,customfm='%m/%d/%y %H:%M:%S')
 
 reqTrg = False
 
 required = False,
 arg to select exact run and ls More...
 
tuple result = lumiCalcAPI.trgForIds(session.nominalSchema(),irunlsdict,dataidmap,trgbitname=sname,trgbitnamepattern=spattern,withL1Count=True,withPrescale=True)
 
list rruns = []
 
list run = r[0]
 
list sequence = r[6]
 
tuple session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')])
 
 sname = options.name
 
 spattern = None
 
tuple starttime = c.StrToDatetime(r[7])
 
tuple stoptime = c.StrToDatetime(r[8])
 
tuple svc
 check working environment More...
 
list thiscmmd = sys.argv[0]
 
list timeFilter = [None,None]
 
 type = int,
 
 withHLTAccept = True
 
 withL1Pass = True
 

Function Documentation

def lumiContext.parseInputFiles (   inputfilename)
output ({run:[cmsls,cmsls,...]},[[resultlines]])

Definition at line 12 of file lumiContext.py.

12 
13 def parseInputFiles(inputfilename):
14  '''
15  output ({run:[cmsls,cmsls,...]},[[resultlines]])
16  '''
17  selectedrunlsInDB={}
18  resultlines=[]
20  runlsbyfile=p.runsandls()
21  selectedProcessedRuns=p.selectedRunsWithresult()
22  selectedNonProcessedRuns=p.selectedRunsWithoutresult()
23  resultlines=p.resultlines()
24  for runinfile in selectedNonProcessedRuns:
25  selectedrunlsInDB[runinfile]=runlsbyfile[runinfile]
26  return (selectedrunlsInDB,resultlines)
def parseInputFiles
Definition: lumiContext.py:12

Variable Documentation

string lumiContext.action = 'store_true'

Definition at line 132 of file lumiContext.py.

list lumiContext.allowedActions = ['hltbyls','hltmenu','trgbyls', 'beambyls','runsummary']

Definition at line 37 of file lumiContext.py.

list lumiContext.amodetag = r[2]

Definition at line 328 of file lumiContext.py.

list lumiContext.amodetagChoices = [ "PROTPHYS","IONPHYS","PAPHYS" ]

Definition at line 38 of file lumiContext.py.

list lumiContext.beamModeChoices = ["stable"]

Definition at line 39 of file lumiContext.py.

tuple lumiContext.c = lumiTime.lumiTime()

Definition at line 316 of file lumiContext.py.

lumiContext.choices = beamModeChoices,

Definition at line 77 of file lumiContext.py.

tuple lumiContext.dataidmap = lumiCalcAPI.runList(session.nominalSchema(),datatagid,runmin=reqrunmin,runmax=reqrunmax,fillmin=reqfillmin,fillmax=reqfillmax,startT=reqtimemin,stopT=reqtimemax,l1keyPattern=None,hltkeyPattern=None,amodetag=options.amodetag,nominalEnergy=options.beamenergy,energyFlut=options.beamfluctuation,requiretrg=reqTrg,requirehlt=reqHlt,preselectedruns=filerunlist)

Definition at line 239 of file lumiContext.py.

tuple lumiContext.datatagid = revisionDML.getDataTagId(session.nominalSchema(),datatagname)

Definition at line 237 of file lumiContext.py.

lumiContext.datatagname = options.datatag

Definition at line 233 of file lumiContext.py.

float lumiContext.default = 'frontier://LumiCalc/CMS_LUMI_PROD'

Definition at line 53 of file lumiContext.py.

string lumiContext.dest = 'withbeamintensity'

switches

Definition at line 131 of file lumiContext.py.

lumiContext.dumpbeamintensity = False

Definition at line 303 of file lumiContext.py.

tuple lumiContext.egev = 'n/a'

Definition at line 329 of file lumiContext.py.

tuple lumiContext.filerunlist = None

Definition at line 228 of file lumiContext.py.

tuple lumiContext.fill = 'n/a'

Definition at line 319 of file lumiContext.py.

Referenced by RadDamTask._process(), SiStripThreshold.allThresholds(), GEMSimTrackMatch.analyze(), GEMDigiTrackMatch.analyze(), GEMRecHitTrackMatch.analyze(), GenericBenchmarkAnalyzer.analyze(), EcalDumpRaw.analyze(), AnalyzerMinbias.analyze(), TrackCountingTagPlotter.analyzeTag(), TrackProbabilityTagPlotter.analyzeTag(), SimpleCosmicBONSeeder.checkNoisyModules(), funct::Master< F >.clear(), CSCTFUnpacker.CSCTFUnpacker(), EcalDumpRaw.decode(), PhysicsTools::VarProcessor.deriv(), DTEfficiencyTest.dqmEndLuminosityBlock(), VoronoiAlgorithm.event_fourier(), CandCommonVertexFitterBase.fill(), PFCandCommonVertexFitterBase.fill(), CandKinematicVertexFitter.fill(), FlavourHistograms2D< T, G >.fill(), egHLT::MonElemContainer< T >.fill(), GroupedCkfTrajectoryBuilder.groupedIntermediaryClean(), HITrackClusterRemover.HITrackClusterRemover(), HLTTrackClusterRemoverNew.HLTTrackClusterRemoverNew(), HLTTauDQMPath.offlineMatching(), cscdqm::EventProcessor.processCSC(), EgammaHLTCaloTowerProducer.produce(), SeedClusterRemover.produce(), HITrackClusterRemover.produce(), SeedClusterRemover.readPSet(), HLTTrackClusterRemoverNew.readPSet(), HITrackClusterRemover.readPSet(), funct::Master< F >.reset(), L1DataEmulDigi.reset(), StMeasurementDetSet.resetOnDemandStrips(), HcalSiPM.resetSiPM(), magfieldparam::rz_poly.rz_poly(), SeedClusterRemover.SeedClusterRemover(), CandCommonVertexFitterBase.set(), PFCandCommonVertexFitterBase.set(), CandKinematicVertexFitter.set(), StMeasurementConditionSet.set128StripStatus(), PxMeasurementDetSet.setActiveThisEvent(), magfieldparam::rz_poly.SetAllON(), CaloSamples.setBlank(), StMeasurementDetSet.setEmpty(), PxMeasurementDetSet.setEmpty(), heppy::IsolationComputer.setPackedCandidates(), StripSubClusterShapeFilterBase.StripSubClusterShapeFilterBase(), MeasurementTrackerEventProducer.updatePixels(), DAClusterizerInZ.vertices(), and DAClusterizerInZ_vect.vertices().

string lumiContext.help = 'command actions'

basic arguments

Definition at line 49 of file lumiContext.py.

list lumiContext.hltkey = r[4]

Definition at line 327 of file lumiContext.py.

Referenced by lumi::HLTConf2DB.retrieveData().

list lumiContext.iresults = []

Definition at line 165 of file lumiContext.py.

tuple lumiContext.irunlsdict = {}

check run/ls list

Definition at line 225 of file lumiContext.py.

lumiContext.isdetail = False

Definition at line 193 of file lumiContext.py.

list lumiContext.l1key = r[1]

Definition at line 326 of file lumiContext.py.

tuple lumiContext.lute = lumiTime.lumiTime()

Definition at line 183 of file lumiContext.py.

tuple lumiContext.options = parser.parse_args()

Definition at line 154 of file lumiContext.py.

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

Definition at line 36 of file lumiContext.py.

string lumiContext.pbeammode = None

Definition at line 164 of file lumiContext.py.

lumiContext.reqfillmax = None

Definition at line 161 of file lumiContext.py.

lumiContext.reqfillmin = None

Definition at line 158 of file lumiContext.py.

lumiContext.reqHlt = False

Definition at line 167 of file lumiContext.py.

lumiContext.reqrunmax = None

Definition at line 160 of file lumiContext.py.

lumiContext.reqrunmin = None

Definition at line 157 of file lumiContext.py.

lumiContext.reqtimemax = None

Definition at line 162 of file lumiContext.py.

tuple lumiContext.reqtimemaxT = lute.StrToDatetime(reqtimemax,customfm='%m/%d/%y %H:%M:%S')

Definition at line 190 of file lumiContext.py.

lumiContext.reqtimemin = None

Definition at line 159 of file lumiContext.py.

tuple lumiContext.reqtimeminT = lute.StrToDatetime(reqtimemin,customfm='%m/%d/%y %H:%M:%S')

Definition at line 184 of file lumiContext.py.

lumiContext.reqTrg = False

Definition at line 166 of file lumiContext.py.

lumiContext.required = False,

arg to select exact run and ls

versions control

Definition at line 51 of file lumiContext.py.

tuple lumiContext.result = lumiCalcAPI.trgForIds(session.nominalSchema(),irunlsdict,dataidmap,trgbitname=sname,trgbitnamepattern=spattern,withL1Count=True,withPrescale=True)

Definition at line 271 of file lumiContext.py.

list lumiContext.rruns = []

Definition at line 226 of file lumiContext.py.

list lumiContext.run = r[0]

Definition at line 318 of file lumiContext.py.

list lumiContext.sequence = r[6]

Definition at line 332 of file lumiContext.py.

Referenced by EcalDCCTBHeaderRuntypeDecoder.Decode(), EcalDCCHeaderRuntypeDecoder.Decode(), ecaldqm::DependencySet.formSequence(), and FFTJetCorrectionESProducer< CT >.produce().

tuple lumiContext.session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')])

Definition at line 219 of file lumiContext.py.

lumiContext.sname = options.name

Definition at line 192 of file lumiContext.py.

Referenced by HcalTBWriter.buildTree(), SiPixelActionExecutor.fillFEDErrorSummary(), SiPixelActionExecutor.fillSummary(), LMFDefFabric.getTrigType(), FWGeometryTableViewBase.populate3DViewsFromConfig(), SiTrackerMultiRecHitUpdatorESProducer.produce(), TkTransientTrackingRecHitBuilderESProducer.produce(), and OpticalObject.shortName().

lumiContext.spattern = None

Definition at line 194 of file lumiContext.py.

tuple lumiContext.starttime = c.StrToDatetime(r[7])

Definition at line 322 of file lumiContext.py.

tuple lumiContext.stoptime = c.StrToDatetime(r[8])

Definition at line 324 of file lumiContext.py.

tuple lumiContext.svc
Initial value:
1 = sessionManager.sessionManager(options.connect,
2  authpath=options.authpath,
3  siteconfpath=options.siteconfpath,
4  debugON=options.debug)

check working environment

check DB environment

Definition at line 215 of file lumiContext.py.

list lumiContext.thiscmmd = sys.argv[0]

Definition at line 266 of file lumiContext.py.

list lumiContext.timeFilter = [None,None]

Definition at line 163 of file lumiContext.py.

tuple lumiContext.type = int,

Definition at line 58 of file lumiContext.py.

lumiContext.withHLTAccept = True

Definition at line 284 of file lumiContext.py.

lumiContext.withL1Pass = True

Definition at line 283 of file lumiContext.py.