CMS 3D CMS Logo

Functions | Variables
autoAlca Namespace Reference

Functions

def buildList (pdList, matrix)
 

Variables

list AlCaNoConcurrentLumis
 
dictionary AlCaRecoMatrix
 
dictionary autoAlca
 

Function Documentation

◆ buildList()

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

References submitPVValidationJobs.split().

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 
52 # Update the lists anytime a new PD is added to the matrix
def buildList(pdList, matrix)
Definition: autoAlca.py:37

Variable Documentation

◆ AlCaNoConcurrentLumis

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

Definition at line 61 of file autoAlca.py.

◆ AlCaRecoMatrix

dictionary autoAlca.AlCaRecoMatrix

Definition at line 1 of file autoAlca.py.

◆ autoAlca

dictionary autoAlca.autoAlca
Initial value:
1 = { 'allForPrompt' : buildList(['Commissioning', 'EGamma', 'HLTPhysics', 'HcalNZS', 'JetMET', 'Muon', 'NoBPTX', 'ParkingDoubleMuonLowMass', 'ZeroBias'], AlCaRecoMatrix),
2  'allForExpress' : buildList(['StreamExpress'], AlCaRecoMatrix),
3  'allForExpressHI' : buildList(['StreamExpressHI'], AlCaRecoMatrix),
4  'allForPromptCosmics' : buildList(['Cosmics'], AlCaRecoMatrix),
5  'allForExpressCosmics' : buildList(['ExpressCosmics'], AlCaRecoMatrix) }
def buildList(pdList, matrix)
Definition: autoAlca.py:37

Definition at line 53 of file autoAlca.py.