Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:25:00

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.Geometry.GeometryExtended2023D17Reco_cff')
0011 process.load('Configuration.StandardSequences.MagneticField_cff')
0012 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0013 
0014 from Configuration.AlCa.GlobalTag import GlobalTag
0015 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
0016 
0017 
0018 # Number of events (-1 = all)
0019 process.maxEvents = cms.untracked.PSet(
0020     input = cms.untracked.int32(-1)
0021 )
0022 
0023 # Input file
0024 process.source = cms.Source('PoolSource',
0025     fileNames = cms.untracked.vstring('file:step3.root')
0026 )
0027 
0028 # Output
0029 process.TFileService = cms.Service('TFileService',
0030     fileName = cms.string('file:rechits_validation.root')
0031 )
0032 
0033 process.load('RecoLocalTracker.SiPhase2Clusterizer.phase2TrackerClusterizer_cfi')
0034 process.load('RecoLocalTracker.Phase2TrackerRecHits.Phase2StripCPEESProducer_cfi')
0035 #process.load('RecoLocalTracker.Phase2TrackerRecHits.Phase2StripCPEGeometricESProducer_cfi')
0036 process.load('RecoLocalTracker.Phase2TrackerRecHits.Phase2TrackerRecHits_cfi')
0037 #process.siPhase2RecHits.Phase2StripCPE = cms.ESInputTag("phase2StripCPEESProducer", "Phase2StripCPE")
0038 #process.siPhase2RecHits.Phase2StripCPE = cms.ESInputTag("phase2StripCPEGeometricESProducer", "Phase2StripCPEGeometric")
0039 
0040 
0041 # Analyzer
0042 process.analysis = cms.EDAnalyzer('Phase2TrackerRecHitsValidation',
0043     src = cms.InputTag("siPhase2RecHits"),
0044     clusters = cms.InputTag("siPhase2Clusters"),
0045     links = cms.InputTag("simSiPixelDigis", "Tracker"),
0046     simhitsbarrel = cms.InputTag("g4SimHits", "TrackerHitsPixelBarrelLowTof"),
0047     simhitsendcap = cms.InputTag("g4SimHits", "TrackerHitsPixelEndcapLowTof"),
0048     simtracks = cms.InputTag("g4SimHits"),
0049     ECasRings = cms.bool(True),
0050     SimTrackMinPt = cms.double(2.),
0051     MakeEtaPlots = cms.bool(False),
0052     MinEta = cms.double(0.),
0053     MaxEta = cms.double(10.)
0054 )
0055 
0056 # Processes to run
0057 #process.rechits_step = cms.Path(process.siPhase2Clusters + process.siPhase2RecHits)
0058 process.rechits_step = cms.Path(process.siPhase2RecHits)
0059 process.validation_step = cms.Path(process.analysis)
0060 
0061 process.schedule = cms.Schedule(process.rechits_step, process.validation_step)
0062