Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-02 04:38:41

0001 # TEST CSCDIGIPRODUCER (CSCDIGITIZER) BY RE-DIGITIZING A RUN3 SIMULATED DATA SAMPLE                                                           
0002 # WITH *FULL DUMP* OF CSCDIGITIZER PROCESS (NOT THE DIGIS, BUT THAT COULD BE ACTIVATED)
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 LogTrace messages in CSCDigitizer to cout - 
0046 process.MessageLogger.cerr.enable = False
0047 process.MessageLogger.cout.enable = True
0048 process.MessageLogger.cout.threshold = "DEBUG"
0049 process.MessageLogger.debugModules = ["*"]
0050 process.MessageLogger.cout.default = dict( limit = 0 )
0051 process.MessageLogger.cout.INFO = dict (limit = 0 )
0052 process.MessageLogger.cout.CSCDigitizer = dict( limit = -1 )
0053 process.MessageLogger.cout.CSCStripElectronicsSim = dict( limit = -1 )
0054 process.MessageLogger.cout.CSCWireElectronicsSim = dict( limit = -1 )
0055 process.MessageLogger.cout.CSCBaseElectronicsSim = dict( limit = -1 )
0056 process.MessageLogger.cout.CSCWireHitSim = dict( limit = -1 )
0057 process.MessageLogger.cout.CSCDriftSim = dict( limit = -1 )
0058 process.MessageLogger.cout.CSCCrossGap = dict( limit = -1 )
0059 process.MessageLogger.cout.CSCGasCollisions = dict( limit = -1 )
0060 process.MessageLogger.cout.CSCDigi = dict( limit = -1 )
0061 
0062 # CSCDigiDump - cscDigiDump for real; cscSimDigiDump for sim (both in next cfi)
0063 # Note that MessageLogger category CSCDigi must also be active (see above)
0064 ## process.load('SimMuon.CSCDigitizer.cscDigiDump_cfi')
0065 
0066 # Dump CSC sim digis from the latest process, i.e. the NEW digis not the OLD ones in the input file
0067 ## process.csc_digi_dump = cms.Path(process.cscSimDigiDump)
0068 
0069 # Activate LogVerbatim output from CSCGasCollisions
0070 process.simMuonCSCDigis.dumpGasCollisions = cms.untracked.bool(True)
0071 
0072 # Stuff in a Task is unscheduled - need unscheduled so digitizer will actually run
0073 # => explicitly add CSC digitizer to the path even though it's already part of 'pdigi'
0074 # Still need process.pdigi in order to set up the CrossingFrame of PSimHits for CSCDigiProducer 
0075 
0076 process.digi_step = cms.Path(process.pdigi)
0077 process.csc_digi = cms.Path(process.simMuonCSCDigis)
0078 process.endjob_step = cms.EndPath(process.endOfProcess)
0079 
0080 # Schedule definition
0081 process.schedule = cms.Schedule(process.digi_step,process.csc_digi,process.endjob_step)
0082 # Replace the above by the following to add dump of the sim digis produced
0083 ## process.schedule = cms.Schedule(process.digi_step,process.csc_digi,process.csc_digi_dump,process.endjob_step)
0084