Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-24 01:14:54

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run3_DDD_cff import Run3_DDD
0004 process = cms.Process("Analysis",Run3_DDD)
0005 
0006 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0007 process.load('FWCore.MessageService.MessageLogger_cfi')
0008 process.load("SimG4CMS.Calo.CaloSimHitStudy_cfi")
0009 process.load("Configuration.Geometry.GeometryExtended2021Reco_cff")
0010 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0011 from Configuration.AlCa.autoCond import autoCond
0012 process.GlobalTag.globaltag = autoCond['run2_mc']
0013 
0014 if 'MessageLogger' in process.__dict__:
0015     process.MessageLogger.HitStudy=dict()
0016 
0017 process.source = cms.Source("PoolSource",
0018                             fileNames = cms.untracked.vstring(
0019 #                               'file:step1_run3Old.root'
0020                                 'file:step1_run3New.root',
0021                             )
0022                         )
0023 
0024 process.maxEvents = cms.untracked.PSet(
0025     input = cms.untracked.int32(-1)
0026 )
0027 
0028 process.TFileService = cms.Service("TFileService",
0029                                    fileName = cms.string(
0030 #                                      'analRun3Old.root'
0031                                        'analRun3New.root'
0032                                    )
0033 )
0034 
0035 process.analysis_step   = cms.Path(process.CaloSimHitStudy)
0036 
0037 
0038 # Schedule definition                                                          
0039 process.schedule = cms.Schedule(process.analysis_step)