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

References split.

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

Variable Documentation

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

Definition at line 1 of file autoAlca.py.

dictionary autoAlca.autoAlca
Initial value:
1 = { 'allForPrompt' : buildList(['Charmonium', 'Commissioning', 'DoubleEG', 'DoubleElectron', 'DoubleMu', 'DoubleMuParked', 'DoubleMuon', 'HLTPhysics', 'HcalNZS', 'JetHT', 'MET', 'MinimumBias', 'MuOnia', 'MuOniaParked', 'SingleElectron', 'SingleMu', 'SingleMuon', 'SinglePhoton'], AlCaRecoMatrix),
2  'allForExpress' : buildList(['StreamExpress'], AlCaRecoMatrix),
3  'allForPromptCosmics' : buildList(['Cosmics'], AlCaRecoMatrix),
4  'allForExpressCosmics' : buildList(['ExpressCosmics'], AlCaRecoMatrix) }
def buildList
Definition: autoAlca.py:31

Definition at line 47 of file autoAlca.py.