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

References runtimedef.set(), and split.

19 
20 def buildList(pdList, matrix):
21  """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."""
22  alCaRecoList = []
23  for pd in pdList:
24  alCaRecoList.extend(matrix[pd].split("+"))
25  # remove duplicates converting to a set
26  alCaRecoList = set(alCaRecoList)
27  stringList = ''
28  for alCaReco in alCaRecoList:
29  if stringList == '':
30  stringList += alCaReco
31  else:
32  stringList += '+'+alCaReco
33  return stringList
34 
# Update the lists anytime a new PD is added to the matrix
def buildList
Definition: autoAlca.py:19
double split
Definition: MVATrainer.cc:139
void set(const std::string &name, int value)
set the flag, with a run-time name

Variable Documentation

dictionary autoAlca.AlCaRecoMatrix
Initial value:
1 = {'ExpressCosmics' : 'SiStripCalZeroBias+TkAlCosmics0T',
2  'StreamExpress' : 'SiStripCalZeroBias+TkAlMinBias+MuAlCalIsolatedMu+DtCalib',
3  'MinimumBias' : 'SiStripCalMinBias+TkAlMinBias',
4  'Commissioning' : 'HcalCalIsoTrk',
5  'SingleMu' : 'MuAlCalIsolatedMu+MuAlOverlaps+TkAlMuonIsolated+DtCalib',
6  'DoubleMu' : 'MuAlCalIsolatedMu+MuAlOverlaps+DtCalib+TkAlZMuMu',
7  'MuOnia' : 'TkAlJpsiMuMu+TkAlUpsilonMuMu',
8  'SingleElectron' : 'EcalCalElectron',
9  'DoubleElectron' : 'EcalCalElectron',
10  'Cosmics' : 'TkAlCosmics0T+MuAlGlobalCosmics+HcalCalHOCosmics+DtCalibCosmics',
11  # These two cannot run on RAW, they are just meant to run on the dedicated AlcaRAW so they do not enter the allForPrompt list
12  'AlCaP0' : 'EcalCalPi0Calib+EcalCalEtaCalib',
13  # ---------------------------------------------------------------------------------------------------------------------------
14  'HcalNZS' : 'HcalCalMinBias'
15  # This is in the AlCaRecoMatrix, but no RelVals are produced
16  # 'TestEnablesTracker' : 'TkAlLAS'
17  }

Definition at line 1 of file autoAlca.py.

dictionary autoAlca.autoAlca
Initial value:
1 = { 'allForPrompt' : buildList(['MinimumBias', 'Commissioning', 'SingleMu', 'DoubleMu', 'MuOnia', 'SingleElectron', 'DoubleElectron', 'HcalNZS'], AlCaRecoMatrix),
2  'allForExpress' : buildList(['StreamExpress'], AlCaRecoMatrix),
3  'allForPromptCosmics' : buildList(['Cosmics'], AlCaRecoMatrix),
4  'allForExpressCosmics' : buildList(['ExpressCosmics'], AlCaRecoMatrix) }
def buildList
Definition: autoAlca.py:19

Definition at line 35 of file autoAlca.py.