CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
WM_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/WM_cfg.py,v $'),
34  annotation = cms.untracked.string('RelVal FastSim W to mu nu')
35 )
36 process.ReleaseValidation = cms.untracked.PSet(
37  eventsPerJob = cms.untracked.uint32(1000),
38  totalNumberOfEvents = cms.untracked.uint32(25000),
39  primaryDatasetName = cms.untracked.string('RelValFastSimWM')
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  pythiaPylistVerbosity = cms.untracked.int32(0),
65  filterEfficiency = cms.untracked.double(1.0),
66  pythiaHepMCVerbosity = cms.untracked.bool(False),
67  crossSection = cms.untracked.double(17120.0),
68  maxEventsToPrint = cms.untracked.int32(0),
69  PythiaParameters = cms.PSet(
70  process.pythiaUESettingsBlock,
71  processParameters = cms.vstring('MSEL = 0 !User defined processes',
72  'MSUB(2) = 1 !W production',
73  'MDME(190,1) = 0 !W decay into dbar u',
74  'MDME(191,1) = 0 !W decay into dbar c',
75  'MDME(192,1) = 0 !W decay into dbar t',
76  'MDME(194,1) = 0 !W decay into sbar u',
77  'MDME(195,1) = 0 !W decay into sbar c',
78  'MDME(196,1) = 0 !W decay into sbar t',
79  'MDME(198,1) = 0 !W decay into bbar u',
80  'MDME(199,1) = 0 !W decay into bbar c',
81  'MDME(200,1) = 0 !W decay into bbar t',
82  'MDME(205,1) = 0 !W decay into bbar tp',
83  'MDME(206,1) = 0 !W decay into e+ nu_e',
84  'MDME(207,1) = 1 !W decay into mu+ nu_mu',
85  'MDME(208,1) = 0 !W decay into tau+ nu_tau'),
86  # This is a vector of ParameterSet names to be read, in this order
87  parameterSets = cms.vstring('pythiaUESettings',
88  'processParameters')
89  )
90 )
91 
92 process.Timing = cms.Service("Timing")
93 
94 process.o1 = cms.OutputModule("PoolOutputModule",
95  process.FEVTSIMEventContent,
96  dataset = cms.untracked.PSet(
97  dataTier = cms.untracked.string('GEN-SIM-DIGI-RECO')
98  ),
99  fileName = cms.untracked.string('FEVTWithHLT.root')
100 )
101 
102 process.simulation = cms.Path(process.simulationWithFamos+process.genEventScale+process.genEventWeight)
103 process.hltEnd = cms.Sequence(process.dummyModule)
104 process.reconstruction = cms.Path(process.doCalo+process.towerMakerForAll+process.reconstructionWithFamos)
105 process.outpath = cms.EndPath(process.o1)
106 process.famosPileUp.UseTRandomEngine = True
107 process.famosSimHits.UseTRandomEngine = True
108 process.siTrackerGaussianSmearingRecHits.UseTRandomEngine = True
109 process.caloRecHits.UseTRandomEngine = True
110 process.paramMuons.UseTRandomEngine = True
111 process.famosPileUp.PileUpSimulator.averageNumber = 0.0
112 process.load("Configuration.StandardSequences.MagneticField_40T_cff")
113 #process.load("Configuration.StandardSequences.MagneticField_38T_cff")
114 process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True
115 process.famosSimHits.SimulateCalorimetry = True
116 process.famosSimHits.SimulateTracking = True
117 process.MessageLogger.destinations = ['detailedInfo.txt']
118