Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run3_dd4hep_cff import Run3_dd4hep
0004 
0005 process = cms.Process('RECO',Run3_dd4hep)
0006 
0007 # import of standard configurations
0008 process.load('Configuration.StandardSequences.Services_cff')
0009 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0010 process.load('FWCore.MessageService.MessageLogger_cfi')
0011 process.load('Configuration.EventContent.EventContent_cff')
0012 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0013 process.load('Configuration.Geometry.GeometryDD4hepExtended2021Reco_cff')
0014 process.load('Configuration.StandardSequences.MagneticField_cff')
0015 process.load('Configuration.StandardSequences.RawToDigi_cff')
0016 process.load('Configuration.StandardSequences.L1Reco_cff')
0017 process.load('Configuration.StandardSequences.Reconstruction_cff')
0018 process.load('Configuration.StandardSequences.RecoSim_cff')
0019 process.load('CommonTools.ParticleFlow.EITopPAG_cff')
0020 process.load('PhysicsTools.PatAlgos.slimming.metFilterPaths_cff')
0021 process.load('Configuration.StandardSequences.PATMC_cff')
0022 process.load('Configuration.StandardSequences.Validation_cff')
0023 process.load('DQMServices.Core.DQMStoreNonLegacy_cff')
0024 process.load('DQMOffline.Configuration.DQMOfflineMC_cff')
0025 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0026 
0027 process.MessageLogger.TrackerGeometryBuilder=dict();
0028 
0029 process.maxEvents = cms.untracked.PSet(
0030     input = cms.untracked.int32(10),
0031     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0032 )
0033 
0034 # Input source
0035 process.source = cms.Source("PoolSource",
0036     fileNames = cms.untracked.vstring('file:step2_ZMM_dd4hep.root'),
0037     secondaryFileNames = cms.untracked.vstring()
0038 )
0039 
0040 process.options = cms.untracked.PSet(
0041     IgnoreCompletely = cms.untracked.vstring(),
0042     Rethrow = cms.untracked.vstring(),
0043     TryToContinue = cms.untracked.vstring(),
0044 #   allowUnscheduled = cms.obsolete.untracked.bool,
0045     canDeleteEarly = cms.untracked.vstring(),
0046     emptyRunLumiMode = cms.obsolete.untracked.string,
0047     eventSetup = cms.untracked.PSet(
0048         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0049 
0050         ),
0051         numberOfConcurrentIOVs = cms.untracked.uint32(1)
0052     ),
0053     fileMode = cms.untracked.string('FULLMERGE'),
0054     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0055     makeTriggerResults = cms.obsolete.untracked.bool,
0056     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0057     numberOfConcurrentRuns = cms.untracked.uint32(1),
0058     numberOfStreams = cms.untracked.uint32(0),
0059     numberOfThreads = cms.untracked.uint32(1),
0060     printDependencies = cms.untracked.bool(False),
0061     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0062     throwIfIllegalParameter = cms.untracked.bool(True),
0063     wantSummary = cms.untracked.bool(False)
0064 )
0065 
0066 # Production Info
0067 process.configurationMetadata = cms.untracked.PSet(
0068     annotation = cms.untracked.string('step3 nevts:10'),
0069     name = cms.untracked.string('Applications'),
0070     version = cms.untracked.string('$Revision: 1.19 $')
0071 )
0072 
0073 # Output definition
0074 
0075 process.RECOSIMoutput = cms.OutputModule("PoolOutputModule",
0076     dataset = cms.untracked.PSet(
0077         dataTier = cms.untracked.string('GEN-SIM-RECO'),
0078         filterName = cms.untracked.string('')
0079     ),
0080     fileName = cms.untracked.string('file:step3_ZMM_dd4hep.root'),
0081     outputCommands = process.RECOSIMEventContent.outputCommands,
0082     splitLevel = cms.untracked.int32(0)
0083 )
0084 
0085 process.MINIAODSIMoutput = cms.OutputModule("PoolOutputModule",
0086     compressionAlgorithm = cms.untracked.string('LZMA'),
0087     compressionLevel = cms.untracked.int32(4),
0088     dataset = cms.untracked.PSet(
0089         dataTier = cms.untracked.string('MINIAODSIM'),
0090         filterName = cms.untracked.string('')
0091     ),
0092     dropMetaData = cms.untracked.string('ALL'),
0093     eventAutoFlushCompressedSize = cms.untracked.int32(-900),
0094     fastCloning = cms.untracked.bool(False),
0095     fileName = cms.untracked.string('file:step3_ZMM_dd4hep_inMINIAODSIM.root'),
0096     outputCommands = process.MINIAODSIMEventContent.outputCommands,
0097     overrideBranchesSplitLevel = cms.untracked.VPSet(
0098         cms.untracked.PSet(
0099             branch = cms.untracked.string('patPackedCandidates_packedPFCandidates__*'),
0100             splitLevel = cms.untracked.int32(99)
0101         ), 
0102         cms.untracked.PSet(
0103             branch = cms.untracked.string('recoGenParticles_prunedGenParticles__*'),
0104             splitLevel = cms.untracked.int32(99)
0105         ), 
0106         cms.untracked.PSet(
0107             branch = cms.untracked.string('patTriggerObjectStandAlones_slimmedPatTrigger__*'),
0108             splitLevel = cms.untracked.int32(99)
0109         ), 
0110         cms.untracked.PSet(
0111             branch = cms.untracked.string('patPackedGenParticles_packedGenParticles__*'),
0112             splitLevel = cms.untracked.int32(99)
0113         ), 
0114         cms.untracked.PSet(
0115             branch = cms.untracked.string('patJets_slimmedJets__*'),
0116             splitLevel = cms.untracked.int32(99)
0117         ), 
0118         cms.untracked.PSet(
0119             branch = cms.untracked.string('recoVertexs_offlineSlimmedPrimaryVertices__*'),
0120             splitLevel = cms.untracked.int32(99)
0121         ), 
0122         cms.untracked.PSet(
0123             branch = cms.untracked.string('recoCaloClusters_reducedEgamma_reducedESClusters_*'),
0124             splitLevel = cms.untracked.int32(99)
0125         ), 
0126         cms.untracked.PSet(
0127             branch = cms.untracked.string('EcalRecHitsSorted_reducedEgamma_reducedEBRecHits_*'),
0128             splitLevel = cms.untracked.int32(99)
0129         ), 
0130         cms.untracked.PSet(
0131             branch = cms.untracked.string('EcalRecHitsSorted_reducedEgamma_reducedEERecHits_*'),
0132             splitLevel = cms.untracked.int32(99)
0133         ), 
0134         cms.untracked.PSet(
0135             branch = cms.untracked.string('recoGenJets_slimmedGenJets__*'),
0136             splitLevel = cms.untracked.int32(99)
0137         ), 
0138         cms.untracked.PSet(
0139             branch = cms.untracked.string('patJets_slimmedJetsPuppi__*'),
0140             splitLevel = cms.untracked.int32(99)
0141         ), 
0142         cms.untracked.PSet(
0143             branch = cms.untracked.string('EcalRecHitsSorted_reducedEgamma_reducedESRecHits_*'),
0144             splitLevel = cms.untracked.int32(99)
0145         )
0146     ),
0147     overrideInputFileSplitLevels = cms.untracked.bool(True),
0148     splitLevel = cms.untracked.int32(0)
0149 )
0150 
0151 process.DQMoutput = cms.OutputModule("DQMRootOutputModule",
0152     dataset = cms.untracked.PSet(
0153         dataTier = cms.untracked.string('DQMIO'),
0154         filterName = cms.untracked.string('')
0155     ),
0156     fileName = cms.untracked.string('file:step3_ZMM_dd4hep_inDQM.root'),
0157     outputCommands = process.DQMEventContent.outputCommands,
0158     splitLevel = cms.untracked.int32(0)
0159 )
0160 
0161 # Additional output definition
0162 
0163 # Other statements
0164 process.mix.playback = True
0165 process.mix.digitizers = cms.PSet()
0166 for a in process.aliases: delattr(process, a)
0167 process.RandomNumberGeneratorService.restoreStateLabel=cms.untracked.string("randomEngineStateProducer")
0168 from Configuration.AlCa.GlobalTag import GlobalTag
0169 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2022_realistic', '')
0170 
0171 # Path and EndPath definitions
0172 process.raw2digi_step = cms.Path(process.RawToDigi)
0173 process.L1Reco_step = cms.Path(process.L1Reco)
0174 process.reconstruction_step = cms.Path(process.reconstruction)
0175 process.recosim_step = cms.Path(process.recosim)
0176 process.eventinterpretaion_step = cms.Path(process.EIsequence)
0177 process.Flag_trackingFailureFilter = cms.Path(process.goodVertices+process.trackingFailureFilter)
0178 process.Flag_goodVertices = cms.Path(process.primaryVertexFilter)
0179 process.Flag_CSCTightHaloFilter = cms.Path(process.CSCTightHaloFilter)
0180 process.Flag_trkPOGFilters = cms.Path(process.trkPOGFilters)
0181 process.Flag_HcalStripHaloFilter = cms.Path(process.HcalStripHaloFilter)
0182 process.Flag_trkPOG_logErrorTooManyClusters = cms.Path(~process.logErrorTooManyClusters)
0183 process.Flag_EcalDeadCellTriggerPrimitiveFilter = cms.Path(process.EcalDeadCellTriggerPrimitiveFilter)
0184 process.Flag_ecalLaserCorrFilter = cms.Path(process.ecalLaserCorrFilter)
0185 process.Flag_globalSuperTightHalo2016Filter = cms.Path(process.globalSuperTightHalo2016Filter)
0186 process.Flag_eeBadScFilter = cms.Path(process.eeBadScFilter)
0187 process.Flag_METFilters = cms.Path(process.metFilters)
0188 process.Flag_chargedHadronTrackResolutionFilter = cms.Path(process.chargedHadronTrackResolutionFilter)
0189 process.Flag_globalTightHalo2016Filter = cms.Path(process.globalTightHalo2016Filter)
0190 process.Flag_CSCTightHaloTrkMuUnvetoFilter = cms.Path(process.CSCTightHaloTrkMuUnvetoFilter)
0191 process.Flag_HBHENoiseIsoFilter = cms.Path(process.HBHENoiseFilterResultProducer+process.HBHENoiseIsoFilter)
0192 process.Flag_BadChargedCandidateSummer16Filter = cms.Path(process.BadChargedCandidateSummer16Filter)
0193 process.Flag_hcalLaserEventFilter = cms.Path(process.hcalLaserEventFilter)
0194 process.Flag_BadPFMuonFilter = cms.Path(process.BadPFMuonFilter)
0195 process.Flag_ecalBadCalibFilter = cms.Path(process.ecalBadCalibFilter)
0196 process.Flag_HBHENoiseFilter = cms.Path(process.HBHENoiseFilterResultProducer+process.HBHENoiseFilter)
0197 process.Flag_trkPOG_toomanystripclus53X = cms.Path(~process.toomanystripclus53X)
0198 process.Flag_EcalDeadCellBoundaryEnergyFilter = cms.Path(process.EcalDeadCellBoundaryEnergyFilter)
0199 process.Flag_BadChargedCandidateFilter = cms.Path(process.BadChargedCandidateFilter)
0200 process.Flag_trkPOG_manystripclus53X = cms.Path(~process.manystripclus53X)
0201 process.Flag_BadPFMuonSummer16Filter = cms.Path(process.BadPFMuonSummer16Filter)
0202 process.Flag_muonBadTrackFilter = cms.Path(process.muonBadTrackFilter)
0203 process.Flag_CSCTightHalo2015Filter = cms.Path(process.CSCTightHalo2015Filter)
0204 process.prevalidation_step = cms.Path(process.prevalidation)
0205 process.prevalidation_step1 = cms.Path(process.prevalidationMiniAOD)
0206 process.validation_step = cms.EndPath(process.validation)
0207 process.validation_step1 = cms.EndPath(process.validationMiniAOD)
0208 process.dqmoffline_step = cms.EndPath(process.DQMOffline)
0209 process.dqmoffline_1_step = cms.EndPath(process.DQMOfflineExtraHLT)
0210 process.dqmoffline_2_step = cms.EndPath(process.DQMOfflineMiniAOD)
0211 process.dqmofflineOnPAT_step = cms.EndPath(process.PostDQMOffline)
0212 process.dqmofflineOnPAT_1_step = cms.EndPath(process.PostDQMOffline)
0213 process.dqmofflineOnPAT_2_step = cms.EndPath(process.PostDQMOfflineMiniAOD)
0214 process.RECOSIMoutput_step = cms.EndPath(process.RECOSIMoutput)
0215 process.MINIAODSIMoutput_step = cms.EndPath(process.MINIAODSIMoutput)
0216 process.DQMoutput_step = cms.EndPath(process.DQMoutput)
0217 
0218 # Schedule definition
0219 process.schedule = cms.Schedule(process.raw2digi_step,process.L1Reco_step,process.reconstruction_step,process.recosim_step,process.eventinterpretaion_step,process.Flag_HBHENoiseFilter,process.Flag_HBHENoiseIsoFilter,process.Flag_CSCTightHaloFilter,process.Flag_CSCTightHaloTrkMuUnvetoFilter,process.Flag_CSCTightHalo2015Filter,process.Flag_globalTightHalo2016Filter,process.Flag_globalSuperTightHalo2016Filter,process.Flag_HcalStripHaloFilter,process.Flag_hcalLaserEventFilter,process.Flag_EcalDeadCellTriggerPrimitiveFilter,process.Flag_EcalDeadCellBoundaryEnergyFilter,process.Flag_ecalBadCalibFilter,process.Flag_goodVertices,process.Flag_eeBadScFilter,process.Flag_ecalLaserCorrFilter,process.Flag_trkPOGFilters,process.Flag_chargedHadronTrackResolutionFilter,process.Flag_muonBadTrackFilter,process.Flag_BadChargedCandidateFilter,process.Flag_BadPFMuonFilter,process.Flag_BadChargedCandidateSummer16Filter,process.Flag_BadPFMuonSummer16Filter,process.Flag_trkPOG_manystripclus53X,process.Flag_trkPOG_toomanystripclus53X,process.Flag_trkPOG_logErrorTooManyClusters,process.Flag_METFilters,process.prevalidation_step,process.prevalidation_step1,process.validation_step,process.validation_step1,process.dqmoffline_step,process.dqmoffline_1_step,process.dqmoffline_2_step,process.dqmofflineOnPAT_step,process.dqmofflineOnPAT_1_step,process.dqmofflineOnPAT_2_step,process.RECOSIMoutput_step,process.MINIAODSIMoutput_step,process.DQMoutput_step)
0220 process.schedule.associate(process.patTask)
0221 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0222 associatePatAlgosToolsTask(process)
0223 
0224 # customisation of the process.
0225 
0226 # Automatic addition of the customisation function from SimGeneral.MixingModule.fullMixCustomize_cff
0227 from SimGeneral.MixingModule.fullMixCustomize_cff import setCrossingFrameOn 
0228 
0229 #call to customisation function setCrossingFrameOn imported from SimGeneral.MixingModule.fullMixCustomize_cff
0230 process = setCrossingFrameOn(process)
0231 
0232 # End of customisation functions
0233 #do not add changes to your config after this point (unless you know what you are doing)
0234 #from FWCore.ParameterSet.Utilities import convertToUnscheduled
0235 #process=convertToUnscheduled(process)
0236 
0237 # customisation of the process.
0238 
0239 # Automatic addition of the customisation function from PhysicsTools.PatAlgos.slimming.miniAOD_tools
0240 from PhysicsTools.PatAlgos.slimming.miniAOD_tools import miniAOD_customizeAllMC 
0241 
0242 #call to customisation function miniAOD_customizeAllMC imported from PhysicsTools.PatAlgos.slimming.miniAOD_tools
0243 process = miniAOD_customizeAllMC(process)
0244 
0245 # End of customisation functions
0246 
0247 # Customisation from command line
0248 
0249 #Have logErrorHarvester wait for the same EDProducers to finish as those providing data for the OutputModule
0250 from FWCore.Modules.logErrorHarvester_cff import customiseLogErrorHarvesterUsingOutputCommands
0251 process = customiseLogErrorHarvesterUsingOutputCommands(process)
0252 
0253 # Add early deletion of temporary data products to reduce peak memory need
0254 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0255 process = customiseEarlyDelete(process)
0256 # End adding early deletion