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 177 of file Mixing.py.

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

full sim section

Definition at line 169 of file Mixing.py.

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