Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 from FWCore.ParameterSet.VarParsing import VarParsing
0003 from Configuration.Eras.Era_Run3_cff import Run3
0004 
0005 options = VarParsing('analysis')
0006 options.register ("doSim", True, VarParsing.multiplicity.singleton, VarParsing.varType.bool)
0007 options.parseArguments()
0008 
0009 process = cms.Process('VALIDATION',Run3)
0010 
0011 # import of standard configurations
0012 process.load('Configuration.StandardSequences.Services_cff')
0013 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0014 process.load('FWCore.MessageService.MessageLogger_cfi')
0015 process.load('Configuration.EventContent.EventContent_cff')
0016 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0017 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0018 process.load('Configuration.StandardSequences.MagneticField_cff')
0019 process.load("Validation.MuonCSCDigis.cscDigiValidation_cfi")
0020 process.load('Configuration.StandardSequences.DQMSaverAtRunEnd_cff')
0021 process.load('DQMOffline.Configuration.DQMOfflineMC_cff')
0022 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0023 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0024 
0025 process.maxEvents = cms.untracked.PSet(
0026     input = cms.untracked.int32(25),
0027     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0028 )
0029 
0030 # Input source
0031 process.source = cms.Source(
0032     "PoolSource",
0033     fileNames = cms.untracked.vstring(
0034         "/store/relval/CMSSW_11_2_0_pre7/RelValSingleMuPt10/GEN-SIM-DIGI-RAW/112X_mcRun3_2021_realistic_v8-v1/20000/0ED98457-2CEC-924D-AAFC-4F3F705C2DCC.root"
0035     ),
0036     secondaryFileNames = cms.untracked.vstring()
0037 )
0038 
0039 # Other statements
0040 from Configuration.AlCa.GlobalTag import GlobalTag
0041 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2022_realistic', '')
0042 
0043 process.DQMoutput = cms.OutputModule("DQMRootOutputModule",
0044     dataset = cms.untracked.PSet(
0045         dataTier = cms.untracked.string('DQMIO'),
0046         filterName = cms.untracked.string('')
0047     ),
0048     fileName = cms.untracked.string('file:step3_inDQM.root'),
0049     outputCommands = process.DQMEventContent.outputCommands,
0050     splitLevel = cms.untracked.int32(0)
0051 )
0052 
0053 # Path and EndPath definitions
0054 process.cscDigiValidation.doSim = options.doSim
0055 if options.doSim:
0056     process.validation_step = cms.Path(process.mix *
0057                                        process.cscDigiValidation)
0058 else:
0059     process.validation_step = cms.Path(process.cscDigiValidation)
0060 process.endjob_step = cms.EndPath(process.endOfProcess)
0061 process.DQMoutput_step = cms.EndPath(process.DQMoutput)
0062 
0063 # Schedule definition
0064 process.schedule = cms.Schedule(
0065     process.validation_step,
0066     process.endjob_step,
0067     process.DQMoutput_step
0068 )