-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
autoCondHLT.py
68 lines (55 loc) · 3.52 KB
/
autoCondHLT.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# https://cms-conddb.cern.ch/browser/#search
# default value for all L1T menus
connectionString = "frontier://FrontierProd/CMS_CONDITIONS"
# L1T legacy (Fake) / stage-1 (Fake1)
l1MenuRecord = "L1GtTriggerMenuRcd"
l1MenuLabel = ""
# L1T stage-2
l1tMenuRecord = "L1TUtmTriggerMenuRcd"
l1tMenuLabel = ""
#The snapshot time has been set as starting point as the one of PR 12095.
#Next time you change the customisations, change also the snapshot time in the affected tuple,
#and leave unchanged the snapshot times for the other tuples.
l1Menus= {
'Fake' : ( ','.join( [ 'L1GtTriggerMenu_L1Menu_Collisions2012_v3_mc' , l1MenuRecord,connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
'Fake1': ( ','.join( [ 'L1Menu_Collisions2015_25nsStage1_v5' , l1MenuRecord,connectionString, l1MenuLabel, "2015-10-26 12:00:00.000"] ), ),
'FULL' : ( ','.join( [ 'L1Menu_Collisions2016_dev_v5_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2016-04-15 10:00:00.000"] ), ),
'GRun' : ( ','.join( [ 'L1Menu_Collisions2016_dev_v5_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2016-04-15 10:00:00.000"] ), ),
'HIon' : ( ','.join( [ 'L1Menu_CollisionsHeavyIons2015_v5_uGT_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2016-03-04 15:00:00.000"] ), ),
'PIon' : ( ','.join( [ 'L1Menu_Collisions2016_dev_v5_xml' ,l1tMenuRecord,connectionString,l1tMenuLabel, "2016-04-15 10:00:00.000"] ), ),
'PRef' : ( ','.join( [ 'L1Menu_Collisions2015_5TeV_pp_reference_v5_uGT_v2_mc_xml',l1tMenuRecord,connectionString,l1tMenuLabel, "2016-03-04 15:00:00.000"] ), ),
}
hltGTs = {
# 'symbolic GT' : ('base GT',[('payload1',payload2')])
'run1_mc_Fake' : ('run1_mc' ,l1Menus['Fake']),
'run2_mc_Fake' : ('run2_mc' ,l1Menus['Fake']),
'run2_mc_Fake1' : ('run2_mc' ,l1Menus['Fake1']),
'run2_mc_FULL' : ('run2_mc' ,l1Menus['FULL']),
'run2_mc_GRun' : ('run2_mc' ,l1Menus['GRun']),
'run2_mc_HIon' : ('run2_mc_hi' ,l1Menus['HIon']),
'run2_mc_PIon' : ('run2_mc' ,l1Menus['PIon']),
'run2_mc_PRef' : ('run2_mc' ,l1Menus['PRef']),
'run1_hlt_Fake' : ('run1_hlt' ,l1Menus['Fake']),
'run2_hlt_Fake' : ('run2_hlt' ,l1Menus['Fake']),
'run2_hlt_Fake1' : ('run2_hlt' ,l1Menus['Fake1']),
'run2_hlt_FULL' : ('run2_hlt' ,l1Menus['FULL']),
'run2_hlt_GRun' : ('run2_hlt' ,l1Menus['GRun']),
'run2_hlt_HIon' : ('run2_hlt_hi' ,l1Menus['HIon']),
'run2_hlt_PIon' : ('run2_hlt' ,l1Menus['PIon']),
'run2_hlt_PRef' : ('run2_hlt' ,l1Menus['PRef']),
'run1_data_Fake' : ('run1_data' ,l1Menus['Fake']),
'run2_data_Fake' : ('run2_data' ,l1Menus['Fake']),
'run2_data_Fake1' : ('run2_data' ,l1Menus['Fake1']),
'run2_data_FULL' : ('run2_data' ,l1Menus['FULL']),
'run2_data_GRun' : ('run2_data' ,l1Menus['GRun']),
'run2_data_HIon' : ('run2_data' ,l1Menus['HIon']),
'run2_data_PIon' : ('run2_data' ,l1Menus['PIon']),
'run2_data_PRef' : ('run2_data' ,l1Menus['PRef']),
}
def autoCondHLT(autoCond):
for key,val in hltGTs.iteritems():
if len(val)==1 :
autoCond[key] = ( autoCond[val[0]] )
else:
autoCond[key] = ( autoCond[val[0]],) + val[1]
return autoCond