CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RandomServiceInitialization_cff.py
Go to the documentation of this file.
1 # This FastSim-specific configuration is not needed anymore; this will be soon deprecated, please replace it with:
2 # process.load("IOMC.RandomEngine.IOMC_cff")
3 
4 
5 # Set random seeds.
6 
7 import FWCore.ParameterSet.Config as cms
8 
9 RandomNumberGeneratorService = cms.Service(
10 
11  "RandomNumberGeneratorService",
12 
13  # To save the status of the last event (useful for crashes)
14  # Just give a name to the file you want the status to be saved
15  # otherwise just put saveFileName = ""
16  saveFileName = cms.untracked.string(''),
17 
18  # To restore the status of the last event, just un-comment the
19  # following line (and comment the saveFileName line!)
20  # restoreFileName = cms.string('RandomEngineState.log'),
21 
22  # To reproduce events using the RandomEngineStateProducer (source
23  # excluded), comment the sourceSeed definition, and un-comment
24  # the restoreStateLabel
25  # restoreStateLabel = cms.string('randomEngineStateProducer'),
26 
27  # This is to initialize the random engine of the source
28  generator = cms.PSet(
29  initialSeed = cms.untracked.uint32(123456789),
30  engineName = cms.untracked.string('HepJamesRandom')
31  ),
32 
33  # This is to initialize the random engines used for Famos
34  VtxSmeared = cms.PSet(
35  initialSeed = cms.untracked.uint32(123456789),
36  engineName = cms.untracked.string('TRandom3')
37  ),
38 
39 
40  famosPileUp = cms.PSet(
41  initialSeed = cms.untracked.uint32(918273),
42  engineName = cms.untracked.string('TRandom3')
43  ),
44 
45  mix = cms.PSet(
46  initialSeed = cms.untracked.uint32(918273), # intentionally the same as famosPileUp
47  engineName = cms.untracked.string('TRandom3')
48  ),
49 
50  mixGenPU = cms.PSet(
51  initialSeed = cms.untracked.uint32(918273), # intentionally the same as famosPileUp
52  engineName = cms.untracked.string('TRandom3')
53  ),
54 
55 
56  famosSimHits = cms.PSet(
57  initialSeed = cms.untracked.uint32(13579),
58  engineName = cms.untracked.string('TRandom3')
59  ),
60 
61  siTrackerGaussianSmearingRecHits = cms.PSet(
62  initialSeed = cms.untracked.uint32(24680),
63  engineName = cms.untracked.string('TRandom3')
64  ),
65 
66  ecalRecHit = cms.PSet(
67  initialSeed = cms.untracked.uint32(654321),
68  engineName = cms.untracked.string('TRandom3')
69  ),
70 
71  ecalPreshowerRecHit = cms.PSet(
72  initialSeed = cms.untracked.uint32(6541321),
73  engineName = cms.untracked.string('TRandom3')
74  ),
75 
76  hbhereco = cms.PSet(
77  initialSeed = cms.untracked.uint32(541321),
78  engineName = cms.untracked.string('TRandom3')
79  ),
80 
81  horeco = cms.PSet(
82  initialSeed = cms.untracked.uint32(541321),
83  engineName = cms.untracked.string('TRandom3')
84  ),
85 
86  hfreco = cms.PSet(
87  initialSeed = cms.untracked.uint32(541321),
88  engineName = cms.untracked.string('TRandom3')
89  ),
90 
91  paramMuons = cms.PSet(
92  initialSeed = cms.untracked.uint32(54525),
93  engineName = cms.untracked.string('TRandom3')
94  ),
95 
96  l1ParamMuons = cms.PSet(
97  initialSeed = cms.untracked.uint32(6453209),
98  engineName = cms.untracked.string('TRandom3')
99  ),
100 
101  MuonSimHits = cms.PSet(
102  initialSeed = cms.untracked.uint32(987346),
103  engineName = cms.untracked.string('TRandom3')
104  ),
105 
106  simMuonRPCDigis = cms.PSet(
107  initialSeed = cms.untracked.uint32(524964),
108  engineName = cms.untracked.string('TRandom3')
109  ),
110 
111  simMuonCSCDigis = cms.PSet(
112  initialSeed = cms.untracked.uint32(525432),
113  engineName = cms.untracked.string('TRandom3')
114  ),
115 
116  simMuonDTDigis = cms.PSet(
117  initialSeed = cms.untracked.uint32(67673876),
118  engineName = cms.untracked.string('TRandom3')
119  )
120 
121 )
122 
123 randomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer")