Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-05-08 02:40:02

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