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

Referenced by ConfigBuilder.ConfigBuilder.addStandardSequences().

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

full sim section

Definition at line 180 of file Mixing.py.

References edm.print().

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