3 connectionString = essource.connect.value()
5 SiPixelLARecord =
"SiPixelLorentzAngleRcd"
6 SiPixelSimLARecord =
"SiPixelLorentzAngleSimRcd"
7 SiPixelGenErrorRecord =
"SiPixelGenErrorDBObjectRcd"
8 SiPixelTemplatesRecord =
"SiPixelTemplateDBObjectRcd"
9 SiPixel2DTemplatesRecord =
"SiPixel2DTemplateDBObjectRcd"
10 TrackerLARecord =
"SiPhase2OuterTrackerLorentzAngleRcd"
11 TrackerSimLARecord =
"SiPhase2OuterTrackerLorentzAngleSimRcd"
27 'T15' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T15_v5_mc' ,SiPixelLARecord,connectionString,
"",
"2020-05-05 20:00:00.000"] ), ),
28 'T21' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T15_v5_mc' ,SiPixelLARecord,connectionString,
"",
"2020-05-05 20:00:00.000"] ), ),
29 'T22' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T15_v5_mc' ,SiPixelLARecord,connectionString,
"",
"2020-05-05 20:00:00.000"] ), ),
30 'T23' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T19_v1_mc' ,SiPixelLARecord,connectionString,
"",
"2020-02-23 14:00:00.000"] ), ),
33 allTags[
"LAWidth"] = {
34 'T15' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T15_mc_forWidthEmpty' ,SiPixelLARecord,connectionString,
"forWidth",
"2019-11-05 20:00:00.000"] ), ),
35 'T21' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T15_mc_forWidthEmpty' ,SiPixelLARecord,connectionString,
"forWidth",
"2019-11-05 20:00:00.000"] ), ),
36 'T22' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T15_mc_forWidthEmpty' ,SiPixelLARecord,connectionString,
"forWidth",
"2019-11-05 20:00:00.000"] ), ),
37 'T23' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T19_mc_forWidthEmpty' ,SiPixelLARecord,connectionString,
"forWidth",
"2020-02-23 14:00:00.000"] ), ),
40 allTags[
"LAfromAlignment"] = {
41 'T15' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T15_mc_forWidthEmpty' ,SiPixelLARecord,connectionString,
"fromAlignment",
"2019-11-05 20:00:00.000"] ), ),
42 'T21' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T15_mc_forWidthEmpty' ,SiPixelLARecord,connectionString,
"fromAlignment",
"2019-11-05 20:00:00.000"] ), ),
43 'T22' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T15_mc_forWidthEmpty' ,SiPixelLARecord,connectionString,
"fromAlignment",
"2019-11-05 20:00:00.000"] ), ),
44 'T23' : (
','.
join( [
'SiPixelLorentzAngle_phase2_T19_mc_forWidthEmpty' ,SiPixelLARecord,connectionString,
"fromAlignment",
"2020-02-23 14:00:00.000"] ), ),
48 'T15' : (
','.
join( [
'SiPixelSimLorentzAngle_phase2_T15_v5_mc' ,SiPixelSimLARecord,connectionString,
"",
"2020-05-05 20:00:00.000"] ), ),
49 'T21' : (
','.
join( [
'SiPixelSimLorentzAngle_phase2_T15_v5_mc' ,SiPixelSimLARecord,connectionString,
"",
"2020-05-05 20:00:00.000"] ), ),
50 'T22' : (
','.
join( [
'SiPixelSimLorentzAngle_phase2_T15_v5_mc' ,SiPixelSimLARecord,connectionString,
"",
"2020-05-05 20:00:00.000"] ), ),
51 'T23' : (
','.
join( [
'SiPixelSimLorentzAngle_phase2_T19_v1_mc' ,SiPixelSimLARecord,connectionString,
"",
"2020-02-23 14:00:00.000"] ), ),
54 allTags[
"GenError"] = {
55 'T15' : (
','.
join( [
'SiPixelGenErrorDBObject_phase2_IT_v6.1.5_25x100_v2_mc' ,SiPixelGenErrorRecord,connectionString,
"",
"2020-10-16 10:00:00"] ), ),
56 'T21' : (
','.
join( [
'SiPixelGenErrorDBObject_phase2_IT_v6.1.5_25x100_v2_mc',SiPixelGenErrorRecord,connectionString,
"",
"2020-10-16 10:00:00"] ), ),
57 'T22' : (
','.
join( [
'SiPixelGenErrorDBObject_phase2_IT_v6.1.5_50x50_v4_mc' ,SiPixelGenErrorRecord,connectionString,
"",
"2020-10-19 23:00:00"] ), ),
60 allTags[
"Template"] = {
61 'T15' : (
','.
join( [
'SiPixelTemplateDBObject_phase2_IT_v6.1.5_25x100_v2_mc',SiPixelTemplatesRecord,connectionString,
"",
"2020-10-16 10:00:00"] ), ),
62 'T21' : (
','.
join( [
'SiPixelTemplateDBObject_phase2_IT_v6.1.5_25x100_v2_mc',SiPixelTemplatesRecord,connectionString,
"",
"2020-10-16 10:00:00"] ), ),
63 'T22' : (
','.
join( [
'SiPixelTemplateDBObject_phase2_IT_v6.1.5_50x50_v4_mc' ,SiPixelTemplatesRecord,connectionString,
"",
"2020-10-19 23:00:00"] ), ),
72 'T15' : ( ','.join( [ 'SiPhase2OuterTrackerLorentzAngle_v0_mc' ,TrackerLARecord,connectionString, "", "2020-07-19 17:00:00.000"] ), ), #uH = 0.07/T
73 'T21' : ( ','.join( [ 'SiPhase2OuterTrackerLorentzAngle_v0_mc' ,TrackerLARecord,connectionString, "", "2020-07-19 17:00:00.000"] ), ), #uH = 0.07/T
74 'T22' : ( ','.join( [ 'SiPhase2OuterTrackerLorentzAngle_v0_mc' ,TrackerLARecord,connectionString, "", "2020-07-19 17:00:00.000"] ), ), #uH = 0.07/T
75 'T23' : ( ','.join( [ 'SiPhase2OuterTrackerLorentzAngle_v0_mc' ,TrackerLARecord,connectionString, "", "2020-07-19 17:00:00.000"] ), ), #uH = 0.07/T
78 allTags["SimOTLA"] = {
79 'T15' : ( ','.join( [ 'SiPhase2OuterTrackerLorentzAngleSim_v0_mc' ,TrackerSimLARecord,connectionString, "", "2020-07-19 17:00:00.000"] ), ), #uH = 0.07/T
80 'T21' : ( ','.join( [ 'SiPhase2OuterTrackerLorentzAngleSim_v0_mc' ,TrackerSimLARecord,connectionString, "", "2020-07-19 17:00:00.000"] ), ), #uH = 0.07/T
81 'T22' : ( ','.join( [ 'SiPhase2OuterTrackerLorentzAngleSim_v0_mc' ,TrackerSimLARecord,connectionString, "", "2020-07-19 17:00:00.000"] ), ), #uH = 0.07/T
82 'T23' : ( ','.join( [ 'SiPhase2OuterTrackerLorentzAngleSim_v0_mc' ,TrackerSimLARecord,connectionString, "", "2020-07-19 17:00:00.000"] ), ), #uH = 0.07/T
89 allTags[
"Template2Dnum"] = {
90 'T15' : (
','.
join( [
'SiPixel2DTemplateDBObject_phase2_T15_v0_num' ,SiPixel2DTemplatesRecord,connectionString,
"numerator",
"2019-07-15 12:00:00.000"] ), ),
93 allTags[
"Template2Dden"] = {
94 'T15' : (
','.
join( [
'SiPixel2DTemplateDBObject_phase2_T15_v0_den' ,SiPixel2DTemplatesRecord,connectionString,
"denominator",
"2019-07-15 12:00:00.000"] ), ),
98 activeKeys = [
"LA",
"LAWidth",
"SimLA",
"LAfromAlignment",
"GenError",
"Template"]
101 activeDets = [
"T15",
"T21",
"T22",
"T23"]
103 for det
in activeDets:
105 for key
in activeKeys:
106 if (det
in allTags[key]):
107 appendedTags += allTags[key][det]
110 phase2GTs[
"phase2_realistic_"+det] = (
'phase2_realistic', appendedTags)
114 for key,val
in six.iteritems(phase2GTs):
116 autoCond[key] = ( autoCond[val[0]] )
118 autoCond[key] = ( autoCond[val[0]],) + val[1]