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

References split.

59 
60 def buildList(pdList, matrix):
61  """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."""
62  alCaRecoList = []
63  for pd in pdList:
64  alCaRecoList.extend(matrix[pd].split("+"))
65  # remove duplicates converting to a set
66  alCaRecoList = set(alCaRecoList)
67  stringList = ''
68  for alCaReco in alCaRecoList:
69  if stringList == '':
70  stringList += alCaReco
71  else:
72  stringList += '+'+alCaReco
73  return stringList
74 
# Update the lists anytime a new PD is added to the matrix
def buildList
Definition: autoAlca.py:59
double split
Definition: MVATrainer.cc:139

Variable Documentation

dictionary autoAlca.AlCaRecoMatrix

Definition at line 1 of file autoAlca.py.

dictionary autoAlca.AlCaRecoMatrixRereco
Initial value:
1 = {'AlCaLumiPixels' : 'LumiPixels',
2  'Charmonium' : 'TkAlJpsiMuMu',
3  'Commissioning' : 'TkAlMinBias+SiStripCalMinBias+HcalCalIsoTrk+HcalCalIsolatedBunchSelector',
4  'Cosmics' : 'TkAlCosmics0T+MuAlGlobalCosmics+HcalCalHOCosmics+DtCalibCosmics',
5  'DoubleEG' : 'EcalUncalZElectron+HcalCalIterativePhiSym+HcalCalIsoTrkFilter',
6  'DoubleElectron' : 'EcalUncalZElectron+HcalCalIsoTrkFilter',
7  'DoubleMu' : 'MuAlCalIsolatedMu+MuAlOverlaps+DtCalib+TkAlZMuMu+MuAlZMuMu+TkAlZMuMu+TkAlJpsiMuMu+TkAlUpsilonMuMu+HcalCalIsoTrkFilter',
8  'DoubleMuon' : 'TkAlZMuMu+MuAlCalIsolatedMu+MuAlOverlaps+MuAlZMuMu+DtCalib',
9  'DoubleMuParked' : 'MuAlCalIsolatedMu+MuAlOverlaps+DtCalib+TkAlZMuMu',
10  'HLTPhysics' : 'SiStripCalMinBias+TkAlMinBias+HcalCalIsoTrkFilter',
11  'JetHT' : 'HcalCalDijets+HcalCalIsoTrkFilter+HcalCalIsolatedBunchFilter',
12  'NoBPTX' : 'TkAlCosmicsInCollisions',
13  'MET' : 'HcalCalNoise',
14  'MinimumBias' : 'SiStripCalMinBias+TkAlMinBias',
15  'MuOnia' : 'TkAlUpsilonMuMu',
16  'SingleElectron' : 'EcalUncalWElectron+EcalUncalZElectron+EcalESAlign+HcalCalIterativePhiSym+HcalCalIsoTrkFilter',
17  'SingleMu' : 'MuAlCalIsolatedMu+MuAlOverlaps+TkAlMuonIsolated+DtCalib+MuAlZMuMu+HcalCalHO',
18  'SingleMuon' : 'TkAlMuonIsolated+DtCalib+MuAlCalIsolatedMu+MuAlOverlaps+MuAlZMuMu+HcalCalIterativePhiSym+HcalCalHO',
19  'SinglePhoton' : 'HcalCalGammaJet',
20  'ZeroBias' : 'SiStripCalZeroBias+TkAlMinBias+LumiPixelsMinBias+SiStripCalMinBias+SiStripCalMinBiasAfterAbortGap',
21  'HcalNZS' : 'HcalCalMinBias'
22  }

Definition at line 36 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', 'NoBPTX', 'SingleElectron', 'SingleMu', 'SingleMuon', 'SinglePhoton', 'ZeroBias'], 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:59

Definition at line 75 of file autoAlca.py.