Functions | |
def | switchGenSource |
def | switchGenSourceForValidation |
def | useExternalWeight |
def | useExternalWeightForValidation |
def genvalidTools::switchGenSource | ( | process, | |
analyzerName, | |||
source | |||
) |
Definition at line 27 of file genvalidTools.py.
00028 : 00029 analyzer = getattr(process,analyzerName) 00030 if analyzer != None: 00031 print "Changing inputSource in "+analyzerName 00032 analyzer.hepmcCollection = source 00033 setattr(process, analyzerName, analyzer) 00034 #function to switch to an alternative gen source (default is "generator") for all analyzers in the validation chain
def genvalidTools::switchGenSourceForValidation | ( | process, | |
source | |||
) |
Definition at line 35 of file genvalidTools.py.
00036 : 00037 process.genParticles.src = 'lhe2HepMCConverter' 00038 switchGenSource(process, "basicGenParticleValidation", source) 00039 switchGenSource(process, "mbueAndqcdValidation", source) 00040 switchGenSource(process, "basicHepMCValidation", source) 00041 switchGenSource(process, "drellYanEleValidation", source) 00042 switchGenSource(process, "drellYanMuoValidation", source) 00043 switchGenSource(process, "wMinusEleValidation", source) 00044 switchGenSource(process, "wPlusEleValidation", source) 00045 switchGenSource(process, "wMinusMuoValidation", source) 00046 switchGenSource(process, "wPlusMuoValidation", source) 00047 switchGenSource(process, "tauValidation", source) 00048 switchGenSource(process, "duplicationChecker", source)
def genvalidTools::useExternalWeight | ( | process, | |
analyzerName, | |||
vWeightProducerTags | |||
) |
Definition at line 4 of file genvalidTools.py.
00005 : 00006 analyzer = getattr(process,analyzerName) 00007 if analyzer != None: 00008 print "Changing weight in "+analyzerName 00009 analyzer.UseWeightFromHepMC = cms.bool(False) 00010 analyzer.genEventInfos = vWeightProducerTags 00011 setattr(process, analyzerName, analyzer) 00012 #function to switch to an external weight producer for all analyzers in the validation chain
def genvalidTools::useExternalWeightForValidation | ( | process, | |
vWeightProducerTags | |||
) |
Definition at line 13 of file genvalidTools.py.
00014 : 00015 useExternalWeight(process, "basicGenParticleValidation", vWeightProducerTags) 00016 useExternalWeight(process, "mbueAndqcdValidation", vWeightProducerTags) 00017 useExternalWeight(process, "basicHepMCValidation", vWeightProducerTags) 00018 useExternalWeight(process, "drellYanEleValidation", vWeightProducerTags) 00019 useExternalWeight(process, "drellYanMuoValidation", vWeightProducerTags) 00020 useExternalWeight(process, "wMinusEleValidation", vWeightProducerTags) 00021 useExternalWeight(process, "wPlusEleValidation", vWeightProducerTags) 00022 useExternalWeight(process, "wMinusMuoValidation", vWeightProducerTags) 00023 useExternalWeight(process, "wPlusMuoValidation", vWeightProducerTags) 00024 useExternalWeight(process, "tauValidation", vWeightProducerTags) 00025 useExternalWeight(process, "duplicationChecker", vWeightProducerTags) 00026 #function to switch to an alternative gen source (default is "generator") for an analyzer in the validation chain