Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:31:16

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run2_2018_cff import Run2_2018
0004 process = cms.Process("Analysis",Run2_2018)
0005 
0006 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0007 process.load('FWCore.MessageService.MessageLogger_cfi')
0008 process.load("SimG4CMS.Calo.caloSimHitAnalysis_cfi")
0009 process.load("Configuration.Geometry.GeometryExtended2018Reco_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:simevent_singleMuon_FTFP_BERT_EMM.root'
0020 #       'file:simG4.root',
0021 #       'file:simGV.root',
0022                             )
0023                         )
0024 
0025 process.maxEvents = cms.untracked.PSet(
0026     input = cms.untracked.int32(-1)
0027 )
0028 
0029 process.TFileService = cms.Service("TFileService",
0030                                    fileName = cms.string(
0031                                        'analG4.root'
0032 #                                      'analG4.root'
0033                                    )
0034 )
0035 
0036 process.analysis_step   = cms.Path(process.caloSimHitAnalysis)
0037 
0038 #process.caloSimHitAnalysis.moduleLabel = "geantv"
0039 #process.caloSimHitAnalysis.timeScale   = 1.0
0040 process.caloSimHitAnalysis.passiveHits = True
0041 
0042 # Schedule definition                                                          
0043 process.schedule = cms.Schedule(process.analysis_step)