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 l1MenuRecord = "L1GtTriggerMenuRcd"
6 l1MenuLabel = ""
7 
8 #The snapshot time has been set as starting point as the one of PR 12095.
9 #Next time you change the customisations, change also the snapshot time in the affected tuple,
10 #and leave unchanged the snapshot times for the other tuples.
11 
12 l1Menus= {
13  'Fake' : ( ','.join( [ 'L1GtTriggerMenu_L1Menu_Collisions2012_v3_mc', l1MenuRecord, connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
14  'FULL' : ( ','.join( [ 'L1Menu_Collisions2015_25nsStage1_v5', l1MenuRecord, connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
15  'GRun' : ( ','.join( [ 'L1Menu_Collisions2015_25nsStage1_v5', l1MenuRecord, connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
16  '25ns14e33_v1' : ( ','.join( [ 'L1Menu_Collisions2015_25ns_v2_L1T_Scales_20141121_Imp0_0x1030', l1MenuRecord, connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
17  '25ns14e33_v3' : ( ','.join( [ 'L1Menu_Collisions2015_25nsStage1_v4', l1MenuRecord, connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
18  '25ns14e33_v4' : ( ','.join( [ 'L1Menu_Collisions2015_25nsStage1_v5', l1MenuRecord, connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
19  'HIon' : ( ','.join( [ 'L1Menu_CollisionsHeavyIons2011_v0_nobsc_notau_centrality_q2_singletrack.v1', l1MenuRecord, connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
20  'PIon' : ( ','.join( [ 'L1Menu_Collisions2015_25nsStage1_v5', l1MenuRecord, connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
21  '50nsGRun' : ( ','.join( [ 'L1Menu_Collisions2015_50nsGct_v4', l1MenuRecord, connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
22  '50ns_5e33_v1' : ( ','.join( [ 'L1Menu_Collisions2015_50nsGct_v1_L1T_Scales_20141121_Imp0_0x1030', l1MenuRecord, connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
23  '50ns_5e33_v3' : ( ','.join( [ 'L1Menu_Collisions2015_50nsGct_v4', l1MenuRecord, connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
24  'LowPU' : ( ','.join( [ 'L1Menu_Collisions2015_lowPU_v4', l1MenuRecord, connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
25  '25nsLowPU' : ( ','.join( [ 'L1Menu_Collisions2015_lowPU_25nsStage1_v6', l1MenuRecord, connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
26 }
27 
28 hltGTs = {
29 
30 # 'symbolic GT' : ('base GT',[('payload1',payload2')])
31 
32  'run1_mc_Fake' : ('run1_mc' ,l1Menus['Fake']),
33  'run2_mc_FULL' : ('run2_mc' ,l1Menus['FULL']),
34  'run2_mc_GRun' : ('run2_mc' ,l1Menus['GRun']),
35  'run2_mc_25ns14e33_v1' : ('run2_mc' ,l1Menus['25ns14e33_v1']),
36  'run2_mc_25ns14e33_v3' : ('run2_mc' ,l1Menus['25ns14e33_v3']),
37  'run2_mc_25ns14e33_v4' : ('run2_mc' ,l1Menus['25ns14e33_v4']),
38  'run2_mc_HIon' : ('run2_mc_hi' ,l1Menus['HIon']),
39  'run2_mc_PIon' : ('run2_mc' ,l1Menus['PIon']),
40  'run2_mc_50nsGRun' : ('run2_mc_50ns' ,l1Menus['50nsGRun']),
41  'run2_mc_50ns_5e33_v1' : ('run2_mc_50ns' ,l1Menus['50ns_5e33_v1']),
42  'run2_mc_50ns_5e33_v3' : ('run2_mc_50ns' ,l1Menus['50ns_5e33_v3']),
43  'run2_mc_LowPU' : ('run2_mc_50ns' ,l1Menus['LowPU']),
44  'run2_mc_25nsLowPU' : ('run2_mc' ,l1Menus['25nsLowPU']),
45 
46  'run1_hlt_Fake' : ('run1_hlt' ,l1Menus['Fake']),
47  'run2_hlt_FULL' : ('run2_hlt' ,l1Menus['FULL']),
48  'run2_hlt_GRun' : ('run2_hlt' ,l1Menus['GRun']),
49  'run2_hlt_25ns14e33_v1' : ('run2_hlt' ,l1Menus['25ns14e33_v1']),
50  'run2_hlt_25ns14e33_v3' : ('run2_hlt' ,l1Menus['25ns14e33_v3']),
51  'run2_hlt_25ns14e33_v4' : ('run2_hlt' ,l1Menus['25ns14e33_v4']),
52  'run2_hlt_HIon' : ('run2_hlt' ,l1Menus['HIon']),
53  'run2_hlt_PIon' : ('run2_hlt' ,l1Menus['PIon']),
54  'run2_hlt_50nsGRun' : ('run2_hlt' ,l1Menus['50nsGRun']),
55  'run2_hlt_50ns_5e33_v1' : ('run2_hlt' ,l1Menus['50ns_5e33_v1']),
56  'run2_hlt_50ns_5e33_v3' : ('run2_hlt' ,l1Menus['50ns_5e33_v3']),
57  'run2_hlt_LowPU' : ('run2_hlt' ,l1Menus['LowPU']),
58  'run2_hlt_25nsLowPU' : ('run2_hlt' ,l1Menus['25nsLowPU']),
59 
60  'run1_data_Fake' : ('run1_data' ,l1Menus['Fake']),
61  'run2_data_FULL' : ('run2_data' ,l1Menus['FULL']),
62  'run2_data_GRun' : ('run2_data' ,l1Menus['GRun']),
63  'run2_data_25ns14e33_v1' : ('run2_data' ,l1Menus['25ns14e33_v1']),
64  'run2_data_25ns14e33_v3' : ('run2_data' ,l1Menus['25ns14e33_v3']),
65  'run2_data_25ns14e33_v4' : ('run2_data' ,l1Menus['25ns14e33_v4']),
66  'run2_data_HIon' : ('run2_data' ,l1Menus['HIon']),
67  'run2_data_PIon' : ('run2_data' ,l1Menus['PIon']),
68  'run2_data_50nsGRun' : ('run2_data' ,l1Menus['50nsGRun']),
69  'run2_data_50ns_5e33_v1' : ('run2_data' ,l1Menus['50ns_5e33_v1']),
70  'run2_data_50ns_5e33_v3' : ('run2_data' ,l1Menus['50ns_5e33_v3']),
71  'run2_data_LowPU' : ('run2_data' ,l1Menus['LowPU']),
72  'run2_data_25nsLowPU' : ('run2_data' ,l1Menus['25nsLowPU']),
73 
74 }
75 
76 def autoCondHLT(autoCond):
77  for key,val in hltGTs.iteritems():
78  if len(val)==1 :
79  autoCond[key] = ( autoCond[val[0]] )
80  else:
81  autoCond[key] = ( autoCond[val[0]],) + val[1]
82  return autoCond
def autoCondHLT
Definition: autoCondHLT.py:76
static std::string join(char **cmd)
Definition: RemoteFile.cc:18