CMS 3D CMS Logo

autoCondHLT.py
Go to the documentation of this file.
1 # https://cms-conddb.cern.ch/browser/#search
2 # default value for all L1T menus
3 connectionString = "frontier://FrontierProd/CMS_CONDITIONS"
4 
5 # L1T legacy (Fake) / stage-1 (Fake1)
6 l1MenuRecord = "L1GtTriggerMenuRcd"
7 l1MenuLabel = ""
8 
9 # L1T stage-2
10 l1tMenuRecord = "L1TUtmTriggerMenuRcd"
11 l1tMenuLabel = ""
12 
13 #The snapshot time has been set as starting point as the one of PR 12095.
14 #Next time you change the customisations, change also the snapshot time in the affected tuple,
15 #and leave unchanged the snapshot times for the other tuples.
16 
17 l1Menus = {
18  'Fake' : ( ','.join( [ 'L1GtTriggerMenu_L1Menu_Collisions2012_v3_mc' , l1MenuRecord,connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
19  'Fake1' : ( ','.join( [ 'L1Menu_Collisions2015_25nsStage1_v5' , l1MenuRecord,connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
20  'Fake2' : ( ','.join( [ 'L1Menu_Collisions2016_v9_m2_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2016-10-06 19:36:53.000"] ), ),
21  'FULL' : ( ','.join( [ 'L1Menu_Collisions2024_v1_1_0_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2024-03-20 12:00:00.000"] ), ),
22  'GRun' : ( ','.join( [ 'L1Menu_Collisions2024_v1_1_0_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2024-03-20 12:00:00.000"] ), ),
23  '2024v11' : ( ','.join( [ 'L1Menu_Collisions2024_v1_1_0_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2024-03-20 12:00:00.000"] ), ),
24  'HIon' : ( ','.join( [ 'L1Menu_CollisionsHeavyIons2023_v1_1_5_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2023-10-24 16:59:55.000"] ), ),
25  'PIon' : ( ','.join( [ 'L1Menu_HeavyIons2016_v3_m2_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2016-11-22 11:11:00.000"] ), ),
26  'PRef' : ( ','.join( [ 'L1Menu_CollisionsPPRef2023_v1_1_2_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2023-09-21 19:00:00.000"] ), ),
27  'Special' : ( ','.join( [ 'L1Menu_Collisions2024_v1_1_0_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2024-03-20 12:00:00.000"] ), ),
28 }
29 
30 hltGTs = {
31 
32 # 'symbolic GT' : ('base GT',[('payload1',payload2')])
33 
34  'run1_mc_Fake' : ('run1_mc' ,l1Menus['Fake']),
35  'run2_mc_Fake' : ('run2_mc' ,l1Menus['Fake']),
36  'run2_mc_Fake1' : ('run2_mc_l1stage1' ,l1Menus['Fake1']),
37  'run2_mc_Fake2' : ('run2_mc' ,l1Menus['Fake2']),
38  'run3_mc_FULL' : ('phase1_2024_realistic' ,l1Menus['FULL']),
39  'run3_mc_GRun' : ('phase1_2024_realistic' ,l1Menus['GRun']),
40  'run3_mc_2024v11' : ('phase1_2024_realistic' ,l1Menus['2024v11']),
41  'run3_mc_HIon' : ('phase1_2023_realistic_hi',l1Menus['HIon']),
42  'run3_mc_PIon' : ('phase1_2024_realistic' ,l1Menus['PIon']),
43  'run3_mc_PRef' : ('phase1_2024_realistic' ,l1Menus['PRef']),
44  'run3_mc_Special' : ('phase1_2024_realistic' ,l1Menus['Special']),
45 
46  'run1_hlt_Fake' : ('run2_hlt_relval' ,l1Menus['Fake']),
47  'run2_hlt_Fake' : ('run2_hlt_relval' ,l1Menus['Fake']),
48  'run2_hlt_Fake1' : ('run2_hlt_relval' ,l1Menus['Fake1']),
49  'run2_hlt_Fake2' : ('run2_hlt_relval' ,l1Menus['Fake2']),
50  'run3_hlt_FULL' : ('run3_hlt' ,l1Menus['FULL']),
51  'run3_hlt_GRun' : ('run3_hlt' ,l1Menus['GRun']),
52  'run3_hlt_2024v11' : ('run3_hlt' ,l1Menus['2024v11']),
53  'run3_hlt_HIon' : ('run3_hlt' ,l1Menus['HIon']),
54  'run3_hlt_PIon' : ('run3_hlt' ,l1Menus['PIon']),
55  'run3_hlt_PRef' : ('run3_hlt' ,l1Menus['PRef']),
56  'run3_hlt_Special' : ('run3_hlt' ,l1Menus['Special']),
57 
58  'run1_data_Fake' : ('run2_data' ,l1Menus['Fake']),
59  'run2_data_Fake' : ('run2_data' ,l1Menus['Fake']),
60  'run2_data_Fake1' : ('run2_data' ,l1Menus['Fake1']),
61  'run2_data_Fake2' : ('run2_data' ,l1Menus['Fake2']),
62  'run3_data_FULL' : ('run3_data_prompt' ,l1Menus['FULL']),
63  'run3_data_GRun' : ('run3_data_prompt' ,l1Menus['GRun']),
64  'run3_data_2024v11' : ('run3_data_prompt' ,l1Menus['2024v11']),
65  'run3_data_HIon' : ('run3_data_prompt' ,l1Menus['HIon']),
66  'run3_data_PIon' : ('run3_data_prompt' ,l1Menus['PIon']),
67  'run3_data_PRef' : ('run3_data_prompt' ,l1Menus['PRef']),
68  'run3_data_Special' : ('run3_data_prompt' ,l1Menus['Special']),
69 
70 }
71 
72 def autoCondHLT(autoCond):
73  for key,val in hltGTs.items():
74  if len(val)==1 :
75  autoCond[key] = ( autoCond[val[0]] )
76  else:
77  autoCond[key] = ( autoCond[val[0]],) + val[1]
78 
79  return autoCond
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
def autoCondHLT(autoCond)
Definition: autoCondHLT.py:72