CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 5 of file Mixing.py.

References edm.print().

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
15 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def addMixingScenario(label, dict)
Definition: Mixing.py:5
def Mixing.defineMixing (   dict)

Definition at line 185 of file Mixing.py.

Referenced by ConfigBuilder.ConfigBuilder.addStandardSequences().

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

full sim section

Definition at line 178 of file Mixing.py.

References edm.print().

178 def printMe():
179  global Mixing
180  keys = sorted(Mixing.keys())
181  fskeys=[]
182  for key in keys:
183  print('addMixingScenario("%s",%s)'%(key,repr(Mixing[key])))
184 
def printMe()
full sim section
Definition: Mixing.py:178
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66