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

References split.

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

Variable Documentation

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

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  'allForPromptCosmics' : buildList(['Cosmics'], AlCaRecoMatrix),
4  'allForExpressCosmics' : buildList(['ExpressCosmics'], AlCaRecoMatrix) }
def buildList
Definition: autoAlca.py:22

Definition at line 38 of file autoAlca.py.