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.
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=outputCustoms(process)
35  return process
36 
37 def customise_L1Emulator(process):
38  return process
39 
40 def customise_DigiToRaw(process):
41  return process
42 
43 def customise_RawToDigi(process):
44  return process
45 
46 def customise_LocalReco(process):
47  process.load('RecoLocalMuon.GEMRecHit.me0LocalReco_cff')
48  process.muonlocalreco += process.me0LocalReco
49  process=outputCustoms(process)
50  return process
51 
53  process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAlong_cfi")
54  process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorOpposite_cfi")
55  process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAny_cfi")
56  return process
57 
60  process.load('RecoMuon.MuonIdentification.me0MuonReco_cff')
61  process.reconstructionWithFamos += process.me0MuonReco
62  return process
63 
66  process.load('RecoMuon.MuonIdentification.me0MuonReco_cff')
67  process.muonGlobalReco += process.me0MuonReco
68  return process
69 
70 def customise_RecoFast(process):
71  process=customise_LocalReco(process)
72  process=customise_GlobalRecoFast(process)
73  process=outputCustoms(process)
74  return process
75 
76 def customise_RecoFull(process):
77  process=customise_LocalReco(process)
78  process=customise_GlobalRecoFull(process)
79  process=outputCustoms(process)
80  return process
81 
82 def customise_Validation(process):
83  process.load('Validation.Configuration.gemSimValid_cff')
84  process.genvalid_all += process.me0SimValid
85  return process
86 
87 def customise_DQM(process):
88  return process
89 
90 def customise_harvesting(process):
91  return process
92 
93 def outputCustoms(process):
94  alist=['AODSIM','RECOSIM','FEVTSIM','FEVTDEBUG','FEVTDEBUGHLT','RECODEBUG','RAWRECOSIMHLT','RAWRECODEBUGHLT']
95  for a in alist:
96  b=a+'output'
97  if hasattr(process,b):
98  getattr(process,b).outputCommands.append('keep *_simMuonME0Digis_*_*')
99  getattr(process,b).outputCommands.append('keep *_me0RecHits_*_*')
100  getattr(process,b).outputCommands.append('keep *_me0Segments_*_*')
101  getattr(process,b).outputCommands.append('keep *_me0SegmentProducer_*_*')
102  getattr(process,b).outputCommands.append('drop *_me0SegmentMatcher_*_*')
103  getattr(process,b).outputCommands.append('drop *_me0MuonConverter_*_*')
104  getattr(process,b).outputCommands.append('keep *_me0SegmentMatching_*_*')
105  getattr(process,b).outputCommands.append('keep *_me0MuonConverting_*_*')
106  return process
def customise_DQM
Definition: me0Customs.py:87
def customise_Validation
Definition: me0Customs.py:82
def customise_DigiToRaw
Definition: me0Customs.py:40
def customise_L1Emulator
Definition: me0Customs.py:37
def customise_RecoFull
Definition: me0Customs.py:76
def customise
Definition: me0Customs.py:3
def customise_RecoFast
Definition: me0Customs.py:70
def outputCustoms
Definition: me0Customs.py:93
def customise_RawToDigi
Definition: me0Customs.py:43
def customise_LocalReco
Definition: me0Customs.py:46
def customise_Digi
Definition: me0Customs.py:24
def customise_GlobalRecoFull
Definition: me0Customs.py:64
def customise_GlobalRecoInclude
Definition: me0Customs.py:52
def customise_GlobalRecoFast
Definition: me0Customs.py:58
def customise_harvesting
Definition: me0Customs.py:90