Functions | |
def | addMixingScenario |
def | defineMixing |
def | printMe |
Variables | |
dictionary | Mixing = {} |
string | MixingDefaultKey = '2012_Startup_50ns_PoissonOOTPU' |
full sim section | |
string | MixingFSDefaultKey = '2012_Startup_inTimeOnly' |
def Mixing::addMixingScenario | ( | label, | |
dict | |||
) |
def Mixing::defineMixing | ( | dict, | |
FS = False |
|||
) |
Definition at line 120 of file Mixing.py.
00121 : 00122 commands=[] 00123 if 'N' in dict: 00124 if FS: 00125 commands.append('process.famosPileUp.PileUpSimulator.averageNumber = cms.double(%f)'%(dict['N'],)) 00126 else: 00127 commands.append('process.mix.input.nbPileupEvents.averageNumber = cms.double(%f)'%(dict['N'],)) 00128 dict.pop('N') 00129 if 'BX' in dict: 00130 commands.append('process.mix.bunchspace = cms.int32(%d)'%(dict['BX'],)) 00131 dict.pop('BX') 00132 if 'B' in dict: 00133 commands.append('process.mix.minBunch = cms.int32(%d)'%(dict['B'][0],)) 00134 commands.append('process.mix.maxBunch = cms.int32(%d)'%(dict['B'][1],)) 00135 dict.pop('B') 00136 if 'F' in dict: 00137 commands.append('process.mix.input.fileNames = cms.untracked.vstring(%s)'%(repr(dict['F']))) 00138 dict.pop('F') 00139 return commands
def Mixing::printMe | ( | ) |
Definition at line 105 of file Mixing.py.
00106 : 00107 global Mixing 00108 keys = Mixing.keys() 00109 keys.sort() 00110 fskeys=[] 00111 for key in keys: 00112 if '_FS' in key: 00113 fskeys.append(key) 00114 else: 00115 print 'addMixingScenario("%s",%s)'%(key,repr(Mixing[key])) 00116 00117 for key in fskeys: 00118 print 'addMixingScenario("%s",%s)'%(key,repr(Mixing[key])) 00119
dictionary Mixing::Mixing = {} |
string Mixing::MixingDefaultKey = '2012_Startup_50ns_PoissonOOTPU' |
string Mixing::MixingFSDefaultKey = '2012_Startup_inTimeOnly' |