Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 # TEST CSCDIGIPRODUCER (CSCDIGITIZER) BY RE-DIGITIZING A RUN3 SIMULATED DATA SAMPLE
0002 # AND DUMP THE *NEW* DIGIS WITH CSCDIGIDUMP
0003 
0004 # Auto generated configuration file JULY 2021 - Tim Cox 
0005 # - modified until it works on a Run 3 relval file with simhits in 12_0_x.
0006 # - try to minimize stuff in this config file
0007 
0008 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v 
0009 # with command line options: TEMP4 --step=DIGI --conditions=auto:run3_mc_FULL --filein=/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 --mc --era Run3 --no_exec
0010 
0011 import FWCore.ParameterSet.Config as cms
0012 
0013 from Configuration.Eras.Era_Run3_cff import Run3
0014 
0015 process = cms.Process('TIM',Run3)
0016 
0017 # import of standard configurations
0018 process.load('Configuration.StandardSequences.Services_cff')
0019 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0020 process.load('FWCore.MessageService.MessageLogger_cfi')
0021 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0022 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0023 process.load('Configuration.StandardSequences.MagneticField_cff')
0024 process.load('Configuration.StandardSequences.Digi_cff')
0025 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0026 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0027 
0028 process.maxEvents = cms.untracked.PSet(
0029     input = cms.untracked.int32( 10 ),
0030 )
0031 
0032 # Input source
0033 process.source = cms.Source("PoolSource",
0034     fileNames = cms.untracked.vstring(
0035 ##    '/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'
0036      'file:singlemupt100_10ev.root'
0037     ),
0038     secondaryFileNames = cms.untracked.vstring()
0039 )
0040 
0041 # Conditions data
0042 from Configuration.AlCa.GlobalTag import GlobalTag
0043 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run3_mc_FULL', '')
0044 
0045 # Activate LogVerbatim messages in CSCDigitizer and CSCDigiDump to cout
0046 process.MessageLogger.cerr.enable = False
0047 process.MessageLogger.cout.enable = True
0048 process.MessageLogger.cout.threshold = "INFO"
0049 process.MessageLogger.cout.default = dict( limit = 0 )
0050 process.MessageLogger.cout.INFO = dict (limit = 0 )
0051 process.MessageLogger.cout.CSCDigitizer = dict( limit = -1 )
0052 process.MessageLogger.cout.CSCDigi = dict( limit = -1 )
0053 
0054 ## CSCDigiDump - cscDigiDump for real; cscSimDigiDump for sim (both in next cfi)
0055 ## Note that MessageLogger category CSCDigi must also be active (see above)
0056 process.load('SimMuon.CSCDigitizer.cscDigiDump_cfi')
0057 
0058 ## Dump CSC sim digis from the latest process, i.e. the NEW digis not the OLD ones in the input file
0059 process.csc_digi_dump = cms.Path(process.cscSimDigiDump)
0060 
0061 # Further info from CSCDigitizer?
0062 ## process.simMuonCSCDigis.dumpGasCollisions = cms.untracked.bool(True)
0063 
0064 # Stuff in a Task is unscheduled - need unscheduled so digitizer will actually run
0065 # => explicitly add CSC digitizer to the path even though it's already part of 'pdigi'
0066 # Still need process.pdigi in order to set up the CrossingFrame of PSimHits for CSCDigiProducer 
0067 
0068 process.digi_step = cms.Path(process.pdigi)
0069 process.csc_digi = cms.Path(process.simMuonCSCDigis)
0070 process.endjob_step = cms.EndPath(process.endOfProcess)
0071 
0072 # Schedule definition
0073 process.schedule = cms.Schedule(process.digi_step,process.csc_digi,process.csc_digi_dump,process.endjob_step)
0074