Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:36

0001 import FWCore.ParameterSet.Config as cms
0002 import os
0003 
0004 source = cms.Source("EmptySource")
0005 
0006 _generator = cms.EDFilter("SherpaGeneratorFilter",
0007   maxEventsToPrint = cms.int32(0),
0008   filterEfficiency = cms.untracked.double(1.0),
0009   crossSection = cms.untracked.double(-1),
0010   SherpaProcess = cms.string('ttbar_2j_MENLOPS_13TeV'),
0011   SherpackLocation = cms.string('/cvmfs/cms.cern.ch/phys_generator/gridpacks/slc7_amd64_gcc820/13TeV/sherpa/2.2.8'),
0012   SherpackChecksum = cms.string('4efdf38e0d189d58c65a554ef901d027'),
0013   FetchSherpack = cms.bool(True),
0014   SherpaPath = cms.string('./'),
0015   SherpaPathPiece = cms.string('./'),
0016   SherpaResultDir = cms.string('Result'),
0017   SherpaDefaultWeight = cms.double(1.0),
0018   SherpaParameters = cms.PSet(parameterSets = cms.vstring(
0019                              "MPI_Cross_Sections",
0020                              "Run"),
0021                               MPI_Cross_Sections = cms.vstring(
0022                 " MPIs in Sherpa, Model = Amisic:",
0023                 " semihard xsec = 39.5554 mb,",
0024                 " non-diffractive xsec = 17.0318 mb with nd factor = 0.3142."
0025                                                   ),
0026                               Run = cms.vstring(
0027                 " (run){",
0028                 " CORE_SCALE TTBar;",
0029                 " METS_BBAR_MODE 5;",
0030                 " NJET:=2; LJET:=2; QCUT:=20.;",
0031                 " ME_SIGNAL_GENERATOR Comix Amegic LOOPGEN;",
0032                 " OL_PREFIX={0};".format(os.environ['CMS_OPENLOOPS_PREFIX'] if 'CMS_OPENLOOPS_PREFIX' in os.environ else ''),
0033                 " LOOPGEN:=OpenLoops;",
0034                 " MI_HANDLER=Amisic;",
0035                 " NLO_SMEAR_THRESHOLD 1;",
0036                 " NLO_SMEAR_POWER 2;",
0037                 " HARD_DECAYS On;",
0038                 " HARD_SPIN_CORRELATIONS=1;",
0039                 " SOFT_SPIN_CORRELATIONS=1;",
0040                 " PDF_LIBRARY LHAPDFSherpa;",
0041                 " PDF_SET NNPDF31_nnlo_hessian_pdfas;",
0042                 " USE_PDF_ALPHAS=1;",
0043                 " BEAM_1=2212; BEAM_ENERGY_1=6500;",
0044                 " BEAM_2=2212; BEAM_ENERGY_2=6500;",
0045                 " STABLE[6] 0; WIDTH[6] 0; STABLE[24] 0;",
0046                 " EXCLUSIVE_CLUSTER_MODE 1;",
0047                 " HEPMC_TREE_LIKE=1;",
0048                 " PRETTY_PRINT=Off;",
0049                 "}(run)",
0050                 " (processes){",
0051                 " Process : 93 93 -> 6 -6 93{NJET};",
0052                 " Order (*,0); CKKW sqr(QCUT/E_CMS);",
0053                 " NLO_QCD_Mode MC@NLO {LJET};",
0054                 " ME_Generator Amegic {LJET};",
0055                 " RS_ME_Generator Comix {LJET};",
0056                 " Loop_Generator LOOPGEN {LJET};",
0057                 " Integration_Error 0.05 {3,4};",
0058                 " End process;",
0059                 "}(processes)"
0060                                                   ),
0061                              )
0062 )
0063 
0064 from GeneratorInterface.Core.ExternalGeneratorFilter import ExternalGeneratorFilter
0065 generator = ExternalGeneratorFilter(_generator)
0066 
0067 ProductionFilterSequence = cms.Sequence(generator)