1 import FWCore.ParameterSet.Config
as cms
4 from FWCore.ParameterSet.VarParsing
import VarParsing
5 options = VarParsing (
'analysis')
6 options.parseArguments()
8 process = cms.Process(
"Demo")
10 process.load(
"FWCore.MessageService.MessageLogger_cfi")
11 process.load(
'Configuration.Geometry.GeometryExtended2026D49Reco_cff')
12 process.load(
'Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
13 from Configuration.AlCa.GlobalTag
import GlobalTag
14 process.GlobalTag =
GlobalTag(process.GlobalTag,
'auto:phase2_realistic',
'')
16 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
19 input_filename =
'default.root' if len(options.inputFiles) == 0
else options.inputFiles[0]
25 process.source = cms.Source(
"PoolSource",
26 inputCommands = cms.untracked.vstring([
'keep *',
27 'drop l1tEMTFHit2016Extras_simEmtfDigis_CSC_HLT',
28 'drop l1tEMTFHit2016Extras_simEmtfDigis_RPC_HLT',
29 'drop l1tEMTFHit2016s_simEmtfDigis__HLT',
30 'drop l1tEMTFTrack2016Extras_simEmtfDigis__HLT',
31 'drop l1tEMTFTrack2016s_simEmtfDigis__HLT']),
33 fileNames = cms.untracked.vstring(
39 'file:%s'%input_filename
44 process.load(
"SimGeneral.Debugging.caloParticleDebugger_cfi")
47 process.MessageLogger.cerr.enable =
False 48 process.MessageLogger.cout.enable =
False 49 labels = [
'SimTracks',
'SimVertices',
'GenParticles',
'TrackingParticles',
'CaloParticles',
'SimClusters']
50 messageLogger = dict()
51 for category
in labels:
52 main_key =
'%sMessageLogger'%(category)
53 category_key =
'CaloParticleDebugger%s'%(category)
54 messageLogger[main_key] = dict(
55 filename =
'%s_%s.log' % (input_filename.replace(
'.root',
''), category),
57 default = dict(limit=0)
59 messageLogger[main_key][category_key] = dict(limit=-1)
61 setattr(process.MessageLogger.files, category, dict())
63 setattr(process.MessageLogger.files, category, messageLogger[main_key])
65 process.p = cms.Path(process.caloParticleDebugger)