test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
DigiToRecoPU Namespace Reference

Functions

def customise
 

Function Documentation

def DigiToRecoPU.customise (   process)

Definition at line 3 of file DigiToRecoPU.py.

References reco.return(), and makeHLTPrescaleTable.values.

3 
4 def customise(process):
5  REDIGIInputEventSkimming= cms.PSet(
6  inputCommands=cms.untracked.vstring('drop *')
7  )
8 
9  GeneratorInterfaceRAWNoGenParticles = process.GeneratorInterfaceRAW.outputCommands
10  for item in GeneratorInterfaceRAWNoGenParticles:
11  if 'genParticles' in item:
12  GeneratorInterfaceRAWNoGenParticles.remove(item)
13 
14  REDIGIInputEventSkimming.inputCommands.extend(process.SimG4CoreRAW.outputCommands)
15  REDIGIInputEventSkimming.inputCommands.extend(GeneratorInterfaceRAWNoGenParticles)
16  REDIGIInputEventSkimming.inputCommands.extend(process.IOMCRAW.outputCommands)
17 
18  process.source.inputCommands = REDIGIInputEventSkimming.inputCommands
19  process.source.dropDescendantsOfDroppedBranches=cms.untracked.bool(False)
20 
21  process.RandomNumberGeneratorService.restoreStateLabel = cms.untracked.string('randomEngineStateProducer')
22  process.mix.playback = cms.untracked.bool(True)
23 
24  # Remove the old RNGState product on output
25  RNGStateCleaning= cms.PSet(
26  outputCommands=cms.untracked.vstring('drop RandomEngineStates_*_*_*',
27  'keep RandomEngineStates_*_*_'+process.name_())
28  )
29 
30  for item in process.outputModules_().values():
31  item.outputCommands.extend(RNGStateCleaning.outputCommands)
32 
33  # REDO the GenJets etc. in case labels have been changed
34  process.load('Configuration/StandardSequences/Generator_cff')
35  process.fixGenInfo = cms.Path(process.GeneInfo * process.genJetMET)
36  process.schedule.append(process.fixGenInfo)
37 
38  return(process)
return(e1-e2)*(e1-e2)+dp *dp