1 AlCaRecoMatrix = {
"AlCaLumiPixels" :
"AlCaPCCZeroBias+AlCaPCCRandom",
2 "Charmonium" :
"TkAlJpsiMuMu",
3 "Commissioning" :
"HcalCalIsoTrk+HcalCalIsolatedBunchSelector+TkAlMinBias+SiStripCalMinBias",
4 "Cosmics" :
"TkAlCosmics0T+MuAlGlobalCosmics+DtCalibCosmics",
5 "DoubleEG" :
"EcalCalZElectron+EcalUncalZElectron+HcalCalIterativePhiSym+HcalCalIsoTrkFilter",
6 "DoubleMuon" :
"TkAlZMuMu+MuAlCalIsolatedMu+MuAlOverlaps+MuAlZMuMu+DtCalib",
7 "HLTPhysics" :
"TkAlMinBias",
8 "JetHT" :
"HcalCalIsoTrkFilter+HcalCalIsolatedBunchFilter",
9 "MinimumBias" :
"SiStripCalZeroBias+SiStripCalMinBias+TkAlMinBias",
10 "MuOnia" :
"TkAlUpsilonMuMu",
11 "NoBPTX" :
"TkAlCosmicsInCollisions",
12 "SingleElectron" :
"EcalUncalWElectron+EcalUncalZElectron+HcalCalIterativePhiSym+EcalESAlign",
13 "SingleMuon" :
"TkAlMuonIsolated+DtCalib+MuAlCalIsolatedMu+MuAlOverlaps+MuAlZMuMu+HcalCalHO+HcalCalIterativePhiSym+HcalCalHBHEMuonFilter",
14 "SinglePhoton" :
"HcalCalGammaJet",
15 "ZeroBias" :
"SiStripCalZeroBias+TkAlMinBias+LumiPixelsMinBias+SiStripCalMinBias+AlCaPCCZeroBiasFromRECO",
17 "Express" :
"SiStripCalZeroBias+TkAlMinBias+SiStripPCLHistos+SiStripCalMinBias+SiStripCalMinBiasAAG+DtCalib+Hotline+LumiPixelsMinBias",
18 "ExpressCosmics" :
"SiStripPCLHistos+SiStripCalZeroBias+TkAlCosmics0T+DtCalibCosmics",
19 "ExpressAlignment":
"TkAlMinBias",
23 "HcalNZS" :
"HcalCalMinBias",
27 "MET" :
"HcalCalNoise",
28 "SingleMu" :
"MuAlCalIsolatedMu+MuAlOverlaps+TkAlMuonIsolated+DtCalib+MuAlZMuMu+HcalCalHO",
29 "DoubleMu" :
"MuAlCalIsolatedMu+MuAlOverlaps+DtCalib+TkAlZMuMu",
30 "DoubleMuParked" :
"MuAlCalIsolatedMu+MuAlOverlaps+DtCalib+TkAlZMuMu",
31 "MuOniaParked" :
"TkAlJpsiMuMu+TkAlUpsilonMuMu",
32 "DoubleElectron" :
"EcalCalZElectron+EcalUncalZElectron+HcalCalIsoTrkFilter",
33 "StreamExpress" :
"SiStripCalZeroBias+TkAlMinBias+SiStripPCLHistos+SiStripCalMinBias+SiStripCalMinBiasAAG+DtCalib+Hotline+LumiPixelsMinBias",
34 "StreamExpressHI" :
"SiStripCalZeroBias+TkAlMinBiasHI+SiStripPCLHistos+SiStripCalMinBias+SiStripCalMinBiasAAG+DtCalibHI" 40 AlCaRecoMatrixRereco = {
'AlCaLumiPixels' :
'LumiPixels',
41 'Charmonium' :
'TkAlJpsiMuMu',
42 'Commissioning' :
'TkAlMinBias+SiStripCalMinBias+HcalCalIsoTrk+HcalCalIsolatedBunchSelector',
43 'Cosmics' :
'TkAlCosmics0T+MuAlGlobalCosmics+HcalCalHOCosmics+DtCalibCosmics',
44 'DoubleEG' :
'EcalUncalZElectron+HcalCalIterativePhiSym+HcalCalIsoTrkFilter',
45 'DoubleElectron' :
'EcalUncalZElectron+HcalCalIsoTrkFilter',
46 'DoubleMu' :
'MuAlCalIsolatedMu+MuAlOverlaps+DtCalib+TkAlZMuMu+MuAlZMuMu+TkAlZMuMu+TkAlJpsiMuMu+TkAlUpsilonMuMu+HcalCalIsoTrkFilter',
47 'DoubleMuon' :
'TkAlZMuMu+MuAlCalIsolatedMu+MuAlOverlaps+MuAlZMuMu+DtCalib',
48 'DoubleMuParked' :
'MuAlCalIsolatedMu+MuAlOverlaps+DtCalib+TkAlZMuMu',
49 'HLTPhysics' :
'SiStripCalMinBias+TkAlMinBias+HcalCalIsoTrkFilter',
50 'JetHT' :
'HcalCalDijets+HcalCalIsoTrkFilter+HcalCalIsolatedBunchFilter',
51 'NoBPTX' :
'TkAlCosmicsInCollisions',
52 'MET' :
'HcalCalNoise',
53 'MinimumBias' :
'SiStripCalMinBias+TkAlMinBias',
54 'MuOnia' :
'TkAlUpsilonMuMu',
55 'SingleElectron' :
'EcalUncalWElectron+EcalUncalZElectron+EcalESAlign+HcalCalIterativePhiSym+HcalCalIsoTrkFilter',
56 'SingleMu' :
'MuAlCalIsolatedMu+MuAlOverlaps+TkAlMuonIsolated+DtCalib+MuAlZMuMu+HcalCalHO',
57 'SingleMuon' :
'TkAlMuonIsolated+DtCalib+MuAlCalIsolatedMu+MuAlOverlaps+MuAlZMuMu+HcalCalIterativePhiSym+HcalCalHO',
58 'SinglePhoton' :
'HcalCalGammaJet',
59 'ZeroBias' :
'SiStripCalZeroBias+TkAlMinBias+LumiPixelsMinBias+SiStripCalMinBias+SiStripCalMinBiasAfterAbortGap',
60 'HcalNZS' :
'HcalCalMinBias' 64 """Takes a list of primary datasets (PDs) and the AlCaRecoMatrix (a dictinary) and returns a string with all the AlCaRecos for the selected PDs separated by the '+' character without duplicates.""" 67 alCaRecoList.extend(matrix[pd].
split(
"+"))
69 alCaRecoList = set(alCaRecoList)
71 for alCaReco
in alCaRecoList:
73 stringList += alCaReco
75 stringList +=
'+'+alCaReco
79 autoAlca = {
'allForPrompt' :
buildList([
'Charmonium',
'Commissioning',
'DoubleEG',
'DoubleElectron',
'DoubleMu',
'DoubleMuParked',
'DoubleMuon',
'HLTPhysics',
'HcalNZS',
'JetHT',
'MET',
'MinimumBias',
'MuOnia',
'MuOniaParked',
'NoBPTX' ,
'SingleElectron',
'SingleMu',
'SingleMuon',
'SinglePhoton',
'ZeroBias'], AlCaRecoMatrix),
80 'allForExpress' :
buildList([
'StreamExpress'], AlCaRecoMatrix),
81 'allForExpressHI' :
buildList([
'StreamExpressHI'], AlCaRecoMatrix),
82 'allForPromptCosmics' :
buildList([
'Cosmics'], AlCaRecoMatrix),
83 'allForExpressCosmics' :
buildList([
'ExpressCosmics'], AlCaRecoMatrix) }
84 autoAlca.update(AlCaRecoMatrix)
def buildList(pdList, matrix)