diff --git a/test/runSVJ.py b/test/runSVJ.py index e29c130..78bb4e1 100644 --- a/test/runSVJ.py +++ b/test/runSVJ.py @@ -166,7 +166,11 @@ def set_if_has(obj,attr,val): if options.quiet and hasattr(process,'MessageLogger'): for dest in process.MessageLogger.destinations: - setattr(getattr(process.MessageLogger,dest),'threshold',cms.untracked.string('ERROR')) + dest_attr = getattr(process.MessageLogger,dest) + for level in ['INFO','WARNING']: + existing_pset = getattr(dest_attr,level,cms.untracked.PSet()) + existing_pset.limit = cms.untracked.int32(0) + setattr(dest_attr,level,existing_pset) # genjet/met settings - treat DM stand-ins as invisible _particles = ["genParticlesForJetsNoMuNoNu","genParticlesForJetsNoNu","genCandidatesForMET","genParticlesForMETAllVisible"] @@ -175,7 +179,7 @@ def set_if_has(obj,attr,val): getattr(process,_prod).ignoreParticleIDs.extend([51,52,53]) if hasattr(process,'recoGenJets') and hasattr(process,'recoAllGenJetsNoNu'): process.recoGenJets += process.recoAllGenJetsNoNu - # to get hadronFlavour at gen level + # to get hadronFlavour at gen level process.load("PhysicsTools.PatAlgos.slimming.genParticles_cff") process.recoGenJets += process.prunedGenParticlesWithStatusOne process.recoGenJets += process.prunedGenParticles