Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:30:27

0001 # Auto generated configuration file
0002 # using: 
0003 # Revision: 1.19 
0004 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v 
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 from Configuration.StandardSequences.Eras import eras
0008 process = cms.Process('DIGI2RAW',eras.Run2_2017)
0009 
0010 # import of standard configurations
0011 process.load('Configuration.StandardSequences.Services_cff')
0012 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0013 process.load('FWCore.MessageService.MessageLogger_cfi')
0014 process.load('Configuration.EventContent.EventContent_cff')
0015 process.load('Configuration.StandardSequences.MagneticField_cff')
0016 process.load('SimGeneral.MixingModule.mixNoPU_PPS_cfi')
0017 process.load('Configuration.StandardSequences.Digi_cff')
0018 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0019 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0020 process.load('CalibPPS.ESProducers.CTPPSPixelDAQMappingESSourceXML_cfi')
0021 
0022 process.load('SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi')
0023 ############### using only CTPPS geometry 
0024 process.load("Geometry.VeryForwardGeometry.geometryPPS_CMSxz_fromDD_2017_cfi")
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(-1)
0028 )
0029 process.load("IOMC.RandomEngine.IOMC_cff")
0030 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0031 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0032 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0033 process.RandomNumberGeneratorService.RPixDetDigitizer = cms.PSet(initialSeed =cms.untracked.uint32(137137))
0034 process.RandomNumberGeneratorService.RPSiDetDigitizer = cms.PSet(initialSeed =cms.untracked.uint32(137137))
0035 
0036 # Input source
0037 process.source = cms.Source("PoolSource",
0038     dropDescendantsOfDroppedBranches = cms.untracked.bool(False),
0039     fileNames = cms.untracked.vstring('file:step1_SIM2017.root'),
0040     inputCommands = cms.untracked.vstring('keep *', 
0041         'drop *_genParticles_*_*', 
0042         'drop *_genParticlesForJets_*_*', 
0043         'drop *_kt4GenJets_*_*', 
0044         'drop *_kt6GenJets_*_*', 
0045         'drop *_iterativeCone5GenJets_*_*', 
0046         'drop *_ak4GenJets_*_*', 
0047         'drop *_ak7GenJets_*_*', 
0048         'drop *_ak8GenJets_*_*', 
0049         'drop *_ak4GenJetsNoNu_*_*', 
0050         'drop *_ak8GenJetsNoNu_*_*', 
0051         'drop *_genCandidatesForMET_*_*', 
0052         'drop *_genParticlesForMETAllVisible_*_*', 
0053         'drop *_genMetCalo_*_*', 
0054         'drop *_genMetCaloAndNonPrompt_*_*', 
0055         'drop *_genMetTrue_*_*', 
0056         'drop *_genMetIC5GenJs_*_*'),
0057     secondaryFileNames = cms.untracked.vstring()
0058 )
0059 
0060 process.options = cms.untracked.PSet(
0061     SkipEvent = cms.untracked.vstring('ProductNotFound')
0062 )
0063 
0064 # Production Info
0065 process.configurationMetadata = cms.untracked.PSet(
0066     annotation = cms.untracked.string('step2 nevts:10'),
0067     name = cms.untracked.string('Applications'),
0068     version = cms.untracked.string('$Revision: 1.19 $')
0069 )
0070 
0071 # Output definition
0072 process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule",
0073     dataset = cms.untracked.PSet(
0074         dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW'),
0075         filterName = cms.untracked.string('')
0076     ),
0077     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0078     fileName = cms.untracked.string('step2_DIGI_DIGI2RAW2017.root'),
0079     outputCommands = process.FEVTDEBUGEventContent.outputCommands + ['keep *_CTPPS*_*_*',"keep *_*RP*_*_*",'keep *_LHCTransport_*_*'],
0080     splitLevel = cms.untracked.int32(0)
0081 )
0082 
0083 # Additional output definition
0084 
0085 # Other statements
0086 from Configuration.AlCa.GlobalTag import GlobalTag
0087 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_realistic', '')
0088 
0089 process.GlobalTag.toGet = cms.VPSet(
0090     cms.PSet(
0091         record = cms.string('CTPPSPixelGainCalibrationsRcd'),
0092         tag = cms.string("CTPPSPixelGainCalibrations_mc"),
0093         connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS')
0094         ),
0095     cms.PSet(
0096         record = cms.string('CTPPSPixelAnalysisMaskRcd'),
0097         tag = cms.string("CTPPSPixelAnalysisMask_mc"),
0098         label = cms.untracked.string(""),
0099         connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS')
0100         ),
0101     cms.PSet(
0102         record = cms.string('CTPPSPixelDAQMappingRcd'),
0103         tag = cms.string("CTPPSPixelDAQMapping_mc"),
0104         connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS')
0105         )
0106 )
0107 
0108 # modify Totem 2017 mapping
0109 process.load('CalibPPS.ESProducers.totemDAQMappingESSourceXML_cfi')
0110 process.totemDAQMappingESSourceXML.configuration = cms.VPSet(
0111     cms.PSet(
0112       validityRange = cms.EventRange("1:min - 999999999:max"),
0113       mappingFileNames = cms.vstring("CondFormats/CTPPSReadoutObjects/xml/mapping_tracking_strip_2017.xml"),
0114       maskFileNames = cms.vstring()
0115     )   
0116 )
0117 
0118 process.load("EventFilter.CTPPSRawToDigi.ctppsDigiToRaw_cff")
0119 process.load("EventFilter.RawDataCollector.rawDataCollector_cfi")
0120 
0121 # Path and EndPath definitions
0122 process.mixedigi_step = cms.Path(process.mix*process.RPixDetDigitizer*process.RPSiDetDigitizer)
0123 process.digi2raw_step = cms.Path(process.ctppsTotemRawData*process.ctppsPixelRawData*process.rawDataCollector)
0124 process.endjob_step = cms.EndPath(process.endOfProcess)
0125 process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)
0126 
0127 # Schedule definition
0128 process.schedule = cms.Schedule(process.mixedigi_step,process.digi2raw_step,process.endjob_step,process.FEVTDEBUGoutput_step)
0129 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0130 associatePatAlgosToolsTask(process)
0131 
0132 
0133 # Customisation from command line
0134 
0135 # Add early deletion of temporary data products to reduce peak memory need
0136 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0137 process = customiseEarlyDelete(process)
0138 # End adding early deletion