CMS 3D CMS Logo

autoAlca.py
Go to the documentation of this file.
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",
16 
17  "Express" : "SiStripCalZeroBias+TkAlMinBias+SiStripPCLHistos+SiStripCalMinBias+SiStripCalMinBiasAAG+DtCalib+Hotline+LumiPixelsMinBias",
18  "ExpressCosmics" : "SiStripPCLHistos+SiStripCalZeroBias+TkAlCosmics0T+DtCalibCosmics",
19  "ExpressAlignment":"TkAlMinBias",
20  # These two cannot run on RAW, they are just meant to run on the dedicated AlcaRAW so they do not enter the allForPrompt list
21  "AlCaP0" : "",
22  # ---------------------------------------------------------------------------------------------------------------------------
23  "HcalNZS" : "HcalCalMinBias",
24  # This is in the AlCaRecoMatrix, but no RelVals are produced
25  # 'TestEnablesTracker' : 'TkAlLAS'
26  # 'TestEnablesEcalHcal' : 'HcalCalPedestal'
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"
35 
36  }
37 
38 # this matrix will be used for the legacy reprocessing of the 2016 2016B-H dataset;
39 # with the exception of ZeroBias, it was also used for the 23Sept16 reprocessing of 2016B-G
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'
61  }
62 
63 def buildList(pdList, matrix):
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."""
65  alCaRecoList = []
66  for pd in pdList:
67  alCaRecoList.extend(matrix[pd].split("+"))
68  # remove duplicates converting to a set
69  alCaRecoList = set(alCaRecoList)
70  stringList = ''
71  for alCaReco in alCaRecoList:
72  if stringList == '':
73  stringList += alCaReco
74  else:
75  stringList += '+'+alCaReco
76  return stringList
77 
78 # Update the lists anytime a new PD is added to the matrix
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)
Definition: autoAlca.py:63
double split
Definition: MVATrainer.cc:139