Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
# Auto generated configuration file
# using: 
# Revision: 1.168 
# Source: /cvs_server/repositories/CMSSW/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v 
# with command line options: GeneratorInterface/AMPTInterface/amptDefault_cfi.py -s GEN --conditions auto:mc --datatier GEN --eventcontent RAWSIM -n 1 --scenario HeavyIons --no_exec
import FWCore.ParameterSet.Config as cms

process = cms.Process('GEN')

# import of standard configurations
process.load('SimGeneral.MixingModule.mixNoPU_cfi')
process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
process.load('Configuration.Geometry.GeometrySimDB_cff')
process.load('Configuration.StandardSequences.MagneticField_38T_cff')
process.load('Configuration.StandardSequences.Generator_cff')
process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic8TeVCollision_cfi')
process.load('GeneratorInterface.Core.genFilterSummary_cff')
process.load('Configuration.StandardSequences.SimIdeal_cff')
process.load('Configuration.StandardSequences.EndOfProcess_cff')
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')

process.load('Configuration.StandardSequences.Services_cff')
process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
process.load('FWCore.MessageService.MessageLogger_cfi')
process.load('Configuration.EventContent.EventContentHeavyIons_cff')

process.configurationMetadata = cms.untracked.PSet(
    version = cms.untracked.string('$Revision: 1.2 $'),
    annotation = cms.untracked.string('AMPT generator'),
    name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/CMSSW/GeneratorInterface/AMPTInterface/python/amptDefault_cfi.py,v $')
)
process.maxEvents = cms.untracked.PSet(
    input = cms.untracked.int32(10)
)
process.options = cms.untracked.PSet(

)
# Input source
process.source = cms.Source("EmptySource")

# Output definition
process.output = cms.OutputModule("PoolOutputModule",
    splitLevel = cms.untracked.int32(0),
    outputCommands = process.RAWSIMEventContent.outputCommands,
    fileName = cms.untracked.string('amptStringMelting_5p5TeV_cfi_py_GEN.root'),
    dataset = cms.untracked.PSet(
        dataTier = cms.untracked.string('GEN'),
        filterName = cms.untracked.string('')
    ),
    SelectEvents = cms.untracked.PSet(
        SelectEvents = cms.vstring('generation_step')
    )
)

# Additional output definition

# Other statements
process.GlobalTag.globaltag = 'STARTHI71_V2::All'
process.generator = cms.EDFilter("AMPTGeneratorFilter",
                                 diquarky = cms.double(0.0),
                                 diquarkx = cms.double(0.0),
                                 diquarkpx = cms.double(7.0),
                                 ntmax = cms.int32(150),
                                 dpcoal = cms.double(1000000.0),
                                 diquarkembedding = cms.int32(0),
                                 maxmiss = cms.int32(1000),
                                 ktkick = cms.int32(1),
                                 mu = cms.double(2.265),
                                 quenchingpar = cms.double(2.0),
                                 popcornpar = cms.double(1.0),
                                 drcoal = cms.double(1000000.0),
                                 amptmode = cms.int32(4), 
                                 izpc = cms.int32(0),
                                 popcornmode = cms.bool(True),
                                 minijetpt = cms.double(-7.0),
                                 ks0decay = cms.bool(False),
                                 alpha = cms.double(0.33),
                                 dt = cms.double(0.2),
                                 rotateEventPlane = cms.bool(True),
                                 shadowingmode = cms.bool(True),
                                 diquarkpy = cms.double(0.0),
                                 deuteronfactor = cms.int32(1),
                                 stringFragB = cms.double(0.15),
                                 quenchingmode = cms.bool(False),
                                 stringFragA = cms.double(0.55),
                                 deuteronmode = cms.int32(0),
                                 doInitialAndFinalRadiation = cms.int32(3),
                                 phidecay = cms.bool(True),
                                 deuteronxsec = cms.int32(1),
                                 pthard = cms.double(2.0),
                                 firstRun = cms.untracked.uint32(1),
                                 frame = cms.string('CMS'),
                                 targ = cms.string('A'),
                                 izp = cms.int32(82),
                                 bMin = cms.double(0),
                                 firstEvent = cms.untracked.uint32(1),
                                 izt = cms.int32(82),
                                 proj = cms.string('A'),
                                 comEnergy = cms.double(5500.0),
                                 iat = cms.int32(208),
                                 bMax = cms.double(15),
                                 iap = cms.int32(208)
                                 )

# Path and EndPath definitions
process.generation_step = cms.Path(process.pgen_hi)
process.endjob_step = cms.Path(process.endOfProcess)
process.out_step = cms.EndPath(process.output)

# Schedule definition
process.schedule = cms.Schedule(process.generation_step,process.endjob_step,process.out_step)


from IOMC.RandomEngine.RandomServiceHelper import RandomNumberServiceHelper
randSvc = RandomNumberServiceHelper(process.RandomNumberGeneratorService)
randSvc.populate()

# special treatment in case of production filter sequence  
for path in process.paths: 
    getattr(process,path)._seq = process.generator*getattr(process,path)._seq