CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
Mixing Namespace Reference

Functions

def addMixingScenario
 
def defineMixing
 
def printMe
 

Variables

dictionary Mixing = {}
 
string MixingDefaultKey = '2012_Summer_50ns_PoissonOOTPU'
 full sim section More...
 

Function Documentation

def Mixing.addMixingScenario (   label,
  dict 
)

Definition at line 4 of file Mixing.py.

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

Definition at line 168 of file Mixing.py.

169 def defineMixing(dict):
170  commands=[]
171  if 'N' in dict:
172  commands.append('process.mix.input.nbPileupEvents.averageNumber = cms.double(%f)'%(dict['N'],))
173  dict.pop('N')
174  if 'BX' in dict:
175  commands.append('process.mix.bunchspace = cms.int32(%d)'%(dict['BX'],))
176  dict.pop('BX')
177  if 'B' in dict:
178  commands.append('process.mix.minBunch = cms.int32(%d)'%(dict['B'][0],))
179  commands.append('process.mix.maxBunch = cms.int32(%d)'%(dict['B'][1],))
180  dict.pop('B')
181  if 'F' in dict:
182  commands.append('process.mix.input.fileNames = cms.untracked.vstring(%s)'%(repr(dict['F'])))
183  dict.pop('F')
184  return commands
def defineMixing
Definition: Mixing.py:168
def Mixing.printMe ( )

Definition at line 160 of file Mixing.py.

161 def printMe():
162  global Mixing
163  keys = Mixing.keys()
164  keys.sort()
165  fskeys=[]
166  for key in keys:
167  print 'addMixingScenario("%s",%s)'%(key,repr(Mixing[key]))
def printMe
Definition: Mixing.py:160

Variable Documentation

dictionary Mixing.Mixing = {}

Definition at line 1 of file Mixing.py.

string Mixing.MixingDefaultKey = '2012_Summer_50ns_PoissonOOTPU'

full sim section

Definition at line 158 of file Mixing.py.