3 connectionString = essource.connect.value()
5 SiPixelLARecord =
"SiPixelLorentzAngleRcd"
6 SiPixelSimLARecord =
"SiPixelLorentzAngleSimRcd"
7 SiPixelGenErrorRecord =
"SiPixelGenErrorDBObjectRcd"
8 SiPixelTemplatesRecord =
"SiPixelTemplateDBObjectRcd"
9 SiPixel2DTemplatesRecord =
"SiPixel2DTemplateDBObjectRcd"
10 TrackerDTCCablingRecord =
"TrackerDetToDTCELinkCablingMapRcd"
16 allTags[
"DTCCabling"] = {
17 "T6" : (
','.
join( [
'TrackerDetToDTCELinkCablingMap__OT614_200_IT404_layer2_10G__T6__OTOnly' ,TrackerDTCCablingRecord, connectionString,
"",
"2020-03-27 11:30:00.000"] ), ),
22 'T6' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T6_v5_mc' ,SiPixelLARecord,connectionString,
"",
"2020-05-05 20:00:00.000"] ), ),
23 'T14' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T14_v5_mc' ,SiPixelLARecord,connectionString,
"",
"2020-05-05 20:00:00.000"] ), ),
24 'T15' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T15_v5_mc' ,SiPixelLARecord,connectionString,
"",
"2020-05-05 20:00:00.000"] ), ),
25 'T19' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T19_v1_mc' ,SiPixelLARecord,connectionString,
"",
"2020-02-23 14:00:00.000"] ), ),
28 allTags[
"LAWidth"] = {
29 'T6' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T6_mc_forWidthEmpty' ,SiPixelLARecord,connectionString,
"forWidth",
"2019-11-05 20:00:00.000"] ), ),
30 'T14' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T14_mc_forWidthEmpty' ,SiPixelLARecord,connectionString,
"forWidth",
"2019-11-05 20:00:00.000"] ), ),
31 'T15' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T15_mc_forWidthEmpty' ,SiPixelLARecord,connectionString,
"forWidth",
"2019-11-05 20:00:00.000"] ), ),
32 'T19' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T19_mc_forWidthEmpty' ,SiPixelLARecord,connectionString,
"forWidth",
"2020-02-23 14:00:00.000"] ), ),
35 allTags[
"LAfromAlignment"] = {
36 'T6' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T6_mc_forWidthEmpty' ,SiPixelLARecord,connectionString,
"fromAlignment",
"2019-11-05 20:00:00.000"] ), ),
37 'T14' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T14_mc_forWidthEmpty' ,SiPixelLARecord,connectionString,
"fromAlignment",
"2019-11-05 20:00:00.000"] ), ),
38 'T15' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T15_mc_forWidthEmpty' ,SiPixelLARecord,connectionString,
"fromAlignment",
"2019-11-05 20:00:00.000"] ), ),
39 'T19' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T19_mc_forWidthEmpty' ,SiPixelLARecord,connectionString,
"fromAlignment",
"2020-02-23 14:00:00.000"] ), ),
44 'T6' : (
','.
join( [
'SiPixelSimLorentzAngle_phase2_T6_v5_mc' ,SiPixelSimLARecord,connectionString,
"",
"2020-05-05 20:00:00.000"] ), ),
45 'T14' : (
','.
join( [
'SiPixelSimLorentzAngle_phase2_T14_v5_mc' ,SiPixelSimLARecord,connectionString,
"",
"2020-05-05 20:00:00.000"] ), ),
46 'T15' : (
','.
join( [
'SiPixelSimLorentzAngle_phase2_T15_v5_mc' ,SiPixelSimLARecord,connectionString,
"",
"2020-05-05 20:00:00.000"] ), ),
47 'T19' : (
','.
join( [
'SiPixelSimLorentzAngle_phase2_T19_v1_mc' ,SiPixelSimLARecord,connectionString,
"",
"2020-02-23 14:00:00.000"] ), ),
50 allTags[
"GenError"] = {
51 'T6' : (
','.
join( [
'SiPixelGenErrorDBObject_phase2_T6_v5_mc' ,SiPixelGenErrorRecord,connectionString,
"",
"2020-05-02 23:00:00.000"] ), ),
52 'T14' : (
','.
join( [
'SiPixelGenErrorDBObject_phase2_T14_v5_mc' ,SiPixelGenErrorRecord,connectionString,
"",
"2020-05-02 23:00:00.000"] ), ),
53 'T15' : (
','.
join( [
'SiPixelGenErrorDBObject_phase2_T15_v5_mc' ,SiPixelGenErrorRecord,connectionString,
"",
"2020-05-02 23:00:00.000"] ), ),
56 allTags[
"Template"] = {
57 'T6' : (
','.
join( [
'SiPixelTemplateDBObject_phase2_T6_v5_mc' ,SiPixelTemplatesRecord,connectionString,
"",
"2020-05-02 23:00:00.000"] ), ),
58 'T14' : (
','.
join( [
'SiPixelTemplateDBObject_phase2_T14_v5_mc',SiPixelTemplatesRecord,connectionString,
"",
"2020-05-02 23:00:00.000"] ), ),
59 'T15' : (
','.
join( [
'SiPixelTemplateDBObject_phase2_T15_v5_mc',SiPixelTemplatesRecord,connectionString,
"",
"2020-05-02 23:00:00.000"] ), ),
66 allTags[
"Template2Dnum"] = {
67 'T6' : (
','.
join( [
'SiPixel2DTemplateDBObject_phase2_T6_v0_num' ,SiPixel2DTemplatesRecord,connectionString,
"numerator",
"2019-07-15 12:00:00.000"] ), ),
68 'T14' : (
','.
join( [
'SiPixel2DTemplateDBObject_phase2_T14_v0_num' ,SiPixel2DTemplatesRecord,connectionString,
"numerator",
"2019-07-15 12:00:00.000"] ), ),
69 'T15' : (
','.
join( [
'SiPixel2DTemplateDBObject_phase2_T15_v0_num' ,SiPixel2DTemplatesRecord,connectionString,
"numerator",
"2019-07-15 12:00:00.000"] ), ),
72 allTags[
"Template2Dden"] = {
73 'T6' : (
','.
join( [
'SiPixel2DTemplateDBObject_phase2_T6_v0_den' ,SiPixel2DTemplatesRecord,connectionString,
"denominator",
"2019-07-15 12:00:00.000"] ), ),
74 'T14' : (
','.
join( [
'SiPixel2DTemplateDBObject_phase2_T14_v0_den' ,SiPixel2DTemplatesRecord,connectionString,
"denominator",
"2019-07-15 12:00:00.000"] ), ),
75 'T15' : (
','.
join( [
'SiPixel2DTemplateDBObject_phase2_T15_v0_den' ,SiPixel2DTemplatesRecord,connectionString,
"denominator",
"2019-07-15 12:00:00.000"] ), ),
79 activeKeys = [
"DTCCabling",
"LA",
"LAWidth",
"SimLA",
"LAfromAlignment",
"GenError",
"Template"]
82 activeDets = [
"T6",
"T14",
"T15",
"T19"]
84 for det
in activeDets:
86 for key
in activeKeys:
87 if (det
in allTags[key]):
88 appendedTags += allTags[key][det]
91 phase2GTs[
"phase2_realistic_"+det] = (
'phase2_realistic', appendedTags)
95 for key,val
in six.iteritems(phase2GTs):
97 autoCond[key] = ( autoCond[val[0]] )
99 autoCond[key] = ( autoCond[val[0]],) + val[1]