CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
me0Customs.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 def customise(process):
4  if hasattr(process,'digitisation_step'):
5  process=customise_Digi(process)
6  if hasattr(process,'L1simulation_step'):
7  process=customise_L1Emulator(process)
8  if hasattr(process,'DigiToRaw'):
9  process=customise_DigiToRaw(process)
10  if hasattr(process,'RawToDigi'):
11  process=customise_RawToDigi(process)
12  if hasattr(process,'reconstruction'):
13  process=customise_RecoFull(process)
14  if hasattr(process,'famosWithEverything'):
15  process=customise_RecoFast(process)
16  if hasattr(process,'dqmoffline_step'):
17  process=customise_DQM(process)
18  if hasattr(process,'dqmHarvesting'):
19  process=customise_harvesting(process)
20  if hasattr(process,'validation_step'):
21  process=customise_Validation(process)
22  return process
23 
24 def customise_Digi(process):
25  process.RandomNumberGeneratorService.simMuonME0Digis = cms.PSet(
26  initialSeed = cms.untracked.uint32(1234567),
27  engineName = cms.untracked.string('HepJamesRandom')
28  )
29  process.mix.mixObjects.mixSH.crossingFrames.append('MuonME0Hits')
30  process.mix.mixObjects.mixSH.input.append(cms.InputTag("g4SimHits","MuonME0Hits"))
31  process.mix.mixObjects.mixSH.subdets.append('MuonME0Hits')
32  process.load('SimMuon.GEMDigitizer.muonME0DigisPreReco_cfi')
33  process.muonDigi += process.simMuonME0Digis
34  # process.load('SimCalorimetry.Configuration.SimCalorimetry_cff')
35  # process.digitisation_step.remove(calDigi)
36  process=outputCustoms(process)
37  return process
38 
39 def customise_L1Emulator(process):
40  return process
41 
42 def customise_DigiToRaw(process):
43  return process
44 
45 def customise_RawToDigi(process):
46  return process
47 
48 def customise_LocalReco(process):
49  process.load('RecoLocalMuon.GEMRecHit.me0LocalReco_cff')
50  process.muonlocalreco += process.me0LocalReco
51  process=outputCustoms(process)
52  return process
53 
55  process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAlong_cfi")
56  process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorOpposite_cfi")
57  process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAny_cfi")
58  return process
59 
62  # process.load('RecoMuon.MuonIdentification.me0MuonReco_cff')
63  # process.reconstructionWithFamos += process.me0MuonReco
64  return process
65 
68  # process.load('RecoMuon.MuonIdentification.me0MuonReco_cff')
69  # process.muonGlobalReco += process.me0MuonReco
70  return process
71 
72 def customise_RecoFast(process):
73  process=customise_LocalReco(process)
74  process=customise_GlobalRecoFast(process)
75  process=outputCustoms(process)
76  return process
77 
78 def customise_RecoFull(process):
79  process=customise_LocalReco(process)
80  process=customise_GlobalRecoFull(process)
81  process=outputCustoms(process)
82  return process
83 
84 def customise_Validation(process):
85  process.load('Validation.Configuration.gemSimValid_cff')
86  process.genvalid_all += process.me0SimValid
87  return process
88 
89 def customise_DQM(process):
90  return process
91 
92 def customise_harvesting(process):
93  return process
94 
95 def outputCustoms(process):
96  alist=['AODSIM','RECOSIM','FEVTSIM','FEVTDEBUG','FEVTDEBUGHLT','RECODEBUG','RAWRECOSIMHLT','RAWRECODEBUGHLT']
97  for a in alist:
98  b=a+'output'
99  if hasattr(process,b):
100  getattr(process,b).outputCommands.append('keep *_simMuonME0Digis_*_*')
101  getattr(process,b).outputCommands.append('keep *_me0RecHits_*_*')
102  getattr(process,b).outputCommands.append('keep *_me0Segments_*_*')
103  getattr(process,b).outputCommands.append('keep *_me0SegmentProducer_*_*')
104  getattr(process,b).outputCommands.append('drop *_me0SegmentMatcher_*_*')
105  getattr(process,b).outputCommands.append('drop *_me0MuonConverter_*_*')
106  getattr(process,b).outputCommands.append('keep *_me0SegmentMatching_*_*')
107  getattr(process,b).outputCommands.append('keep *_me0MuonConverting_*_*')
108  return process
def customise_DQM
Definition: me0Customs.py:89
def customise_Validation
Definition: me0Customs.py:84
def customise_DigiToRaw
Definition: me0Customs.py:42
def customise_L1Emulator
Definition: me0Customs.py:39
def customise_RecoFull
Definition: me0Customs.py:78
def customise
Definition: me0Customs.py:3
def customise_RecoFast
Definition: me0Customs.py:72
def outputCustoms
Definition: me0Customs.py:95
def customise_RawToDigi
Definition: me0Customs.py:45
def customise_LocalReco
Definition: me0Customs.py:48
def customise_Digi
Definition: me0Customs.py:24
def customise_GlobalRecoFull
Definition: me0Customs.py:66
def customise_GlobalRecoInclude
Definition: me0Customs.py:54
def customise_GlobalRecoFast
Definition: me0Customs.py:60
def customise_harvesting
Definition: me0Customs.py:92