Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 # Auto generated configuration file
0002 # using: 
0003 # Revision: 1.19 
0004 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v 
0005 # with command line options: Configuration/Generator/python/DYToLL01234Jets_5FS_TuneCH3_13TeV_madgraphMLM_herwig7_cff.py --conditions auto:run2_mc -s LHE,GEN --datatier LHE,GEN -n 10 --eventcontent LHE,RAWSIM --no_exec
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 
0009 
0010 process = cms.Process('GEN')
0011 
0012 # import of standard configurations
0013 process.load('Configuration.StandardSequences.Services_cff')
0014 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0015 process.load('FWCore.MessageService.MessageLogger_cfi')
0016 process.load('Configuration.EventContent.EventContent_cff')
0017 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0018 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0019 process.load('Configuration.StandardSequences.MagneticField_cff')
0020 process.load('Configuration.StandardSequences.Generator_cff')
0021 process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic50ns13TeVCollision_cfi')
0022 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0023 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0024 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(10),
0028     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0029 )
0030 
0031 # Input source
0032 process.source = cms.Source("EmptySource")
0033 
0034 process.options = cms.untracked.PSet(
0035     IgnoreCompletely = cms.untracked.vstring(),
0036     Rethrow = cms.untracked.vstring(),
0037     TryToContinue = cms.untracked.vstring(),
0038     allowUnscheduled = cms.obsolete.untracked.bool,
0039     canDeleteEarly = cms.untracked.vstring(),
0040     deleteNonConsumedUnscheduledModules = cms.untracked.bool(True),
0041     emptyRunLumiMode = cms.obsolete.untracked.string,
0042     eventSetup = cms.untracked.PSet(
0043         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0044             allowAnyLabel_=cms.required.untracked.uint32
0045         ),
0046         numberOfConcurrentIOVs = cms.untracked.uint32(1)
0047     ),
0048     fileMode = cms.untracked.string('FULLMERGE'),
0049     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0050     makeTriggerResults = cms.obsolete.untracked.bool,
0051     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0052     numberOfConcurrentRuns = cms.untracked.uint32(1),
0053     numberOfStreams = cms.untracked.uint32(0),
0054     numberOfThreads = cms.untracked.uint32(1),
0055     printDependencies = cms.untracked.bool(False),
0056     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0057     throwIfIllegalParameter = cms.untracked.bool(True),
0058     wantSummary = cms.untracked.bool(False)
0059 )
0060 
0061 # Production Info
0062 process.configurationMetadata = cms.untracked.PSet(
0063     annotation = cms.untracked.string('Configuration/Generator/python/DYToLL01234Jets_5FS_TuneCH3_13TeV_madgraphMLM_herwig7_cff.py nevts:10'),
0064     name = cms.untracked.string('Applications'),
0065     version = cms.untracked.string('$Revision: 1.19 $')
0066 )
0067 
0068 # Output definition
0069 
0070 process.LHEoutput = cms.OutputModule("PoolOutputModule",
0071     dataset = cms.untracked.PSet(
0072         dataTier = cms.untracked.string('LHE'),
0073         filterName = cms.untracked.string('')
0074     ),
0075     fileName = cms.untracked.string('DYToLL01234Jets_5FS_TuneCH3_13TeV_madgraphMLM_herwig7_cff_py_LHE_GEN.root'),
0076     outputCommands = process.LHEEventContent.outputCommands,
0077     splitLevel = cms.untracked.int32(0)
0078 )
0079 
0080 process.RAWSIMoutput = cms.OutputModule("PoolOutputModule",
0081     SelectEvents = cms.untracked.PSet(
0082         SelectEvents = cms.vstring('generation_step')
0083     ),
0084     compressionAlgorithm = cms.untracked.string('LZMA'),
0085     compressionLevel = cms.untracked.int32(1),
0086     dataset = cms.untracked.PSet(
0087         dataTier = cms.untracked.string('GEN'),
0088         filterName = cms.untracked.string('')
0089     ),
0090     eventAutoFlushCompressedSize = cms.untracked.int32(20971520),
0091     fileName = cms.untracked.string('DYToLL01234Jets_5FS_TuneCH3_13TeV_madgraphMLM_herwig7_cff_py_LHE_GEN_inRAWSIM.root'),
0092     outputCommands = process.RAWSIMEventContent.outputCommands,
0093     splitLevel = cms.untracked.int32(0)
0094 )
0095 
0096 # Additional output definition
0097 
0098 # Other statements
0099 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0100 from Configuration.AlCa.GlobalTag import GlobalTag
0101 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0102 
0103 process.generator = cms.EDFilter("Herwig7GeneratorFilter",
0104     configFiles = cms.vstring(),
0105     crossSection = cms.untracked.double(-1),
0106     dataLocation = cms.string('${HERWIGPATH:-6}'),
0107     eventHandlers = cms.string('/Herwig/EventHandlers'),
0108     filterEfficiency = cms.untracked.double(1.0),
0109     generatorModule = cms.string('/Herwig/Generators/EventGenerator'),
0110     herwig7CH3AlphaS = cms.vstring(
0111         'cd /Herwig/Shower', 
0112         'set AlphaQCD:AlphaIn 0.118', 
0113         'cd /'
0114     ),
0115     herwig7CH3MPISettings = cms.vstring(
0116         'set /Herwig/Hadronization/ColourReconnector:ReconnectionProbability 0.4712', 
0117         'set /Herwig/UnderlyingEvent/MPIHandler:pTmin0 3.04', 
0118         'set /Herwig/UnderlyingEvent/MPIHandler:InvRadius 1.284', 
0119         'set /Herwig/UnderlyingEvent/MPIHandler:Power 0.1362'
0120     ),
0121     herwig7CH3PDF = cms.vstring(
0122         'cd /Herwig/Partons', 
0123         'create ThePEG::LHAPDF PDFSet_nnlo ThePEGLHAPDF.so', 
0124         'set PDFSet_nnlo:PDFName NNPDF31_nnlo_as_0118.LHgrid', 
0125         'set PDFSet_nnlo:RemnantHandler HadronRemnants', 
0126         'set /Herwig/Particles/p+:PDF PDFSet_nnlo', 
0127         'set /Herwig/Particles/pbar-:PDF PDFSet_nnlo', 
0128         'set /Herwig/Partons/PPExtractor:FirstPDF  PDFSet_nnlo', 
0129         'set /Herwig/Partons/PPExtractor:SecondPDF PDFSet_nnlo', 
0130         'set /Herwig/Shower/ShowerHandler:PDFA PDFSet_nnlo', 
0131         'set /Herwig/Shower/ShowerHandler:PDFB PDFSet_nnlo', 
0132         'create ThePEG::LHAPDF PDFSet_lo ThePEGLHAPDF.so', 
0133         'set PDFSet_lo:PDFName NNPDF31_lo_as_0130.LHgrid', 
0134         'set PDFSet_lo:RemnantHandler HadronRemnants', 
0135         'set /Herwig/Shower/ShowerHandler:PDFARemnant PDFSet_lo', 
0136         'set /Herwig/Shower/ShowerHandler:PDFBRemnant PDFSet_lo', 
0137         'set /Herwig/Partons/MPIExtractor:FirstPDF PDFSet_lo', 
0138         'set /Herwig/Partons/MPIExtractor:SecondPDF PDFSet_lo', 
0139         'cd /'
0140     ),
0141     herwig7StableParticlesForDetector = cms.vstring(
0142         'set /Herwig/Decays/DecayHandler:MaxLifeTime 10*mm', 
0143         'set /Herwig/Decays/DecayHandler:LifeTimeOption Average'
0144     ),
0145     hw_mg_merging_settings = cms.vstring(
0146         'cd /Herwig/EventHandlers', 
0147         'library HwFxFx.so', 
0148         'create Herwig::FxFxEventHandler LesHouchesHandler', 
0149         'set LesHouchesHandler:PartonExtractor /Herwig/Partons/PPExtractor', 
0150         'set LesHouchesHandler:HadronizationHandler /Herwig/Hadronization/ClusterHadHandler', 
0151         'set LesHouchesHandler:DecayHandler /Herwig/Decays/DecayHandler', 
0152         'set LesHouchesHandler:WeightOption VarNegWeight', 
0153         'set /Herwig/Generators/EventGenerator:EventHandler  /Herwig/EventHandlers/LesHouchesHandler', 
0154         'create ThePEG::Cuts /Herwig/Cuts/NoCuts', 
0155         'cd /Herwig/EventHandlers', 
0156         'create Herwig::FxFxFileReader FxFxLHReader', 
0157         'insert LesHouchesHandler:FxFxReaders[0] FxFxLHReader', 
0158         'cd /Herwig/Shower', 
0159         'library HwFxFxHandler.so', 
0160         'create Herwig::FxFxHandler FxFxHandler', 
0161         'set /Herwig/Shower/FxFxHandler:SplittingGenerator /Herwig/Shower/SplittingGenerator', 
0162         'set /Herwig/Shower/FxFxHandler:KinematicsReconstructor /Herwig/Shower/KinematicsReconstructor', 
0163         'set /Herwig/Shower/FxFxHandler:PartnerFinder /Herwig/Shower/PartnerFinder', 
0164         'set /Herwig/EventHandlers/LesHouchesHandler:CascadeHandler /Herwig/Shower/FxFxHandler', 
0165         'set /Herwig/Partons/PDFSet_nnlo:PDFName NNPDF31_nnlo_as_0118', 
0166         'set /Herwig/Partons/RemnantDecayer:AllowTop Yes', 
0167         'set /Herwig/Partons/PDFSet_nnlo:RemnantHandler /Herwig/Partons/HadronRemnants', 
0168         'set /Herwig/Particles/p+:PDF /Herwig/Partons/PDFSet_nnlo', 
0169         'set /Herwig/Particles/pbar-:PDF /Herwig/Partons/PDFSet_nnlo', 
0170         'set /Herwig/Partons/PPExtractor:FirstPDF  /Herwig/Partons/PDFSet_nnlo', 
0171         'set /Herwig/Partons/PPExtractor:SecondPDF /Herwig/Partons/PDFSet_nnlo', 
0172         'set /Herwig/Shower/ShowerHandler:PDFA /Herwig/Partons/PDFSet_nnlo', 
0173         'set /Herwig/Shower/ShowerHandler:PDFB /Herwig/Partons/PDFSet_nnlo', 
0174         'set /Herwig/EventHandlers/FxFxLHReader:FileName cmsgrid_final.lhe', 
0175         'set /Herwig/EventHandlers/FxFxLHReader:WeightWarnings false', 
0176         'set /Herwig/EventHandlers/FxFxLHReader:AllowedToReOpen No', 
0177         'set /Herwig/EventHandlers/FxFxLHReader:InitPDFs 0', 
0178         'set /Herwig/EventHandlers/FxFxLHReader:Cuts /Herwig/Cuts/NoCuts', 
0179         'set /Herwig/EventHandlers/FxFxLHReader:MomentumTreatment RescaleEnergy', 
0180         'set /Herwig/EventHandlers/FxFxLHReader:PDFA /Herwig/Partons/PDFSet_nnlo', 
0181         'set /Herwig/EventHandlers/FxFxLHReader:PDFB /Herwig/Partons/PDFSet_nnlo', 
0182         'set /Herwig/Shower/ShowerHandler:MaxPtIsMuF Yes', 
0183         'set /Herwig/Shower/ShowerHandler:RestrictPhasespace Yes', 
0184         'set /Herwig/Shower/PartnerFinder:PartnerMethod Random', 
0185         'set /Herwig/Shower/PartnerFinder:ScaleChoice Partner', 
0186         'set /Herwig/Shower/KinematicsReconstructor:InitialInitialBoostOption LongTransBoost', 
0187         'set /Herwig/Shower/KinematicsReconstructor:ReconstructionOption General', 
0188         'set /Herwig/Shower/KinematicsReconstructor:InitialStateReconOption Rapidity', 
0189         'set /Herwig/Shower/ShowerHandler:SpinCorrelations Yes', 
0190         'cd /Herwig/Shower', 
0191         'set /Herwig/Shower/FxFxHandler:MPIHandler  /Herwig/UnderlyingEvent/MPIHandler', 
0192         'set /Herwig/Shower/FxFxHandler:RemDecayer  /Herwig/Partons/RemnantDecayer', 
0193         'set /Herwig/Shower/FxFxHandler:ShowerAlpha  AlphaQCD', 
0194         'set FxFxHandler:HeavyQVeto Yes', 
0195         'set FxFxHandler:HardProcessDetection Automatic', 
0196         'set FxFxHandler:drjmin 0', 
0197         'cd /Herwig/Shower', 
0198         'set FxFxHandler:VetoIsTurnedOff VetoingIsOn', 
0199         'set FxFxHandler:ETClus 20*GeV', 
0200         'set FxFxHandler:RClus 1.0', 
0201         'set FxFxHandler:EtaClusMax 10', 
0202         'set FxFxHandler:RClusFactor 1.5'
0203     ),
0204     hw_user_settings = cms.vstring(
0205         'set FxFxHandler:MergeMode TreeMG5', 
0206         'set FxFxHandler:njetsmax 4'
0207     ),
0208     parameterSets = cms.vstring(
0209         'herwig7CH3PDF', 
0210         'herwig7CH3AlphaS', 
0211         'herwig7CH3MPISettings', 
0212         'herwig7StableParticlesForDetector', 
0213         'hw_mg_merging_settings', 
0214         'hw_user_settings'
0215     ),
0216     repository = cms.string('${HERWIGPATH}/HerwigDefaults.rpo'),
0217     run = cms.string('InterfaceMatchboxTest'),
0218     runModeList = cms.untracked.string('read,run'),
0219     seed = cms.untracked.int32(12345)
0220 )
0221 
0222 
0223 process.externalLHEProducer = cms.EDProducer("ExternalLHEProducer",
0224     args = cms.vstring(
0225         '/cvmfs/cms.cern.ch/phys_generator/gridpacks/UL/13TeV/madgraph/V5_2.6.5/dyellell01234j_5f_LO_MLM_v2/DYJets_HT-incl_slc6_amd64_gcc630_CMSSW_9_3_16_tarball.tar.xz', 
0226         'false', 
0227         'slc6_amd64_gcc630', 
0228         'CMSSW_9_3_16'
0229     ),
0230     nEvents = cms.untracked.uint32(10),
0231     numberOfParameters = cms.uint32(4),
0232     outputFile = cms.string('cmsgrid_final.lhe'),
0233     scriptName = cms.FileInPath('GeneratorInterface/LHEInterface/data/run_generic_tarball_cvmfs.sh')
0234 )
0235 
0236 
0237 process.ProductionFilterSequence = cms.Sequence(process.generator)
0238 
0239 # Path and EndPath definitions
0240 process.lhe_step = cms.Path(process.externalLHEProducer)
0241 process.generation_step = cms.Path(process.pgen)
0242 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0243 process.endjob_step = cms.EndPath(process.endOfProcess)
0244 process.LHEoutput_step = cms.EndPath(process.LHEoutput)
0245 process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
0246 
0247 # Schedule definition
0248 process.schedule = cms.Schedule(process.lhe_step,process.generation_step,process.genfiltersummary_step,process.endjob_step,process.LHEoutput_step,process.RAWSIMoutput_step)
0249 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0250 associatePatAlgosToolsTask(process)
0251 # filter all path with the production filter sequence
0252 for path in process.paths:
0253     if path in ['lhe_step']: continue
0254     getattr(process,path).insert(0, process.ProductionFilterSequence)
0255 
0256 
0257 
0258 # Customisation from command line
0259 
0260 # Add early deletion of temporary data products to reduce peak memory need
0261 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0262 process = customiseEarlyDelete(process)
0263 # End adding early deletion