Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-06-17 02:28:47

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_Phase2C9_cff import Phase2C9
0010 
0011 process = cms.Process('USER',Phase2C9)
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.GeometryExtended2023D17Reco_cff')
0020 #process.load('Configuration.Geometry.GeometryExtended2023D17_cff')
0021 process.load('Configuration.Geometry.GeometryExtended2026D49Reco_cff')
0022 process.load('Configuration.StandardSequences.MagneticField_cff')
0023 process.load('Configuration.StandardSequences.Generator_cff')
0024 process.load('IOMC.EventVertexGenerators.VtxSmearedHLLHC14TeV_cfi')
0025 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0026 process.load('Configuration.StandardSequences.SimIdeal_cff')
0027 process.load('Configuration.StandardSequences.Digi_cff')
0028 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0029 process.load('Configuration.StandardSequences.DigiToRaw_cff')
0030 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0031 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0032 
0033 process.DQMStore = cms.Service("DQMStore")
0034 # load DQM
0035 process.load("DQMServices.Core.DQM_cfg")
0036 process.load("DQMServices.Components.DQMEnvironment_cfi")
0037 process.load("Configuration.StandardSequences.EDMtoMEAtJobEnd_cff")
0038 # import DQMStore service
0039 process.load('DQMOffline.Configuration.DQMOffline_cff')
0040 
0041 #import FWCore.ParameterSet.Config as cms
0042 #process.MessageLogger = cms.Service("MessageLogger",
0043 #        destinations = cms.untracked.vstring(                           #1
0044 #                'myOutputFile'                                          #2
0045 #        ),
0046 #        myOutputFile = cms.untracked.PSet(                              #3
0047 #                threshold = cms.untracked.string( 'WARNING' )          #4
0048 #        ),
0049 #)
0050 
0051 import FWCore.ParameterSet.Config as cms
0052 process.MessageLogger = cms.Service("MessageLogger",
0053                      destinations       =  cms.untracked.vstring('debugmessages'),
0054                      categories         = cms.untracked.vstring('interestingToMe'),
0055                      debugModules  = cms.untracked.vstring('*'),
0056 
0057                      debugmessages          = cms.untracked.PSet(
0058                                                 threshold =  cms.untracked.string('DEBUG'),
0059                                                 INFO       =  cms.untracked.PSet(limit = cms.untracked.int32(0)),
0060                                                 DEBUG   = cms.untracked.PSet(limit = cms.untracked.int32(0)),
0061                                                 interestingToMe = cms.untracked.PSet(limit = cms.untracked.int32(10000000))
0062                                                     )
0063 )
0064 
0065 process.maxEvents = cms.untracked.PSet(
0066     input = cms.untracked.int32(15)
0067 )
0068 
0069 # Input source
0070 process.source = cms.Source("PoolSource",
0071        #fileNames = cms.untracked.vstring('file:/afs/cern.ch/work/j/jsauvan/public/HGCAL/TestingRelVal/CMSSW_9_3_7/RelValSingleGammaPt35/GEN-SIM-DIGI-RAW/93X_upgrade2023_realistic_v5_2023D17noPU-v2/2661406C-972C-E811-9754-0025905A60DE.root'),
0072 #       fileNames = cms.untracked.vstring('file:/data_cms_upgrade/sauvan/HGCAL/DIGI/Phase2HLTTDRWinter20DIGI/TT_TuneCP5_14TeV-powheg-pythia8/GEN-SIM-DIGI-RAW/PU200_110X_mcRun4_realistic_v3-v2/2D0339A5-751F-3543-BA5B-456EA6E5E294.root'),
0073        fileNames = cms.untracked.vstring('root://cms-xrd-global.cern.ch///eos/cms//store/mc/Phase2HLTTDRWinter20DIGI/QCD_Pt-15to7000_TuneCP5_Flat_14TeV-pythia8/GEN-SIM-DIGI-RAW/FlatPU0To200_castor_110X_mcRun4_realistic_v3_ext1-v1/260000/003F2BA9-0D02-5A43-A53F-4161E513BFA6.root'),
0074        inputCommands=cms.untracked.vstring(
0075            'keep *',
0076            'drop l1tEMTFHit2016Extras_simEmtfDigis_CSC_HLT',
0077            'drop l1tEMTFHit2016Extras_simEmtfDigis_RPC_HLT',
0078            'drop l1tEMTFHit2016s_simEmtfDigis__HLT',
0079            'drop l1tEMTFTrack2016Extras_simEmtfDigis__HLT',
0080            'drop l1tEMTFTrack2016s_simEmtfDigis__HLT',
0081            )
0082        )
0083 
0084 # Production Info
0085 #process.configurationMetadata = cms.untracked.PSet(
0086 #    version = cms.untracked.string('$Revision: 1.20 $'),
0087 #    annotation = cms.untracked.string('SingleElectronPt10_cfi nevts:10'),
0088 #    name = cms.untracked.string('Applications')
0089 #)
0090 
0091 # Other statements
0092 from Configuration.AlCa.GlobalTag import GlobalTag
0093 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
0094 
0095 # load HGCAL TPG simulation
0096 process.load('L1Trigger.L1THGCal.hgcalTriggerPrimitives_cff')
0097 process.hgcl1tpg_step = cms.Path(process.hgcalTriggerPrimitives)
0098 # Change to V7 trigger geometry for older samples
0099 #  from L1Trigger.L1THGCal.customTriggerGeometry import custom_geometry_ZoltanSplit_V7
0100 #  process = custom_geometry_ZoltanSplit_V7(process)
0101 
0102 # load validation
0103 process.load('Validation.HGCalValidation.hgcalValidationTPG_cff')
0104 process.hgcalValidationTPG_step = cms.Path(process.runHGCALValidationTPG)
0105 
0106 #process.dqmSaver.workflow = '/validation/' + 'HGCAL' + '/TPG'
0107 #process.dqmsave_step = cms.Path(process.dqmSaver)
0108 
0109 # NEW added
0110 process.onlineSaver = cms.EDAnalyzer("DQMFileSaverOnline",
0111     producer = cms.untracked.string('DQM'),
0112     path = cms.untracked.string('./'),
0113     tag = cms.untracked.string('new'),
0114 )
0115 
0116 process.o = cms.EndPath(process.onlineSaver)
0117 process.schedule = cms.Schedule(process.hgcl1tpg_step, process.hgcalValidationTPG_step, process.o)
0118 # END NEW added 
0119 
0120 # Schedule definition
0121 #process.schedule = cms.Schedule(process.hgcl1tpg_step, process.hgcalValidationTPG_step, process.dqmsave_step)
0122 
0123 # Add early deletion of temporary data products to reduce peak memory need
0124 #from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0125 #process = customiseEarlyDelete(process)
0126 # End adding early deletion
0127