1 from builtins
import range
3 from RecoLuminosity.LumiDB
import CommonUtil
7 output: [datasource,{lumilsnum:[cmslsnum,instlumi,instlumierror,instlumiquality,beamstatus,beamenergy,numorbit,startorbit,cmsbxindexblob,beamintensityblob_1,beamintensitublob_2,bxlumivalue_occ1,bxlumierror_occ1,bxlumiquality_occ1,bxlumivalue_occ2,bxlumierror_occ2,bxlumiquality_occ2,bxlumivalue_et,bxlumierror_et,bxlumiquality_et]}] 11 for lumilsnum
in range(1,nlumils+1):
18 beamstatus=
'STABLE BEAMS' 21 startorbit=numorbit*lumilsnum
27 cmsbxindex=array.array(
'I')
28 beam1intensity=array.array(
'f')
29 beam2intensity=array.array(
'f')
30 for idx
in range(1,3565):
31 cmsbxindex.append(idx)
32 beam1intensity.append(1.5e09)
33 beam2intensity.append(5.5e09)
37 bxlumivalue=array.array(
'f')
38 bxlumierror=array.array(
'f')
39 bxlumiquality=array.array(
'I')
40 for idx
in range(1,3565):
41 bxlumivalue.append(2.3)
42 bxlumierror.append(0.4)
43 bxlumiquality.append(2)
47 if lumilsnum
not in perlsdata:
48 perlsdata[lumilsnum]=[]
49 perlsdata[lumilsnum].extend([cmslsnum,instlumi,instlumierror,instlumiquality,beamstatus,beamenergy,numorbit,startorbit,cmsbxindexBlob,beam1intensityBlob,beam2intensityBlob,bxlumivalueBlob,bxlumierrorBlob,bxlumiqualityBlob,bxlumivalueBlob,bxlumierrorBlob,bxlumiqualityBlob,bxlumivalueBlob,bxlumierrorBlob,bxlumiqualityBlob])
84 output: [datasource,bitzeroname,bitnameclob,{cmslsnum:[deadtime,bitzerocount,bitzeroprescale,trgcountBlob,trgprescaleBlob]}] 86 o=[
'oracle://cms_orcon_prod/cms_gtmon',
'L1_ZeroBias']
87 bitnameclob=
'L1_ZeroBias,False,L1_SingleHfBitCountsRing1_1,L1_SingleHfBitCountsRing2_1,L1_SingleMu15,L1SingleJet,Jura' 90 for cmslsnum
in range(1,nls+1):
94 trgcounts=array.array(
'I')
95 prescalecounts=array.array(
'I')
96 for i
in range(1,192):
97 trgcounts.append(778899+i)
98 prescalecounts.append(17)
101 if cmslsnum
not in perlsdata:
102 perlsdata[cmslsnum]=[]
103 perlsdata[cmslsnum].extend([deadtime,bitzerocount,bitzeroprescale,trgcountsBlob,prescalecountsBlob])
109 output: [datasource,pathnameclob,{cmslsnum:[inputcountBlob,acceptcountBlob,prescaleBlob]}] 111 o=[
'oracle://cms_orcon_prod/cms_runinfo']
112 pathnameclob=
'HLT_PixelTracks_Multiplicity70,HLT_PixelTracks_Multiplicity85,HLT_PixelTracks_Multiplicity100,HLT_GlobalRunHPDNoise,HLT_TechTrigHCALNoise' 113 o.append(pathnameclob)
115 for cmslsnum
in range(1,nls+1):
116 inputcounts=array.array(
'I')
117 acceptcounts=array.array(
'I')
118 prescalecounts=array.array(
'I')
119 for i
in range(1,201):
120 inputcounts.append(6677889 )
121 acceptcounts.append(3344565)
122 prescalecounts.append(17)
126 if cmslsnum
not in perlsdata:
127 perlsdata[cmslsnum]=[]
128 perlsdata[cmslsnum].extend([inputcountsBlob,acceptcountsBlob,prescalecountsBlob])
134 output:[hltkey,{hltpahtname:l1seed}] 136 o=[
'/cdaq/physics/firstCollisions10/v2.0/HLT_7TeV/V5']
138 hlttrgmap[
'HLT_L1Tech_BSC_halo']=
'4' 139 hlttrgmap[
'HLT_PixelTracks_Multiplicity70']=
'L1_ETT60' 140 hlttrgmap[
'HLT_PixelTracks_Multiplicity85']=
'L1_ETT60' 141 hlttrgmap[
'HLT_PixelTracks_Multiplicity100']=
'L1_ETT100' 142 hlttrgmap[
'HLT_GlobalRunHPDNoise']=
"L1_SingleJet10U_NotBptxOR" 143 hlttrgmap[
'HLT_TechTrigHCALNoise']=
"11 OR 12" 149 output:[l1key,amodetag,egev,hltkey,fillnum,sequence,starttime,stoptime] 151 o=[
'collisioncollision',
'PROTPHYS',3500,
'/cdaq/physics/firstCollisions10/v2.0/HLT_7TeV/V5',1005,
'GLOBAL-RUN']
152 starttime=coral.TimeStamp(2010,11,1,0,0,0,0)
153 stoptime=coral.TimeStamp(2010,11,1,11,0,0,0)
158 if __name__ ==
"__main__":
def runsummary(schema, amodetag, egev)
def lumiSummary(schema, nlumils)
def packArraytoBlob(iarray)