Main Page
Namespaces
Classes
Package Documentation
Namespace List
Namespace Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
Functions
RestoreRandomSeeds_cff Namespace Reference
Functions
def
customise
Function Documentation
def
RestoreRandomSeeds_cff.customise
(
process
)
Definition at line
1
of file
RestoreRandomSeeds_cff.py
.
References
reco.return()
.
1
def
customise
(process):
2
3
#Renaming the process
4
process.__dict__[
'_Process__name'
]=
'RestoringSeeds'
5
6
#Optionally skipping the first events
7
#process.PoolSource.skipEvents=cms.untracked.uint32(3)
8
9
#Drop on input everything but seeds to be restored
10
process.source.inputCommands=cms.untracked.vstring(
'drop *'
,
11
'keep RandomEngineStates_*_*_*'
)
12
13
#Adding RandomNumberGeneratorService
14
process.RandomNumberGeneratorService.restoreStateLabel=cms.untracked.string(
'randomEngineStateProducer'
)
15
16
return
(process)
17
RestoreRandomSeeds_cff.customise
def customise
Definition:
RestoreRandomSeeds_cff.py:1
reco::return
return(e1-e2)*(e1-e2)+dp *dp
Generated for CMSSW Reference Manual by
1.8.5