Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-08-30 02:11:04

0001 import FWCore.ParameterSet.Config as cms 
0002 #from Configuration.ProcessModifiers.convertHGCalDigisSim_cff import convertHGCalDigisSim
0003 
0004 #from Configuration.Eras.Era_Phase2_cff import Phase2
0005 #process = cms.Process('DIGI',Phase2,convertHGCalDigisSim)
0006 
0007 # -*- coding: utf-8 -*-
0008 
0009 from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
0010 
0011 process = cms.Process('USER',Phase2C17I13M9)
0012 
0013 # import of standard configurations
0014 process.load('Configuration.StandardSequences.Services_cff')
0015 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0016 process.load('FWCore.MessageService.MessageLogger_cfi')
0017 process.load('Configuration.EventContent.EventContent_cff')
0018 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0019 process.load('Configuration.Geometry.GeometryExtended2026D110Reco_cff')
0020 process.load('Configuration.Geometry.GeometryExtended2026D110_cff')
0021 process.load('Configuration.StandardSequences.MagneticField_cff')
0022 process.load('Configuration.StandardSequences.Generator_cff')
0023 process.load('IOMC.EventVertexGenerators.VtxSmearedHLLHC14TeV_cfi')
0024 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0025 process.load('Configuration.StandardSequences.SimIdeal_cff')
0026 process.load('Configuration.StandardSequences.Digi_cff')
0027 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0028 process.load('Configuration.StandardSequences.DigiToRaw_cff')
0029 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0030 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0031 
0032 process.DQMStore = cms.Service("DQMStore")
0033 # load DQM
0034 process.load("DQMServices.Core.DQM_cfg")
0035 process.load("DQMServices.Components.DQMEnvironment_cfi")
0036 process.load("Configuration.StandardSequences.EDMtoMEAtJobEnd_cff")
0037 # import DQMStore service
0038 process.load('DQMOffline.Configuration.DQMOffline_cff')
0039 
0040 #import FWCore.ParameterSet.Config as cms
0041 #process.MessageLogger = cms.Service("MessageLogger",
0042 #        destinations = cms.untracked.vstring(                           #1
0043 #                'myOutputFile'                                          #2
0044 #        ),
0045 #        myOutputFile = cms.untracked.PSet(                              #3
0046 #                threshold = cms.untracked.string( 'WARNING' )          #4
0047 #        ),
0048 #)
0049 
0050 import FWCore.ParameterSet.Config as cms
0051 process.MessageLogger = cms.Service("MessageLogger",
0052                      destinations       =  cms.untracked.vstring('debugmessages'),
0053                      categories         = cms.untracked.vstring('interestingToMe'),
0054                      debugModules  = cms.untracked.vstring('*'),
0055 
0056                      debugmessages          = cms.untracked.PSet(
0057                                                 threshold =  cms.untracked.string('DEBUG'),
0058                                                 INFO       =  cms.untracked.PSet(limit = cms.untracked.int32(0)),
0059                                                 DEBUG   = cms.untracked.PSet(limit = cms.untracked.int32(0)),
0060                                                 interestingToMe = cms.untracked.PSet(limit = cms.untracked.int32(10000000))
0061                                                     )
0062 )
0063 
0064 process.maxEvents = cms.untracked.PSet(
0065     input = cms.untracked.int32(15)
0066 )
0067 
0068 # Input source
0069 process.source = cms.Source("PoolSource",
0070        fileNames = cms.untracked.vstring('/store/mc/Phase2Fall22DRMiniAOD/DoublePhoton_FlatPt-1To100-gun/GEN-SIM-DIGI-RAW-MINIAOD/PU200_125X_mcRun4_realistic_v2-v1/30000/0075a153-cb64-4ed9-9157-a1b6db9fd431.root'),
0071        inputCommands=cms.untracked.vstring(
0072            'keep *',
0073            'drop l1tEMTFHit2016Extras_simEmtfDigis_CSC_HLT',
0074            'drop l1tEMTFHit2016Extras_simEmtfDigis_RPC_HLT',
0075            'drop l1tEMTFHit2016s_simEmtfDigis__HLT',
0076            'drop l1tEMTFTrack2016Extras_simEmtfDigis__HLT',
0077            'drop l1tEMTFTrack2016s_simEmtfDigis__HLT',
0078            )
0079        )
0080 
0081 # Production Info
0082 #process.configurationMetadata = cms.untracked.PSet(
0083 #    version = cms.untracked.string('$Revision: 1.20 $'),
0084 #    annotation = cms.untracked.string('SingleElectronPt10_cfi nevts:10'),
0085 #    name = cms.untracked.string('Applications')
0086 #)
0087 
0088 # Other statements
0089 from Configuration.AlCa.GlobalTag import GlobalTag
0090 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T33', '')
0091 
0092 # load HGCAL TPG simulation
0093 process.load('L1Trigger.L1THGCal.hgcalTriggerPrimitives_cff')
0094 process.hgcl1tpg_step = cms.Path(process.L1THGCalTriggerPrimitives)
0095 
0096 # load validation
0097 process.load('Validation.HGCalValidation.hgcalValidationTPG_cff')
0098 process.hgcalValidationTPG_step = cms.Path(process.runHGCALValidationTPG)
0099 
0100 #process.dqmSaver.workflow = '/validation/' + 'HGCAL' + '/TPG'
0101 #process.dqmsave_step = cms.Path(process.dqmSaver)
0102 
0103 # NEW added
0104 process.onlineSaver = cms.EDAnalyzer("DQMFileSaverOnline",
0105     producer = cms.untracked.string('DQM'),
0106     path = cms.untracked.string('./'),
0107     tag = cms.untracked.string('new'),
0108 )
0109 
0110 process.o = cms.EndPath(process.onlineSaver)
0111 process.schedule = cms.Schedule(process.hgcl1tpg_step, process.hgcalValidationTPG_step, process.o)
0112 # END NEW added 
0113 
0114 # Schedule definition
0115 #process.schedule = cms.Schedule(process.hgcl1tpg_step, process.hgcalValidationTPG_step, process.dqmsave_step)
0116 
0117 # Add early deletion of temporary data products to reduce peak memory need
0118 #from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0119 #process = customiseEarlyDelete(process)
0120 # End adding early deletion
0121