CMS 3D CMS Logo

Functions | Variables
Mixing Namespace Reference

Functions

def addMixingScenario (label, dict)
 
def defineMixing (dict)
 
def printMe ()
 

Variables

 Mixing
 
 MixingDefaultKey
 full sim section More...
 

Function Documentation

◆ addMixingScenario()

def Mixing.addMixingScenario (   label,
  dict 
)

Definition at line 5 of file Mixing.py.

References 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 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def addMixingScenario(label, dict)
Definition: Mixing.py:5

◆ defineMixing()

def Mixing.defineMixing (   dict)

Definition at line 203 of file Mixing.py.

Referenced by ConfigBuilder.ConfigBuilder.addStandardSequences().

203 def defineMixing(dict):
204  commands=[]
205  if 'N' in dict:
206  commands.append('process.mix.input.nbPileupEvents.averageNumber = cms.double(%f)'%(dict['N'],))
207  dict.pop('N')
208  if 'BX' in dict:
209  commands.append('process.mix.bunchspace = cms.int32(%d)'%(dict['BX'],))
210  dict.pop('BX')
211  if 'B' in dict:
212  commands.append('process.mix.minBunch = cms.int32(%d)'%(dict['B'][0],))
213  commands.append('process.mix.maxBunch = cms.int32(%d)'%(dict['B'][1],))
214  dict.pop('B')
215  if 'F' in dict:
216  commands.append('process.mix.input.fileNames = cms.untracked.vstring(%s)'%(repr(dict['F'])))
217  dict.pop('F')
218  return commands
219 
def defineMixing(dict)
Definition: Mixing.py:203

◆ printMe()

def Mixing.printMe ( )

Definition at line 196 of file Mixing.py.

References print().

196 def printMe():
197  global Mixing
198  keys = sorted(Mixing.keys())
199  fskeys=[]
200  for key in keys:
201  print('addMixingScenario("%s",%s)'%(key,repr(Mixing[key])))
202 
def printMe()
Definition: Mixing.py:196
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

Variable Documentation

◆ Mixing

Mixing.Mixing

Definition at line 2 of file Mixing.py.

◆ MixingDefaultKey

Mixing.MixingDefaultKey

full sim section

Definition at line 194 of file Mixing.py.