Functions | |
def | buildList |
Variables | |
dictionary | AlCaRecoMatrix |
dictionary | autoAlca |
def autoAlca::buildList | ( | pdList, | |
matrix | |||
) |
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.
Definition at line 19 of file autoAlca.py.
00020 : 00021 """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.""" 00022 alCaRecoList = [] 00023 for pd in pdList: 00024 alCaRecoList.extend(matrix[pd].split("+")) 00025 # remove duplicates converting to a set 00026 alCaRecoList = set(alCaRecoList) 00027 stringList = '' 00028 for alCaReco in alCaRecoList: 00029 if stringList == '': 00030 stringList += alCaReco 00031 else: 00032 stringList += '+'+alCaReco 00033 return stringList 00034 # Update the lists anytime a new PD is added to the matrix
dictionary autoAlca::AlCaRecoMatrix |
00001 {'ExpressCosmics' : 'SiStripCalZeroBias+TkAlCosmics0T', 00002 'StreamExpress' : 'SiStripCalZeroBias+TkAlMinBias+MuAlCalIsolatedMu+DtCalib', 00003 'MinimumBias' : 'SiStripCalMinBias+TkAlMinBias', 00004 'Commissioning' : 'HcalCalIsoTrk', 00005 'SingleMu' : 'MuAlCalIsolatedMu+MuAlOverlaps+TkAlMuonIsolated+DtCalib', 00006 'DoubleMu' : 'MuAlCalIsolatedMu+MuAlOverlaps+DtCalib+TkAlZMuMu', 00007 'MuOnia' : 'TkAlJpsiMuMu+TkAlUpsilonMuMu', 00008 'SingleElectron' : 'EcalCalElectron', 00009 'DoubleElectron' : 'EcalCalElectron', 00010 'Cosmics' : 'TkAlCosmics0T+MuAlGlobalCosmics+HcalCalHOCosmics+DtCalibCosmics', 00011 # These two cannot run on RAW, they are just meant to run on the dedicated AlcaRAW so they do not enter the allForPrompt list 00012 'AlCaP0' : 'EcalCalPi0Calib+EcalCalEtaCalib', 00013 # --------------------------------------------------------------------------------------------------------------------------- 00014 'HcalNZS' : 'HcalCalMinBias' 00015 # This is in the AlCaRecoMatrix, but no RelVals are produced 00016 # 'TestEnablesTracker' : 'TkAlLAS' 00017 }
Definition at line 1 of file autoAlca.py.
dictionary autoAlca::autoAlca |
00001 { 'allForPrompt' : buildList(['MinimumBias', 'Commissioning', 'SingleMu', 'DoubleMu', 'MuOnia', 'SingleElectron', 'DoubleElectron', 'HcalNZS'], AlCaRecoMatrix), 00002 'allForExpress' : buildList(['StreamExpress'], AlCaRecoMatrix), 00003 'allForPromptCosmics' : buildList(['Cosmics'], AlCaRecoMatrix), 00004 'allForExpressCosmics' : buildList(['ExpressCosmics'], AlCaRecoMatrix) }
Definition at line 35 of file autoAlca.py.