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

References split.

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

Definition at line 34 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:57

Definition at line 73 of file autoAlca.py.