Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:47

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 
0004 from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
0005 process = cms.Process('mtdValidation',Phase2C17I13M9)
0006 
0007 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0008 process.load("FWCore.MessageService.MessageLogger_cfi")
0009 process.load('Configuration.EventContent.EventContent_cff')
0010 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0011 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0012 
0013 process.load("Configuration.Geometry.GeometryExtended2026D98Reco_cff")
0014 process.load('Configuration.StandardSequences.MagneticField_cff')
0015 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0016 from Configuration.AlCa.GlobalTag import GlobalTag
0017 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '')
0018 process.load('RecoLocalFastTime.FTLClusterizer.MTDCPEESProducer_cfi')
0019 process.load("Configuration.StandardSequences.Reconstruction_cff")
0020 
0021 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0022 
0023 #Setup FWK for multithreaded
0024 process.options.numberOfThreads = 4
0025 process.options.numberOfStreams = 0
0026 process.options.numberOfConcurrentLuminosityBlocks = 0
0027 process.options.eventSetup.numberOfConcurrentIOVs = 1
0028 
0029 process.MessageLogger.cerr.FwkReport  = cms.untracked.PSet(
0030     reportEvery = cms.untracked.int32(10),
0031 )
0032 
0033 process.source = cms.Source("PoolSource",
0034     fileNames = cms.untracked.vstring(
0035         'file:step3.root'
0036     )
0037 )
0038 
0039 process.mix.digitizers = cms.PSet()
0040 for a in process.aliases: delattr(process, a)
0041 
0042 # --- BTL Validation
0043 process.load("Validation.MtdValidation.btlSimHitsValid_cfi")
0044 process.load("Validation.MtdValidation.btlDigiHitsValid_cfi")
0045 process.load("Validation.MtdValidation.btlLocalRecoValid_cfi")
0046 btlValidation = cms.Sequence(process.btlSimHitsValid + process.btlDigiHitsValid + process.btlLocalRecoValid)
0047 
0048 # --- ETL Validation
0049 process.load("Validation.MtdValidation.etlSimHitsValid_cfi")
0050 process.load("Validation.MtdValidation.etlDigiHitsValid_cfi")
0051 process.load("Validation.MtdValidation.etlLocalRecoValid_cfi")
0052 etlValidation = cms.Sequence(process.etlSimHitsValid + process.etlDigiHitsValid + process.etlLocalRecoValid)
0053 
0054 # --- Global Validation
0055 process.load("Validation.MtdValidation.mtdTracksValid_cfi")
0056 process.load("Validation.MtdValidation.mtdEleIsoValid_cfi")
0057 process.load("Validation.MtdValidation.vertices4DValid_cfi")
0058 
0059 # process.btlDigiHitsValid.optionalPlots = True
0060 # process.etlDigiHitsValid.optionalPlots = True
0061 # process.btlLocalRecoValid.optionalPlots = True
0062 # process.etlLocalRecoValid.optionalPlots = True
0063 # process.mtdTracksValid.optionalPlots = True
0064 # process.vertices4DValid.optionalPlots = True
0065 
0066 process.validation = cms.Sequence(btlValidation + etlValidation + process.mtdTracksValid + process.mtdEleIsoValid + process.vertices4DValid)
0067 
0068 process.DQMoutput = cms.OutputModule("DQMRootOutputModule",
0069     dataset = cms.untracked.PSet(
0070         dataTier = cms.untracked.string('DQMIO'),
0071         filterName = cms.untracked.string('')
0072     ),
0073     fileName = cms.untracked.string('file:step3_inDQM.root'),
0074     outputCommands = process.DQMEventContent.outputCommands,
0075     splitLevel = cms.untracked.int32(0)
0076 )
0077 
0078 process.p = cms.Path( process.mix + process.mtdTrackingRecHits + process.validation )
0079 process.endjob_step = cms.EndPath(process.endOfProcess)
0080 process.DQMoutput_step = cms.EndPath( process.DQMoutput )
0081 
0082 process.schedule = cms.Schedule( process.p , process.endjob_step , process.DQMoutput_step )