CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
autoAlca.py
Go to the documentation of this file.
1 AlCaRecoMatrix = {'AlCaLumiPixels' : 'LumiPixels',
2  'Charmonium' : 'TkAlJpsiMuMu',
3  'Commissioning' : 'HcalCalIsoTrk',
4  'Cosmics' : 'TkAlCosmics0T+MuAlGlobalCosmics+HcalCalHOCosmics+DtCalibCosmics',
5  'DoubleEG' : 'EcalCalZElectron+EcalUncalZElectron+HcalCalIterativePhiSym+HcalCalIsoTrkFilter',
6  'DoubleElectron' : 'EcalCalZElectron+EcalUncalZElectron+HcalCalIsoTrkFilter',
7  'DoubleMu' : 'MuAlCalIsolatedMu+MuAlOverlaps+DtCalib+TkAlZMuMu',
8  'DoubleMuon' : 'TkAlZMuMu+MuAlCalIsolatedMu+MuAlOverlaps+MuAlZMuMu+DtCalib',
9  'DoubleMuParked' : 'MuAlCalIsolatedMu+MuAlOverlaps+DtCalib+TkAlZMuMu',
10  'HLTPhysics' : 'SiStripCalMinBias+TkAlMinBias+HcalCalIsoTrkFilter',
11  'JetHT' : 'HcalCalDijets+HcalCalIsoTrkFilter',
12  'MET' : 'HcalCalNoise',
13  'MinimumBias' : 'SiStripCalMinBias+TkAlMinBias',
14  'MuOnia' : 'TkAlJpsiMuMu+TkAlUpsilonMuMu',
15  'MuOniaParked' : 'TkAlJpsiMuMu+TkAlUpsilonMuMu',
16  'SingleElectron' : 'EcalCalWElectron+EcalUncalWElectron+EcalCalZElectron+EcalUncalZElectron+EcalESAlign+HcalCalIterativePhiSym',
17  'SingleMu' : 'MuAlCalIsolatedMu+MuAlOverlaps+TkAlMuonIsolated+DtCalib+MuAlZMuMu+HcalCalHO',
18  'SingleMuon' : 'TkAlMuonIsolated+DtCalib+MuAlCalIsolatedMu+MuAlOverlaps+MuAlZMuMu+HcalCalIterativePhiSym',
19  'SinglePhoton' : 'HcalCalGammaJet',
20  'ZeroBias' : 'SiStripCalZeroBias+TkAlMinBias+LumiPixelsMinBias+SiStripCalMinBias',
21  'StreamExpress' : 'SiStripCalZeroBias+TkAlMinBias+SiStripPCLHistos+SiStripCalMinBias+SiStripCalMinBiasAfterAbortGap+DtCalib+Hotline+LumiPixelsMinBias',
22  'StreamExpressHI': 'SiStripCalZeroBias+TkAlMinBiasHI+SiStripPCLHistos+SiStripCalMinBias+SiStripCalMinBiasAfterAbortGap+DtCalibHI',
23  'ExpressCosmics' : 'SiStripCalZeroBias+TkAlCosmics0T',
24  # These two cannot run on RAW, they are just meant to run on the dedicated AlcaRAW so they do not enter the allForPrompt list
25  'AlCaP0' : '',
26  # ---------------------------------------------------------------------------------------------------------------------------
27  'HcalNZS' : 'HcalCalMinBias'
28  # This is in the AlCaRecoMatrix, but no RelVals are produced
29  # 'TestEnablesTracker' : 'TkAlLAS'
30  # 'TestEnablesEcalHcal' : 'HcalCalPedestal'
31  }
32 
33 def buildList(pdList, matrix):
34  """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."""
35  alCaRecoList = []
36  for pd in pdList:
37  alCaRecoList.extend(matrix[pd].split("+"))
38  # remove duplicates converting to a set
39  alCaRecoList = set(alCaRecoList)
40  stringList = ''
41  for alCaReco in alCaRecoList:
42  if stringList == '':
43  stringList += alCaReco
44  else:
45  stringList += '+'+alCaReco
46  return stringList
47 
48 # Update the lists anytime a new PD is added to the matrix
49 autoAlca = { 'allForPrompt' : buildList(['Charmonium', 'Commissioning', 'DoubleEG', 'DoubleElectron', 'DoubleMu', 'DoubleMuParked', 'DoubleMuon', 'HLTPhysics', 'HcalNZS', 'JetHT', 'MET', 'MinimumBias', 'MuOnia', 'MuOniaParked', 'SingleElectron', 'SingleMu', 'SingleMuon', 'SinglePhoton', 'ZeroBias'], AlCaRecoMatrix),
50  'allForExpress' : buildList(['StreamExpress'], AlCaRecoMatrix),
51  'allForExpressHI' : buildList(['StreamExpressHI'], AlCaRecoMatrix),
52  'allForPromptCosmics' : buildList(['Cosmics'], AlCaRecoMatrix),
53  'allForExpressCosmics' : buildList(['ExpressCosmics'], AlCaRecoMatrix) }
54 autoAlca.update(AlCaRecoMatrix)
def buildList
Definition: autoAlca.py:33
double split
Definition: MVATrainer.cc:139