Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:26:17

0001 # Imports
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 # Create a new CMS process
0005 process = cms.Process('cluTest')
0006 
0007 # Import all the necessary files
0008 process.load('Configuration.StandardSequences.Services_cff')
0009 process.load('FWCore.MessageService.MessageLogger_cfi')
0010 #process.load('Configuration.EventContent.EventContent_cff')
0011 process.load('Configuration.Geometry.GeometryExtended2023D17Reco_cff')
0012 process.load('Configuration.StandardSequences.MagneticField_38T_cff')
0013 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0014 
0015 from Configuration.AlCa.GlobalTag import GlobalTag
0016 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
0017 
0018 
0019 # Number of events (-1 = all)
0020 process.maxEvents = cms.untracked.PSet(
0021     input = cms.untracked.int32(-1)
0022 )
0023 
0024 # Input file
0025 process.source = cms.Source('PoolSource',
0026     fileNames = cms.untracked.vstring('file:step3.root')
0027 )
0028 
0029 # Output
0030 process.TFileService = cms.Service('TFileService',
0031     fileName = cms.string('file:cluster_validation.root')
0032 )
0033 
0034 # DEBUG
0035 #process.MessageLogger = cms.Service('MessageLogger',
0036 #   debugModules = cms.untracked.vstring('siPhase2Clusters'),
0037 #   destinations = cms.untracked.vstring('cout'),
0038 #   cout = cms.untracked.PSet(
0039 #       threshold = cms.untracked.string('ERROR')
0040 #   )
0041 #)
0042 
0043 # Analyzer
0044 process.analysis = cms.EDAnalyzer('Phase2TrackerClusterizerValidation',
0045     src = cms.InputTag("siPhase2Clusters"),
0046     links = cms.InputTag("simSiPixelDigis", "Tracker"),
0047     simhitsbarrel = cms.InputTag("g4SimHits", "TrackerHitsPixelBarrelLowTof"),
0048     simhitsendcap = cms.InputTag("g4SimHits", "TrackerHitsPixelEndcapLowTof"),
0049     simtracks = cms.InputTag("g4SimHits"),
0050     ECasRings = cms.bool(True),
0051     SimTrackMinPt = cms.double(2.)
0052 )
0053 
0054 # Processes to run
0055 process.p = cms.Path(process.analysis)