Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:29:34

0001 # Auto generated configuration file
0002 # using: 
0003 # Revision: 1.168 
0004 # Source: /cvs_server/repositories/CMSSW/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v 
0005 # with command line options: GeneratorInterface/AMPTInterface/amptDefault_cfi.py -s GEN --conditions auto:mc --datatier GEN --eventcontent RAWSIM -n 1 --scenario HeavyIons --no_exec
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 process = cms.Process('GEN')
0009 
0010 # import of standard configurations
0011 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0012 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0013 process.load('Configuration.Geometry.GeometrySimDB_cff')
0014 process.load('Configuration.StandardSequences.MagneticField_38T_cff')
0015 process.load('Configuration.StandardSequences.Generator_cff')
0016 process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic8TeVCollision_cfi')
0017 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0018 process.load('Configuration.StandardSequences.SimIdeal_cff')
0019 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0020 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0021 
0022 process.load('Configuration.StandardSequences.Services_cff')
0023 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0024 process.load('FWCore.MessageService.MessageLogger_cfi')
0025 process.load('Configuration.EventContent.EventContentHeavyIons_cff')
0026 
0027 process.configurationMetadata = cms.untracked.PSet(
0028     version = cms.untracked.string('$Revision: 1.2 $'),
0029     annotation = cms.untracked.string('AMPT generator'),
0030     name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/CMSSW/GeneratorInterface/AMPTInterface/python/amptDefault_cfi.py,v $')
0031 )
0032 process.maxEvents = cms.untracked.PSet(
0033     input = cms.untracked.int32(10)
0034 )
0035 process.options = cms.untracked.PSet(
0036 
0037 )
0038 # Input source
0039 process.source = cms.Source("EmptySource")
0040 
0041 # Output definition
0042 process.output = cms.OutputModule("PoolOutputModule",
0043     splitLevel = cms.untracked.int32(0),
0044     outputCommands = process.RAWSIMEventContent.outputCommands,
0045     fileName = cms.untracked.string('amptStringMelting_5p5TeV_cfi_py_GEN.root'),
0046     dataset = cms.untracked.PSet(
0047         dataTier = cms.untracked.string('GEN'),
0048         filterName = cms.untracked.string('')
0049     ),
0050     SelectEvents = cms.untracked.PSet(
0051         SelectEvents = cms.vstring('generation_step')
0052     )
0053 )
0054 
0055 # Additional output definition
0056 
0057 # Other statements
0058 process.GlobalTag.globaltag = 'STARTHI71_V2::All'
0059 process.generator = cms.EDFilter("AMPTGeneratorFilter",
0060                                  diquarky = cms.double(0.0),
0061                                  diquarkx = cms.double(0.0),
0062                                  diquarkpx = cms.double(7.0),
0063                                  ntmax = cms.int32(150),
0064                                  dpcoal = cms.double(1000000.0),
0065                                  diquarkembedding = cms.int32(0),
0066                                  maxmiss = cms.int32(1000),
0067                                  ktkick = cms.int32(1),
0068                                  mu = cms.double(2.265),
0069                                  quenchingpar = cms.double(2.0),
0070                                  popcornpar = cms.double(1.0),
0071                                  drcoal = cms.double(1000000.0),
0072                                  amptmode = cms.int32(4), 
0073                                  izpc = cms.int32(0),
0074                                  popcornmode = cms.bool(True),
0075                                  minijetpt = cms.double(-7.0),
0076                                  ks0decay = cms.bool(False),
0077                                  alpha = cms.double(0.33),
0078                                  dt = cms.double(0.2),
0079                                  rotateEventPlane = cms.bool(True),
0080                                  shadowingmode = cms.bool(True),
0081                                  diquarkpy = cms.double(0.0),
0082                                  deuteronfactor = cms.int32(1),
0083                                  stringFragB = cms.double(0.15),
0084                                  quenchingmode = cms.bool(False),
0085                                  stringFragA = cms.double(0.55),
0086                                  deuteronmode = cms.int32(0),
0087                                  doInitialAndFinalRadiation = cms.int32(3),
0088                                  phidecay = cms.bool(True),
0089                                  deuteronxsec = cms.int32(1),
0090                                  pthard = cms.double(2.0),
0091                                  firstRun = cms.untracked.uint32(1),
0092                                  frame = cms.string('CMS'),
0093                                  targ = cms.string('A'),
0094                                  izp = cms.int32(82),
0095                                  bMin = cms.double(0),
0096                                  firstEvent = cms.untracked.uint32(1),
0097                                  izt = cms.int32(82),
0098                                  proj = cms.string('A'),
0099                                  comEnergy = cms.double(5500.0),
0100                                  iat = cms.int32(208),
0101                                  bMax = cms.double(15),
0102                                  iap = cms.int32(208)
0103                                  )
0104 
0105 # Path and EndPath definitions
0106 process.generation_step = cms.Path(process.pgen_hi)
0107 process.endjob_step = cms.Path(process.endOfProcess)
0108 process.out_step = cms.EndPath(process.output)
0109 
0110 # Schedule definition
0111 process.schedule = cms.Schedule(process.generation_step,process.endjob_step,process.out_step)
0112 
0113 
0114 from IOMC.RandomEngine.RandomServiceHelper import RandomNumberServiceHelper
0115 randSvc = RandomNumberServiceHelper(process.RandomNumberGeneratorService)
0116 randSvc.populate()
0117 
0118 # special treatment in case of production filter sequence  
0119 for path in process.paths: 
0120     getattr(process,path)._seq = process.generator*getattr(process,path)._seq