CMS 3D CMS Logo

Functions
Mixing Namespace Reference

Functions

def addMixingScenario (label, dict)
 
def defineMixing (dict)
 
def printMe ()
 full sim section More...
 

Function Documentation

def Mixing.addMixingScenario (   label,
  dict 
)

Definition at line 4 of file Mixing.py.

4 def addMixingScenario(label,dict):
5  global Mixing
6  if label in Mixing:
7  print 'duplicated definition of',label
8  else:
9  #try:
10  # m=__import__(dict['file'])
11  #except:
12  # raise Exception('no file'+dict['file']+'to be loaded')
13  Mixing[label]=dict
14 
def addMixingScenario(label, dict)
Definition: Mixing.py:4
def Mixing.defineMixing (   dict)

Definition at line 179 of file Mixing.py.

179 def defineMixing(dict):
180  commands=[]
181  if 'N' in dict:
182  commands.append('process.mix.input.nbPileupEvents.averageNumber = cms.double(%f)'%(dict['N'],))
183  dict.pop('N')
184  if 'BX' in dict:
185  commands.append('process.mix.bunchspace = cms.int32(%d)'%(dict['BX'],))
186  dict.pop('BX')
187  if 'B' in dict:
188  commands.append('process.mix.minBunch = cms.int32(%d)'%(dict['B'][0],))
189  commands.append('process.mix.maxBunch = cms.int32(%d)'%(dict['B'][1],))
190  dict.pop('B')
191  if 'F' in dict:
192  commands.append('process.mix.input.fileNames = cms.untracked.vstring(%s)'%(repr(dict['F'])))
193  dict.pop('F')
194  return commands
195 
def defineMixing(dict)
Definition: Mixing.py:179
def Mixing.printMe ( )

full sim section

Definition at line 172 of file Mixing.py.

172 def printMe():
173  global Mixing
174  keys = sorted(Mixing.keys())
175  fskeys=[]
176  for key in keys:
177  print 'addMixingScenario("%s",%s)'%(key,repr(Mixing[key]))
178 
def printMe()
full sim section
Definition: Mixing.py:172