CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MinBias_cfg.py
Go to the documentation of this file.
1 # The following comments couldn't be translated into the new config version:
2 
3 # Work-around because of a bug in HLT
4 # Reconstruction sequence
5 import FWCore.ParameterSet.Config as cms
6 
7 process = cms.Process("HLT")
8 process.load("Configuration.Generator.PythiaUESettings_cfi")
9 
10 # Famos sequences (With HLT)
11 process.load("FastSimulation.Configuration.CommonInputsFake_cff")
12 
13 process.load("FastSimulation.Configuration.FamosSequences_cff")
14 
15 # L1 Emulator and HLT Setup
16 process.load("FastSimulation.HighLevelTrigger.common.HLTSetup_cff")
17 
18 process.load("PhysicsTools.HepMCCandAlgos.genEventWeight_cfi")
19 
20 process.load("PhysicsTools.HepMCCandAlgos.genEventScale_cfi")
21 
22 # HLT paths
23 process.load("HLTrigger.Configuration.main.HLTpaths_cff")
24 
25 # To write out events
26 process.load("FastSimulation.Configuration.EventContent_cff")
27 
28 # Keep the logging output to a nice level #
29 process.load("FWCore.MessageService.MessageLogger_cfi")
30 
31 process.configurationMetadata = cms.untracked.PSet(
32  version = cms.untracked.string('$Revision: 1.1 $'),
33  name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/CMSSW/FastSimulation/Validation/python/MinBias_cfg.py,v $'),
34  annotation = cms.untracked.string('RelVal FastSim MinBias')
35 )
36 process.ReleaseValidation = cms.untracked.PSet(
37  eventsPerJob = cms.untracked.uint32(1000),
38  totalNumberOfEvents = cms.untracked.uint32(25000),
39  primaryDatasetName = cms.untracked.string('RelValFastSimMinBias')
40 )
41 process.maxEvents = cms.untracked.PSet(
42  input = cms.untracked.int32(10)
43 )
44 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
45  # This is to initialize the random engines of Famos
46  moduleSeeds = cms.PSet(
47  l1ParamMuons = cms.untracked.uint32(54525),
48  caloRecHits = cms.untracked.uint32(654321),
49  MuonSimHits = cms.untracked.uint32(97531),
50  muonCSCDigis = cms.untracked.uint32(525432),
51  muonDTDigis = cms.untracked.uint32(67673876),
52  famosSimHits = cms.untracked.uint32(13579),
53  paramMuons = cms.untracked.uint32(54525),
54  famosPileUp = cms.untracked.uint32(918273),
55  VtxSmeared = cms.untracked.uint32(123456789),
56  muonRPCDigis = cms.untracked.uint32(524964),
57  siTrackerGaussianSmearingRecHits = cms.untracked.uint32(24680)
58  ),
59  # This is to initialize the random engine of the source
60  sourceSeed = cms.untracked.uint32(123456789)
61 )
62 
63 process.source = cms.Source("PythiaSource",
64  pythiaHepMCVerbosity = cms.untracked.bool(False),
65  maxEventsToPrint = cms.untracked.int32(0),
66  pythiaPylistVerbosity = cms.untracked.int32(0),
67  filterEfficiency = cms.untracked.double(1.0),
68  PythiaParameters = cms.PSet(
69  process.pythiaUESettingsBlock,
70  processParameters = cms.vstring('MSEL=0 ! User defined processes',
71  'MSUB(11)=1 ! Min bias process',
72  'MSUB(12)=1 ! Min bias process',
73  'MSUB(13)=1 ! Min bias process',
74  'MSUB(28)=1 ! Min bias process',
75  'MSUB(53)=1 ! Min bias process',
76  'MSUB(68)=1 ! Min bias process',
77  'MSUB(92)=1 ! Min bias process, single diffractive',
78  'MSUB(93)=1 ! Min bias process, single diffractive',
79  'MSUB(94)=1 ! Min bias process, double diffractive',
80  'MSUB(95)=1 ! Min bias process'),
81  # This is a vector of ParameterSet names to be read, in this order
82  parameterSets = cms.vstring('pythiaUESettings',
83  'processParameters')
84  )
85 )
86 
87 process.Timing = cms.Service("Timing")
88 
89 process.o1 = cms.OutputModule("PoolOutputModule",
90  process.FEVTSIMEventContent,
91  dataset = cms.untracked.PSet(
92  dataTier = cms.untracked.string('GEN-SIM-DIGI-RECO')
93  ),
94  fileName = cms.untracked.string('FEVTWithHLT.root')
95 )
96 
97 process.simulation = cms.Path(process.simulationWithFamos+process.genEventScale+process.genEventWeight)
98 process.hltEnd = cms.Sequence(process.dummyModule)
99 process.reconstruction = cms.Path(process.doCalo+process.towerMakerForAll+process.reconstructionWithFamos)
100 process.outpath = cms.EndPath(process.o1)
101 process.famosPileUp.UseTRandomEngine = True
102 process.famosSimHits.UseTRandomEngine = True
103 process.siTrackerGaussianSmearingRecHits.UseTRandomEngine = True
104 process.caloRecHits.UseTRandomEngine = True
105 process.paramMuons.UseTRandomEngine = True
106 process.famosPileUp.PileUpSimulator.averageNumber = 0.0
107 process.load("Configuration.StandardSequences.MagneticField_40T_cff")
108 #process.load("Configuration.StandardSequences.MagneticField_38T_cff")
109 process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True
110 process.famosSimHits.SimulateCalorimetry = True
111 process.famosSimHits.SimulateTracking = True
112 process.MessageLogger.destinations = ['detailedInfo.txt']
113