Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:43

0001 # TEST CSCDIGIDUMP ON RUN3 SIMULATED DATA - DUMPS THE CSC SIM DIGIS IN A RELVAL FILE
0002 # Based on CSCDigitizerTest_cfg.py once that was working 26.07.2021 - Tim Cox
0003 
0004 import FWCore.ParameterSet.Config as cms
0005 
0006 from Configuration.Eras.Era_Run3_cff import Run3
0007 
0008 process = cms.Process('TIM',Run3)
0009 
0010 # import of standard configurations
0011 process.load('Configuration.StandardSequences.Services_cff')
0012 process.load('FWCore.MessageService.MessageLogger_cfi')
0013 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0014 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0015 
0016 process.maxEvents = cms.untracked.PSet(
0017     input = cms.untracked.int32( 10 ),
0018 )
0019 
0020 # Input source
0021 process.source = cms.Source("PoolSource",
0022     fileNames = cms.untracked.vstring(
0023 ##   '/store/relval/CMSSW_12_0_0_pre3/RelValSingleMuPt100/GEN-SIM-DIGI-RAW/120X_mcRun3_2021_realistic_v1-v1/00000/a7d8aebc-928d-419e-973f-0d4ee6dde236.root'
0024      'file:singlemupt100_10ev.root'
0025     ),
0026     secondaryFileNames = cms.untracked.vstring()
0027 )
0028 
0029 # Conditions data
0030 from Configuration.AlCa.GlobalTag import GlobalTag
0031 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run3_mc_FULL', '')
0032 
0033 # Activate LogVerbatim messages in CSCDigiDump to cout
0034 process.MessageLogger.cerr.enable = False
0035 process.MessageLogger.cout.enable = True
0036 process.MessageLogger.cout.threshold = "INFO"
0037 process.MessageLogger.cout.default = dict( limit = 0 )
0038 process.MessageLogger.cout.INFO = dict (limit = 0 )
0039 process.MessageLogger.cout.CSCDigi = dict( limit = -1 )
0040 
0041 ## CSCDigiDump - cscDigiDump for real; cscSimDigiDump for sim (both in next cfi)
0042 ## Note that MessageLogger category CSCDigi must also be active (see above)
0043 process.load('SimMuon.CSCDigitizer.cscDigiDump_cfi')
0044 
0045 ## Dump CSC sim digis
0046 process.csc_digi_dump = cms.Path(process.cscSimDigiDump)
0047 
0048 process.endjob_step = cms.EndPath(process.endOfProcess)
0049 
0050 # Schedule definition
0051 process.schedule = cms.Schedule(process.csc_digi_dump,process.endjob_step)
0052