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  'HIon' : ( ','.join( [ 'L1Menu_CollisionsHeavyIons2015_v5_mc' , l1MenuRecord, connectionString, l1MenuLabel, "2015-11-26 20:00:00.000"] ), ),
17  'PIon' : ( ','.join( [ 'L1Menu_Collisions2015_25nsStage1_v5' , l1MenuRecord, connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
18  'PRef' : ( ','.join( [ 'L1Menu_Collisions2015_5TeV_pp_reference_v5_mc', l1MenuRecord, connectionString, l1MenuLabel, "2015-11-25 20:00:00.000"] ), ),
19 }
20 
21 hltGTs = {
22 
23 # 'symbolic GT' : ('base GT',[('payload1',payload2')])
24 
25  'run1_mc_Fake' : ('run1_mc' ,l1Menus['Fake']),
26  'run2_mc_Fake' : ('run2_mc' ,l1Menus['Fake']),
27  'run2_mc_FULL' : ('run2_mc' ,l1Menus['FULL']),
28  'run2_mc_GRun' : ('run2_mc' ,l1Menus['GRun']),
29  'run2_mc_HIon' : ('run2_mc_hi' ,l1Menus['HIon']),
30  'run2_mc_PIon' : ('run2_mc' ,l1Menus['PIon']),
31  'run2_mc_PRef' : ('run2_mc' ,l1Menus['PRef']),
32 
33  'run1_hlt_Fake' : ('run1_hlt' ,l1Menus['Fake']),
34  'run2_hlt_Fake' : ('run2_hlt' ,l1Menus['Fake']),
35  'run2_hlt_FULL' : ('run2_hlt' ,l1Menus['FULL']),
36  'run2_hlt_GRun' : ('run2_hlt' ,l1Menus['GRun']),
37  'run2_hlt_HIon' : ('run2_hlt_hi' ,l1Menus['HIon']),
38  'run2_hlt_PIon' : ('run2_hlt' ,l1Menus['PIon']),
39  'run2_hlt_PRef' : ('run2_hlt' ,l1Menus['PRef']),
40 
41  'run1_data_Fake' : ('run1_data' ,l1Menus['Fake']),
42  'run2_data_Fake' : ('run2_data' ,l1Menus['Fake']),
43  'run2_data_FULL' : ('run2_data' ,l1Menus['FULL']),
44  'run2_data_GRun' : ('run2_data' ,l1Menus['GRun']),
45  'run2_data_HIon' : ('run2_data' ,l1Menus['HIon']),
46  'run2_data_PIon' : ('run2_data' ,l1Menus['PIon']),
47  'run2_data_PRef' : ('run2_data' ,l1Menus['PRef']),
48 
49 }
50 
51 def autoCondHLT(autoCond):
52  for key,val in hltGTs.iteritems():
53  if len(val)==1 :
54  autoCond[key] = ( autoCond[val[0]] )
55  else:
56  autoCond[key] = ( autoCond[val[0]],) + val[1]
57  return autoCond
def autoCondHLT
Definition: autoCondHLT.py:51
static std::string join(char **cmd)
Definition: RemoteFile.cc:18