CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 23 of file autoAlca.py.

References split.

23 
24 def buildList(pdList, matrix):
25  """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."""
26  alCaRecoList = []
27  for pd in pdList:
28  alCaRecoList.extend(matrix[pd].split("+"))
29  # remove duplicates converting to a set
30  alCaRecoList = set(alCaRecoList)
31  stringList = ''
32  for alCaReco in alCaRecoList:
33  if stringList == '':
34  stringList += alCaReco
35  else:
36  stringList += '+'+alCaReco
37  return stringList
38 
# Update the lists anytime a new PD is added to the matrix
def buildList
Definition: autoAlca.py:23
double split
Definition: MVATrainer.cc:139

Variable Documentation

dictionary autoAlca.AlCaRecoMatrix
Initial value:
1 = {'ExpressCosmics' : 'SiStripCalZeroBias+TkAlCosmics0T',
2  'StreamExpress' : 'SiStripCalZeroBias+TkAlMinBias+SiStripPCLHistos+SiStripCalMinBias+DtCalib+Hotline',
3  'StreamExpressHI': 'SiStripCalZeroBias+TkAlMinBiasHI+SiStripPCLHistos+SiStripCalMinBias+DtCalibHI',
4  'MinimumBias' : 'SiStripCalMinBias+TkAlMinBias',
5  'Commissioning' : 'HcalCalIsoTrk',
6  'SingleMu' : 'MuAlCalIsolatedMu+MuAlOverlaps+TkAlMuonIsolated+DtCalib',
7  'DoubleMu' : 'MuAlCalIsolatedMu+MuAlOverlaps+DtCalib+TkAlZMuMu',
8  'MuOnia' : 'TkAlJpsiMuMu+TkAlUpsilonMuMu',
9  'SingleElectron' : 'EcalCalWElectron+EcalUncalWElectron',
10  'DoubleElectron' : 'EcalCalZElectron+EcalUncalZElectron',
11  'AlCaLumiPixels' : 'LumiPixels',
12  'DoubleMuParked' : 'MuAlCalIsolatedMu+MuAlOverlaps+DtCalib+TkAlZMuMu',
13  'MuOniaParked' : 'TkAlJpsiMuMu+TkAlUpsilonMuMu',
14  'Cosmics' : 'TkAlCosmics0T+MuAlGlobalCosmics+HcalCalHOCosmics+DtCalibCosmics',
15  # These two cannot run on RAW, they are just meant to run on the dedicated AlcaRAW so they do not enter the allForPrompt list
16  'AlCaP0' : '',
17  # ---------------------------------------------------------------------------------------------------------------------------
18  'HcalNZS' : 'HcalCalMinBias'
19  # This is in the AlCaRecoMatrix, but no RelVals are produced
20  # 'TestEnablesTracker' : 'TkAlLAS'
21  }

Definition at line 1 of file autoAlca.py.

dictionary autoAlca.autoAlca
Initial value:
1 = { 'allForPrompt' : buildList(['MinimumBias', 'Commissioning', 'SingleMu', 'DoubleMu', 'MuOnia', 'DoubleMuParked', 'MuOniaParked', 'SingleElectron', 'DoubleElectron', 'HcalNZS'], AlCaRecoMatrix),
2  'allForExpress' : buildList(['StreamExpress'], AlCaRecoMatrix),
3  'allForExpressHI' : buildList(['StreamExpressHI'], AlCaRecoMatrix),
4  'allForPromptCosmics' : buildList(['Cosmics'], AlCaRecoMatrix),
5  'allForExpressCosmics' : buildList(['ExpressCosmics'], AlCaRecoMatrix) }
def buildList
Definition: autoAlca.py:23

Definition at line 39 of file autoAlca.py.