Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-07 22:23:03

0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.StandardSequences.Eras import eras
0003 
0004 process = cms.Process("Demo")
0005 process.load('Configuration.StandardSequences.Services_cff')
0006 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0007 process.load('Configuration.StandardSequences.GeometrySimDB_cff')
0008 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0009 process.load('Configuration.StandardSequences.MagneticField_cff')
0010 process.load('Configuration.EventContent.EventContent_cff')
0011 process.load("FWCore.MessageService.MessageLogger_cfi")
0012 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0013 process.load('Configuration.StandardSequences.SimIdeal_cff')
0014 #process.hcalTopologyIdeal.MergePosition = False
0015 
0016 #Add track sim to reco associations
0017 process.load("SimTracker.TrackerHitAssociation.tpClusterProducer_cfi")
0018 process.load("SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi")
0019 process.load("SimTracker.TrackAssociatorProducers.trackAssociatorByHits_cfi")
0020 process.load("SimTracker.TrackAssociation.trackingParticleRecoTrackAsssociation_cfi")
0021 
0022 from Configuration.AlCa.GlobalTag import GlobalTag
0023 process.GlobalTag = GlobalTag(process.GlobalTag, "auto:phase1_2022_realistic")
0024 from FastSimulation.Event.ParticleFilter_cfi import *
0025 
0026 process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(-1))
0027 
0028 process.source = cms.Source("PoolSource",
0029     fileNames = cms.untracked.vstring(
0030         'file://step3_phase1_new.root'
0031     ),
0032     duplicateCheckMode = cms.untracked.string("noDuplicateCheck")
0033 )
0034 
0035 process.ana = cms.EDAnalyzer('PFAnalysis')
0036 
0037 process.TFileService = cms.Service("TFileService",
0038     fileName = cms.string("pfntuple.root")
0039 )
0040 process.p = cms.Path(
0041   process.tpClusterProducer*
0042   process.quickTrackAssociatorByHits*
0043   process.trackingParticleRecoTrackAsssociation*
0044   process.ana)