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 111 of file Mixing.py.
00112 : 00113 commands=[] 00114 if 'N' in dict: 00115 if FS: 00116 commands.append('process.famosPileUp.PileUpSimulator.averageNumber = cms.double(%f)'%(dict['N'],)) 00117 else: 00118 commands.append('process.mix.input.nbPileupEvents.averageNumber = cms.double(%f)'%(dict['N'],)) 00119 dict.pop('N') 00120 if 'BX' in dict: 00121 commands.append('process.mix.bunchspace = cms.int32(%d)'%(dict['BX'],)) 00122 dict.pop('BX') 00123 if 'B' in dict: 00124 commands.append('process.mix.minBunch = cms.int32(%d)'%(dict['B'][0],)) 00125 commands.append('process.mix.maxBunch = cms.int32(%d)'%(dict['B'][1],)) 00126 dict.pop('B') 00127 if 'F' in dict: 00128 commands.append('process.mix.input.fileNames = cms.untracked.vstring(%s)'%(repr(dict['F']))) 00129 dict.pop('F') 00130 return commands
def Mixing::printMe | ( | ) |
Definition at line 96 of file Mixing.py.
00097 : 00098 global Mixing 00099 keys = Mixing.keys() 00100 keys.sort() 00101 fskeys=[] 00102 for key in keys: 00103 if '_FS' in key: 00104 fskeys.append(key) 00105 else: 00106 print 'addMixingScenario("%s",%s)'%(key,repr(Mixing[key])) 00107 00108 for key in fskeys: 00109 print 'addMixingScenario("%s",%s)'%(key,repr(Mixing[key])) 00110
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}) slch section