CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
autoAlca Namespace Reference

Functions

def buildList
 

Variables

list AlCaNoConcurrentLumis
 
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 36 of file autoAlca.py.

References submitPVValidationJobs.split().

36 
37 def buildList(pdList, matrix):
38  """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."""
39  alCaRecoList = []
40  for pd in pdList:
41  alCaRecoList.extend(matrix[pd].split("+"))
42  # remove duplicates converting to a set
43  alCaRecoList = set(alCaRecoList)
44  stringList = ''
45  for alCaReco in alCaRecoList:
46  if stringList == '':
47  stringList += alCaReco
48  else:
49  stringList += '+'+alCaReco
50  return stringList
51 
# Update the lists anytime a new PD is added to the matrix
def buildList
Definition: autoAlca.py:36

Variable Documentation

list autoAlca.AlCaNoConcurrentLumis
Initial value:
1 = [
2  'PromptCalibProd', # AlcaBeamSpotProducer
3  'PromptCalibProdSiPixelAli', # AlignmentProducerAsAnalyzer, MillePedeFileConverter
4  'PromptCalibProdBeamSpotHP', # AlcaBeamSpotProducer
5  'PromptCalibProdBeamSpotHPLowPU', # AlcaBeamSpotProducer
6  'AlCaPCCRandom', # AlcaPCCIntegrator
7  'AlCaPCCZeroBias' # AlcaPCCIntegrator
8 ]

Definition at line 60 of file autoAlca.py.

dictionary autoAlca.AlCaRecoMatrix

Definition at line 1 of file autoAlca.py.

dictionary autoAlca.autoAlca
Initial value:
1 = { 'allForPrompt' : buildList(['Charmonium', 'Commissioning', 'DoubleMuParked', 'DoubleMuon', 'EGamma', 'HLTPhysics', 'HcalNZS', 'JetHT', 'MET', 'MinimumBias', 'MuOnia', 'MuOniaParked', 'NoBPTX', 'SingleMuon', 'ZeroBias'], AlCaRecoMatrix),
2  'allForExpress' : buildList(['StreamExpress', 'ALCALumiPixelsCountsExpress'], AlCaRecoMatrix),
3  'allForExpressHI' : buildList(['StreamExpressHI'], AlCaRecoMatrix),
4  'allForPromptCosmics' : buildList(['Cosmics'], AlCaRecoMatrix),
5  'allForExpressCosmics' : buildList(['ExpressCosmics'], AlCaRecoMatrix) }
def buildList
Definition: autoAlca.py:36

Definition at line 52 of file autoAlca.py.