CMS 3D CMS Logo

Functions | Variables

autoAlca Namespace Reference

Functions

def buildList

Variables

dictionary AlCaRecoMatrix
dictionary autoAlca

Function Documentation

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 22 of file autoAlca.py.

00023                              :
00024     """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."""
00025     alCaRecoList = []
00026     for pd in pdList:
00027         alCaRecoList.extend(matrix[pd].split("+"))
00028     # remove duplicates converting to a set
00029     alCaRecoList = set(alCaRecoList)
00030     stringList = ''
00031     for alCaReco in alCaRecoList:
00032         if stringList == '':
00033             stringList += alCaReco
00034         else:
00035             stringList += '+'+alCaReco
00036     return stringList
00037 
# Update the lists anytime a new PD is added to the matrix

Variable Documentation

Initial value:
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                   'AlCaLumiPixels' : 'LumiPixels',
00011                   'DoubleMuParked' : 'MuAlCalIsolatedMu+MuAlOverlaps+DtCalib+TkAlZMuMu',
00012                   'MuOniaParked'   : 'TkAlJpsiMuMu+TkAlUpsilonMuMu',
00013                   'Cosmics'        : 'TkAlCosmics0T+MuAlGlobalCosmics+HcalCalHOCosmics+DtCalibCosmics',
00014                   # These two cannot run on RAW, they are just meant to run on the dedicated AlcaRAW so they do not enter the allForPrompt list
00015                   'AlCaP0'         : 'EcalCalPi0Calib+EcalCalEtaCalib',
00016                   # ---------------------------------------------------------------------------------------------------------------------------
00017                   'HcalNZS'        : 'HcalCalMinBias'
00018                   # This is in the AlCaRecoMatrix, but no RelVals are produced
00019                   # 'TestEnablesTracker' : 'TkAlLAS'
00020                   }

Definition at line 1 of file autoAlca.py.

dictionary autoAlca::autoAlca
Initial value:
00001 { 'allForPrompt'         : buildList(['MinimumBias', 'Commissioning', 'SingleMu', 'DoubleMu', 'MuOnia', 'DoubleMuParked', 'MuOniaParked', 'SingleElectron', 'DoubleElectron', 'HcalNZS'], AlCaRecoMatrix),
00002              'allForExpress'        : buildList(['StreamExpress'], AlCaRecoMatrix),
00003              'allForPromptCosmics'  : buildList(['Cosmics'], AlCaRecoMatrix),
00004              'allForExpressCosmics' : buildList(['ExpressCosmics'], AlCaRecoMatrix) }

Definition at line 38 of file autoAlca.py.