CMS 3D CMS Logo

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

References print().

5 
6 def addMixingScenario(label,dict):
7  global Mixing
8  if label in Mixing:
9  print('duplicated definition of',label)
10  else:
11  #try:
12  # m=__import__(dict['file'])
13  #except:
14  # raise Exception('no file'+dict['file']+'to be loaded')
15  Mixing[label]=dict
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def addMixingScenario
Definition: Mixing.py:5
def Mixing.defineMixing (   dict)

Definition at line 190 of file Mixing.py.

Referenced by ConfigBuilder.ConfigBuilder.addStandardSequences().

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

Definition at line 183 of file Mixing.py.

References print().

184 def printMe():
185  global Mixing
186  keys = sorted(Mixing.keys())
187  fskeys=[]
188  for key in keys:
189  print('addMixingScenario("%s",%s)'%(key,repr(Mixing[key])))
def printMe
Definition: Mixing.py:183
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

Variable Documentation

dictionary Mixing.Mixing = {}

Definition at line 2 of file Mixing.py.

string Mixing.MixingDefaultKey = '2012_Summer_50ns_PoissonOOTPU'

full sim section

Definition at line 181 of file Mixing.py.