test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  'FULL' : ( ','.join( [ 'L1Menu_Collisions2016_v9_m2_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2016-10-06 19:36:53.000"] ), ),
22  'GRun' : ( ','.join( [ 'L1Menu_Collisions2016_v9_m2_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2016-10-06 19:36:53.000"] ), ),
23  '25ns15e33_v4' : ( ','.join( [ 'L1Menu_Collisions2016_v6r5_ugt_1board_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2016-08-23 20:00:00.000"] ), ),
24  '25ns10e33_v2' : ( ','.join( [ 'L1Menu_Collisions2016_v4_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2016-05-24 14:55:00.000"] ), ),
25  'HIon' : ( ','.join( [ 'L1Menu_CollisionsHeavyIons2015_v5_uGT_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2016-03-04 15:00:00.000"] ), ),
26  'PIon' : ( ','.join( [ 'L1Menu_HeavyIons2016_v0_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2016-08-19 08:40:00.000"] ), ),
27  'PRef' : ( ','.join( [ 'L1Menu_Collisions2015_5TeV_pp_reference_v5_uGT_v2_mc_xml',l1tMenuRecord,connectionString,l1tMenuLabel, "2016-03-04 15: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' ,l1Menus['Fake1']),
37  'run2_mc_FULL' : ('run2_mc' ,l1Menus['FULL']),
38  'run2_mc_GRun' : ('run2_mc' ,l1Menus['GRun']),
39  'run2_mc_25ns15e33_v4' : ('run2_mc' ,l1Menus['25ns15e33_v4']),
40  'run2_mc_25ns10e33_v2' : ('run2_mc' ,l1Menus['25ns10e33_v2']),
41  'run2_mc_HIon' : ('run2_mc_hi' ,l1Menus['HIon']),
42  'run2_mc_PIon' : ('run2_mc_pa' ,l1Menus['PIon']),
43  'run2_mc_PRef' : ('run2_mc' ,l1Menus['PRef']),
44 
45  'run1_hlt_Fake' : ('run1_hlt' ,l1Menus['Fake']),
46  'run2_hlt_Fake' : ('run2_hlt_relval' ,l1Menus['Fake']),
47  'run2_hlt_Fake1' : ('run2_hlt_relval' ,l1Menus['Fake1']),
48  'run2_hlt_FULL' : ('run2_hlt_relval' ,l1Menus['FULL']),
49  'run2_hlt_GRun' : ('run2_hlt_relval' ,l1Menus['GRun']),
50  'run2_hlt_25ns15e33_v4' : ('run2_hlt_relval' ,l1Menus['25ns15e33_v4']),
51  'run2_hlt_25ns10e33_v2' : ('run2_hlt_relval' ,l1Menus['25ns10e33_v2']),
52  'run2_hlt_HIon' : ('run2_hlt_hi' ,l1Menus['HIon']),
53  'run2_hlt_PIon' : ('run2_hlt_relval' ,l1Menus['PIon']),
54  'run2_hlt_PRef' : ('run2_hlt_relval' ,l1Menus['PRef']),
55 
56  'run1_data_Fake' : ('run1_data' ,l1Menus['Fake']),
57  'run2_data_Fake' : ('run2_data_relval' ,l1Menus['Fake']),
58  'run2_data_Fake1' : ('run2_data_relval' ,l1Menus['Fake1']),
59  'run2_data_FULL' : ('run2_data_relval' ,l1Menus['FULL']),
60  'run2_data_GRun' : ('run2_data_relval' ,l1Menus['GRun']),
61  'run2_data_25ns15e33_v4' : ('run2_data_relval' ,l1Menus['25ns15e33_v4']),
62  'run2_data_25ns10e33_v2' : ('run2_data_relval' ,l1Menus['25ns10e33_v2']),
63  'run2_data_HIon' : ('run2_data' ,l1Menus['HIon']),
64  'run2_data_PIon' : ('run2_data_relval' ,l1Menus['PIon']),
65  'run2_data_PRef' : ('run2_data_relval' ,l1Menus['PRef']),
66 
67 }
68 
69 def autoCondHLT(autoCond):
70  for key,val in hltGTs.iteritems():
71  if len(val)==1 :
72  autoCond[key] = ( autoCond[val[0]] )
73  else:
74  autoCond[key] = ( autoCond[val[0]],) + val[1]
75 
76  return autoCond
def autoCondHLT
Definition: autoCondHLT.py:69
static std::string join(char **cmd)
Definition: RemoteFile.cc:18