Functions | |
def | addMixingScenario |
def | defineMixing |
def | printMe |
Variables | |
dictionary | Mixing = {} |
string | MixingDefaultKey = 'NoPileUp' |
full sim section |
def Mixing::addMixingScenario | ( | label, | |
dict | |||
) |
def Mixing::defineMixing | ( | dict, | |
FS = False |
|||
) |
Definition at line 124 of file Mixing.py.
00125 : 00126 commands=[] 00127 if 'N' in dict: 00128 if FS: 00129 commands.append('process.famosPileUp.PileUpSimulator.averageNumber = cms.double(%f)'%(dict['N'],)) 00130 else: 00131 commands.append('process.mix.input.nbPileupEvents.averageNumber = cms.double(%f)'%(dict['N'],)) 00132 dict.pop('N') 00133 if 'BX' in dict: 00134 commands.append('process.mix.bunchspace = cms.int32(%d)'%(dict['BX'],)) 00135 dict.pop('BX') 00136 if 'B' in dict: 00137 commands.append('process.mix.minBunch = cms.int32(%d)'%(dict['B'][0],)) 00138 commands.append('process.mix.maxBunch = cms.int32(%d)'%(dict['B'][1],)) 00139 dict.pop('B') 00140 if 'F' in dict: 00141 commands.append('process.mix.input.fileNames = cms.untracked.vstring(%s)'%(repr(dict['F']))) 00142 dict.pop('F') 00143 return commands
def Mixing::printMe | ( | ) |
Definition at line 109 of file Mixing.py.
00110 : 00111 global Mixing 00112 keys = Mixing.keys() 00113 keys.sort() 00114 fskeys=[] 00115 for key in keys: 00116 if '_FS' in key: 00117 fskeys.append(key) 00118 else: 00119 print 'addMixingScenario("%s",%s)'%(key,repr(Mixing[key])) 00120 00121 for key in fskeys: 00122 print 'addMixingScenario("%s",%s)'%(key,repr(Mixing[key])) 00123
dictionary Mixing::Mixing = {} |
string Mixing::MixingDefaultKey = 'NoPileUp' |
full sim section
fastsim section addMixingScenario("FS_NoPileUp",{'file': 'FastSimulation.PileUpProducer.PileUpSimulator_cff', 'N': 0}) addMixingScenario("FS_156BxLumiPileUp",{'file': 'FastSimulation.PileUpProducer.PileUpSimulator_cff', 'N': 2}) addMixingScenario("FS_HighLumiPileUp",{'file': 'FastSimulation.PileUpProducer.PileUpSimulator_cff', 'N': 20}) addMixingScenario("FS_InitialPileUp",{'file': 'FastSimulation.PileUpProducer.PileUpSimulator_cff', 'N': 3.8}) addMixingScenario("FS_LowLumiPileUp",{'file': 'FastSimulation.PileUpProducer.PileUpSimulator_cff', 'N': 7.1}) slhc section