CMS 3D CMS Logo

autoCondHLT.py
Go to the documentation of this file.
1 # https://cms-conddb.cern.ch/browser/#search
2 
3 # default value for all L1T menus
4 connectionString = "frontier://FrontierProd/CMS_CONDITIONS"
5 
6 # L1T legacy (Fake) / stage-1 (Fake1)
7 l1MenuRecord = "L1GtTriggerMenuRcd"
8 l1MenuLabel = ""
9 
10 # L1T stage-2
11 l1tMenuRecord = "L1TUtmTriggerMenuRcd"
12 l1tMenuLabel = ""
13 
14 #The snapshot time has been set as starting point as the one of PR 12095.
15 #Next time you change the customisations, change also the snapshot time in the affected tuple,
16 #and leave unchanged the snapshot times for the other tuples.
17 
18 l1Menus= {
19  'Fake' : ( ','.join( [ 'L1GtTriggerMenu_L1Menu_Collisions2012_v3_mc' , l1MenuRecord,connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
20  'Fake1' : ( ','.join( [ 'L1Menu_Collisions2015_25nsStage1_v5' , l1MenuRecord,connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
21  'Fake2' : ( ','.join( [ 'L1Menu_Collisions2016_v9_m2_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2016-10-06 19:36:53.000"] ), ),
22  'FULL' : ( ','.join( [ 'L1Menu_Collisions2017_v4' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2017-10-06 14:00:00.000"] ), ),
23  'GRun' : ( ','.join( [ 'L1Menu_Collisions2017_v4' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2017-10-06 14:00:00.000"] ), ),
24  '2e34v22' : ( ','.join( [ 'L1Menu_Collisions2017_v2_m6_full_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2017-07-08 11:46:40.000"] ), ),
25  '2e34v31' : ( ','.join( [ 'L1Menu_Collisions2017_v3_m6_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2017-07-24 12:50:00.000"] ), ),
26  '2e34v40' : ( ','.join( [ 'L1Menu_Collisions2017_v4' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2017-10-06 14:00:00.000"] ), ),
27  'XeXe' : ( ','.join( [ 'L1Menu_Collisions2017_v3_m6_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2017-07-24 12:50:00.000"] ), ),
28  'HIon' : ( ','.join( [ 'L1Menu_CollisionsHeavyIons2015_v5_uGT_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2016-03-04 15:00:00.000"] ), ),
29  'PIon' : ( ','.join( [ 'L1Menu_HeavyIons2016_v3_m2_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2016-11-22 11:11:00.000"] ), ),
30  'PRef' : ( ','.join( [ 'L1Menu_pp502Collisions2017_v4_m6_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2017-11-03 18:00:00.000"] ), ),
31 }
32 
33 hltGTs = {
34 
35 # 'symbolic GT' : ('base GT',[('payload1',payload2')])
36 
37  'run1_mc_Fake' : ('run1_mc' ,l1Menus['Fake']),
38  'run2_mc_Fake' : ('run2_mc' ,l1Menus['Fake']),
39  'run2_mc_Fake1' : ('run2_mc_l1stage1' ,l1Menus['Fake1']),
40  'run2_mc_Fake2' : ('run2_mc' ,l1Menus['Fake2']),
41  'run2_mc_2e34v22' : ('phase1_2017_realistic',l1Menus['2e34v22']),
42  'run2_mc_2e34v31' : ('phase1_2017_realistic',l1Menus['2e34v31']),
43  'run2_mc_2e34v40' : ('phase1_2017_realistic',l1Menus['2e34v40']),
44  'run2_mc_XeXe' : ('phase1_2017_realistic',l1Menus['XeXe']),
45  'run2_mc_FULL' : ('phase1_2017_realistic',l1Menus['FULL']),
46  'run2_mc_GRun' : ('phase1_2017_realistic',l1Menus['GRun']),
47  'run2_mc_HIon' : ('run2_mc_hi' ,l1Menus['HIon']),
48  'run2_mc_PIon' : ('phase1_2017_realistic',l1Menus['PIon']),
49  'run2_mc_PRef' : ('phase1_2017_realistic',l1Menus['PRef']),
50 
51  'run1_hlt_Fake' : ('run1_hlt' ,l1Menus['Fake']),
52  'run2_hlt_Fake' : ('run2_hlt_relval' ,l1Menus['Fake']),
53  'run2_hlt_Fake1' : ('run2_hlt_relval' ,l1Menus['Fake1']),
54  'run2_hlt_Fake2' : ('run2_hlt_relval' ,l1Menus['Fake2']),
55  'run2_hlt_2e34v22' : ('run2_hlt_relval' ,l1Menus['2e34v22']),
56  'run2_hlt_2e34v31' : ('run2_hlt_relval' ,l1Menus['2e34v31']),
57  'run2_hlt_2e34v40' : ('run2_hlt_relval' ,l1Menus['2e34v40']),
58  'run2_hlt_XeXe' : ('run2_hlt_relval' ,l1Menus['XeXe']),
59  'run2_hlt_FULL' : ('run2_hlt_relval' ,l1Menus['FULL']),
60  'run2_hlt_GRun' : ('run2_hlt_relval' ,l1Menus['GRun']),
61  'run2_hlt_HIon' : ('run2_hlt_hi' ,l1Menus['HIon']),
62  'run2_hlt_PIon' : ('run2_hlt_relval' ,l1Menus['PIon']),
63  'run2_hlt_PRef' : ('run2_hlt_relval' ,l1Menus['PRef']),
64 
65  'run1_data_Fake' : ('run1_data' ,l1Menus['Fake']),
66  'run2_data_Fake' : ('run2_data_relval' ,l1Menus['Fake']),
67  'run2_data_Fake1' : ('run2_data_relval' ,l1Menus['Fake1']),
68  'run2_data_Fake2' : ('run2_data_relval' ,l1Menus['Fake2']),
69  'run2_data_2e34v22' : ('run2_data_promptlike' ,l1Menus['2e34v22']),
70  'run2_data_2e34v31' : ('run2_data_promptlike' ,l1Menus['2e34v31']),
71  'run2_data_2e34v40' : ('run2_data_promptlike' ,l1Menus['2e34v40']),
72  'run2_data_XeXe' : ('run2_data_promptlike' ,l1Menus['XeXe']),
73  'run2_data_FULL' : ('run2_data_promptlike' ,l1Menus['FULL']),
74  'run2_data_GRun' : ('run2_data_promptlike' ,l1Menus['GRun']),
75  'run2_data_HIon' : ('run2_data_relval' ,l1Menus['HIon']),
76  'run2_data_PIon' : ('run2_data_promptlike' ,l1Menus['PIon']),
77  'run2_data_PRef' : ('run2_data_promptlike' ,l1Menus['PRef']),
78 
79 }
80 
81 def autoCondHLT(autoCond):
82  for key,val in hltGTs.iteritems():
83  if len(val)==1 :
84  autoCond[key] = ( autoCond[val[0]] )
85  else:
86  autoCond[key] = ( autoCond[val[0]],) + val[1]
87 
88  return autoCond
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def autoCondHLT(autoCond)
Definition: autoCondHLT.py:81