Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:15:06

0001 ###############################################################################
0002 # Way to use this:
0003 #   cmsRun runHGCalDDD_cfg.py geometry=D88
0004 #
0005 #   Options for geometry D88, D92, D93, D98, D99, D101
0006 #
0007 ###############################################################################
0008 import FWCore.ParameterSet.Config as cms
0009 import os, sys, imp, re
0010 import FWCore.ParameterSet.VarParsing as VarParsing
0011 
0012 ####################################################################
0013 ### SETUP OPTIONS
0014 options = VarParsing.VarParsing('standard')
0015 options.register('geometry',
0016                  "D88",
0017                   VarParsing.VarParsing.multiplicity.singleton,
0018                   VarParsing.VarParsing.varType.string,
0019                   "geometry of operations: D88, D92, D93, D98, D99, D101")
0020 
0021 ### get and parse the command line arguments
0022 options.parseArguments()
0023 
0024 print(options)
0025 
0026 ####################################################################
0027 # Use the options
0028 from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
0029 process = cms.Process('SIM',Phase2C17I13M9)
0030 
0031 geomFile = "Configuration.Geometry.GeometryExtended2026" + options.geometry + "Reco_cff"
0032 
0033 print("Geometry file: ", geomFile)
0034 
0035 # import of standard configurations
0036 process.load(geomFile)
0037 process.load('Configuration.StandardSequences.Services_cff')
0038 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0039 process.load('FWCore.MessageService.MessageLogger_cfi')
0040 process.load('Configuration.EventContent.EventContent_cff')
0041 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0042 process.load('Configuration.StandardSequences.MagneticField_cff')
0043 process.load('Configuration.StandardSequences.Generator_cff')
0044 process.load('IOMC.EventVertexGenerators.VtxSmearedHLLHC14TeV_cfi')
0045 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0046 process.load('Configuration.StandardSequences.SimIdeal_cff')
0047 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0048 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0049 
0050 process.maxEvents = cms.untracked.PSet(
0051     input = cms.untracked.int32(10),
0052     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0053 )
0054 
0055 # Input source
0056 process.source = cms.Source("EmptySource")
0057 
0058 process.options = cms.untracked.PSet(
0059     IgnoreCompletely = cms.untracked.vstring(),
0060     Rethrow = cms.untracked.vstring(),
0061     TryToContinue = cms.untracked.vstring(),
0062     allowUnscheduled = cms.obsolete.untracked.bool,
0063     canDeleteEarly = cms.untracked.vstring(),
0064     deleteNonConsumedUnscheduledModules = cms.untracked.bool(True),
0065     emptyRunLumiMode = cms.obsolete.untracked.string,
0066     eventSetup = cms.untracked.PSet(
0067         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0068             allowAnyLabel_=cms.required.untracked.uint32
0069         ),
0070         numberOfConcurrentIOVs = cms.untracked.uint32(1)
0071     ),
0072     fileMode = cms.untracked.string('FULLMERGE'),
0073     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0074     makeTriggerResults = cms.obsolete.untracked.bool,
0075     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0076     numberOfConcurrentRuns = cms.untracked.uint32(1),
0077     numberOfStreams = cms.untracked.uint32(0),
0078     numberOfThreads = cms.untracked.uint32(1),
0079     printDependencies = cms.untracked.bool(False),
0080     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0081     throwIfIllegalParameter = cms.untracked.bool(True),
0082     wantSummary = cms.untracked.bool(False)
0083 )
0084 
0085 # Production Info
0086 process.configurationMetadata = cms.untracked.PSet(
0087     annotation = cms.untracked.string('TTbar_14TeV_TuneCP5_cfi nevts:10'),
0088     name = cms.untracked.string('Applications'),
0089     version = cms.untracked.string('$Revision: 1.19 $')
0090 )
0091 
0092 
0093 # Additional output definition
0094 
0095 # Other statements
0096 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0097 from Configuration.AlCa.GlobalTag import GlobalTag
0098 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '')
0099 
0100 process.generator = cms.EDFilter("Pythia8GeneratorFilter",
0101     PythiaParameters = cms.PSet(
0102         parameterSets = cms.vstring(
0103             'pythia8CommonSettings', 
0104             'pythia8CP5Settings', 
0105             'processParameters'
0106         ),
0107         processParameters = cms.vstring(
0108             'Top:gg2ttbar = on ', 
0109             'Top:qqbar2ttbar = on ', 
0110             '6:m0 = 175 '
0111         ),
0112         pythia8CP5Settings = cms.vstring(
0113             'Tune:pp 14', 
0114             'Tune:ee 7', 
0115             'MultipartonInteractions:ecmPow=0.03344', 
0116             'MultipartonInteractions:bProfile=2', 
0117             'MultipartonInteractions:pT0Ref=1.41', 
0118             'MultipartonInteractions:coreRadius=0.7634', 
0119             'MultipartonInteractions:coreFraction=0.63', 
0120             'ColourReconnection:range=5.176', 
0121             'SigmaTotal:zeroAXB=off', 
0122             'SpaceShower:alphaSorder=2', 
0123             'SpaceShower:alphaSvalue=0.118', 
0124             'SigmaProcess:alphaSvalue=0.118', 
0125             'SigmaProcess:alphaSorder=2', 
0126             'MultipartonInteractions:alphaSvalue=0.118', 
0127             'MultipartonInteractions:alphaSorder=2', 
0128             'TimeShower:alphaSorder=2', 
0129             'TimeShower:alphaSvalue=0.118', 
0130             'SigmaTotal:mode = 0', 
0131             'SigmaTotal:sigmaEl = 21.89', 
0132             'SigmaTotal:sigmaTot = 100.309', 
0133             'PDF:pSet=LHAPDF6:NNPDF31_nnlo_as_0118'
0134         ),
0135         pythia8CommonSettings = cms.vstring(
0136             'Tune:preferLHAPDF = 2', 
0137             'Main:timesAllowErrors = 10000', 
0138             'Check:epTolErr = 0.01', 
0139             'Beams:setProductionScalesFromLHEF = off', 
0140             'SLHA:minMassSM = 1000.', 
0141             'ParticleDecays:limitTau0 = on', 
0142             'ParticleDecays:tau0Max = 10', 
0143             'ParticleDecays:allowPhotonRadiation = on'
0144         )
0145     ),
0146     comEnergy = cms.double(14000.0),
0147     filterEfficiency = cms.untracked.double(1.0),
0148     maxEventsToPrint = cms.untracked.int32(0),
0149     pythiaHepMCVerbosity = cms.untracked.bool(False),
0150     pythiaPylistVerbosity = cms.untracked.int32(0)
0151 )
0152 
0153 
0154 process.ProductionFilterSequence = cms.Sequence(process.generator)
0155 
0156 # Path and EndPath definitions
0157 process.generation_step = cms.Path(process.pgen)
0158 process.simulation_step = cms.Path(process.psim)
0159 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0160 process.endjob_step = cms.EndPath(process.endOfProcess)
0161 
0162 # Schedule definition
0163 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step)
0164 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0165 associatePatAlgosToolsTask(process)
0166 # filter all path with the production filter sequence
0167 for path in process.paths:
0168     getattr(process,path).insert(0, process.ProductionFilterSequence)
0169 
0170 
0171 
0172 # Customisation from command line
0173 
0174 # Add early deletion of temporary data products to reduce peak memory need
0175 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0176 process = customiseEarlyDelete(process)
0177 # End adding early deletion