CMS 3D CMS Logo

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

Functions

def customise
 
def customise_Digi
 
def customise_DigiToRaw
 
def customise_DQM
 
def customise_GlobalRecoFast
 
def customise_GlobalRecoFull
 
def customise_GlobalRecoInclude
 
def customise_harvesting
 
def customise_L1Emulator
 
def customise_LocalReco
 
def customise_RawToDigi
 
def customise_RecoFast
 
def customise_RecoFull
 
def customise_Validation
 
def outputCustoms
 

Function Documentation

def me0Customs.customise (   process)

Definition at line 3 of file me0Customs.py.

References customise_Digi(), customise_DigiToRaw(), customise_DQM(), customise_harvesting(), customise_L1Emulator(), customise_RawToDigi(), customise_RecoFast(), customise_RecoFull(), and customise_Validation().

3 
4 def customise(process):
5  if hasattr(process,'digitisation_step'):
6  process=customise_Digi(process)
7  if hasattr(process,'L1simulation_step'):
8  process=customise_L1Emulator(process)
9  if hasattr(process,'DigiToRaw'):
10  process=customise_DigiToRaw(process)
11  if hasattr(process,'RawToDigi'):
12  process=customise_RawToDigi(process)
13  if hasattr(process,'reconstruction'):
14  process=customise_RecoFull(process)
15  if hasattr(process,'famosWithEverything'):
16  process=customise_RecoFast(process)
17  if hasattr(process,'dqmoffline_step'):
18  process=customise_DQM(process)
19  if hasattr(process,'dqmHarvesting'):
20  process=customise_harvesting(process)
21  if hasattr(process,'validation_step'):
22  process=customise_Validation(process)
23  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 customise_RawToDigi
Definition: me0Customs.py:43
def customise_Digi
Definition: me0Customs.py:24
def customise_harvesting
Definition: me0Customs.py:90
def me0Customs.customise_Digi (   process)

Definition at line 24 of file me0Customs.py.

References outputCustoms().

Referenced by customise().

24 
25 def customise_Digi(process):
26  process.RandomNumberGeneratorService.simMuonME0Digis = cms.PSet(
27  initialSeed = cms.untracked.uint32(1234567),
28  engineName = cms.untracked.string('HepJamesRandom')
29  )
30  process.mix.mixObjects.mixSH.crossingFrames.append('MuonME0Hits')
31  process.mix.mixObjects.mixSH.input.append(cms.InputTag("g4SimHits","MuonME0Hits"))
32  process.mix.mixObjects.mixSH.subdets.append('MuonME0Hits')
33  process.load('SimMuon.GEMDigitizer.muonME0DigisPreReco_cfi')
34  process.muonDigi += process.simMuonME0Digis
35  process=outputCustoms(process)
36  return process
def outputCustoms
Definition: me0Customs.py:93
def customise_Digi
Definition: me0Customs.py:24
def me0Customs.customise_DigiToRaw (   process)

Definition at line 40 of file me0Customs.py.

Referenced by customise().

40 
41 def customise_DigiToRaw(process):
42  return process
def customise_DigiToRaw
Definition: me0Customs.py:40
def me0Customs.customise_DQM (   process)

Definition at line 87 of file me0Customs.py.

Referenced by customise().

87 
88 def customise_DQM(process):
89  return process
def customise_DQM
Definition: me0Customs.py:87
def me0Customs.customise_GlobalRecoFast (   process)

Definition at line 58 of file me0Customs.py.

References customise_GlobalRecoInclude().

Referenced by customise_RecoFast().

58 
59 def customise_GlobalRecoFast(process):
61  process.load('RecoMuon.MuonIdentification.me0MuonReco_cff')
62  process.reconstructionWithFamos += process.me0MuonReco
63  return process
def customise_GlobalRecoInclude
Definition: me0Customs.py:52
def customise_GlobalRecoFast
Definition: me0Customs.py:58
def me0Customs.customise_GlobalRecoFull (   process)

Definition at line 64 of file me0Customs.py.

References customise_GlobalRecoInclude().

Referenced by customise_RecoFull().

64 
65 def customise_GlobalRecoFull(process):
67  process.load('RecoMuon.MuonIdentification.me0MuonReco_cff')
68  process.muonGlobalReco += process.me0MuonReco
69  return process
def customise_GlobalRecoFull
Definition: me0Customs.py:64
def customise_GlobalRecoInclude
Definition: me0Customs.py:52
def me0Customs.customise_GlobalRecoInclude (   process)

Definition at line 52 of file me0Customs.py.

Referenced by customise_GlobalRecoFast(), and customise_GlobalRecoFull().

52 
53 def customise_GlobalRecoInclude(process):
54  process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAlong_cfi")
55  process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorOpposite_cfi")
56  process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAny_cfi")
57  return process
def customise_GlobalRecoInclude
Definition: me0Customs.py:52
def me0Customs.customise_harvesting (   process)

Definition at line 90 of file me0Customs.py.

Referenced by customise().

90 
91 def customise_harvesting(process):
92  return process
def customise_harvesting
Definition: me0Customs.py:90
def me0Customs.customise_L1Emulator (   process)

Definition at line 37 of file me0Customs.py.

Referenced by customise().

37 
38 def customise_L1Emulator(process):
39  return process
def customise_L1Emulator
Definition: me0Customs.py:37
def me0Customs.customise_LocalReco (   process)

Definition at line 46 of file me0Customs.py.

References outputCustoms().

Referenced by customise_RecoFast(), and customise_RecoFull().

46 
47 def customise_LocalReco(process):
48  process.load('RecoLocalMuon.GEMRecHit.me0LocalReco_cff')
49  process.muonlocalreco += process.me0LocalReco
50  process=outputCustoms(process)
51  return process
def outputCustoms
Definition: me0Customs.py:93
def customise_LocalReco
Definition: me0Customs.py:46
def me0Customs.customise_RawToDigi (   process)

Definition at line 43 of file me0Customs.py.

Referenced by customise().

43 
44 def customise_RawToDigi(process):
45  return process
def customise_RawToDigi
Definition: me0Customs.py:43
def me0Customs.customise_RecoFast (   process)

Definition at line 70 of file me0Customs.py.

References customise_GlobalRecoFast(), customise_LocalReco(), and outputCustoms().

Referenced by customise().

70 
71 def customise_RecoFast(process):
72  process=customise_LocalReco(process)
73  process=customise_GlobalRecoFast(process)
74  process=outputCustoms(process)
75  return process
def customise_RecoFast
Definition: me0Customs.py:70
def outputCustoms
Definition: me0Customs.py:93
def customise_LocalReco
Definition: me0Customs.py:46
def customise_GlobalRecoFast
Definition: me0Customs.py:58
def me0Customs.customise_RecoFull (   process)

Definition at line 76 of file me0Customs.py.

References customise_GlobalRecoFull(), customise_LocalReco(), and outputCustoms().

Referenced by customise().

76 
77 def customise_RecoFull(process):
78  process=customise_LocalReco(process)
79  process=customise_GlobalRecoFull(process)
80  process=outputCustoms(process)
81  return process
def customise_RecoFull
Definition: me0Customs.py:76
def outputCustoms
Definition: me0Customs.py:93
def customise_LocalReco
Definition: me0Customs.py:46
def customise_GlobalRecoFull
Definition: me0Customs.py:64
def me0Customs.customise_Validation (   process)

Definition at line 82 of file me0Customs.py.

Referenced by customise().

82 
83 def customise_Validation(process):
84  process.load('Validation.Configuration.gemSimValid_cff')
85  process.genvalid_all += process.me0SimValid
86  return process
def customise_Validation
Definition: me0Customs.py:82
def me0Customs.outputCustoms (   process)

Definition at line 93 of file me0Customs.py.

Referenced by customise_Digi(), customise_LocalReco(), customise_RecoFast(), and customise_RecoFull().

93 
94 def outputCustoms(process):
95  alist=['AODSIM','RECOSIM','FEVTSIM','FEVTDEBUG','FEVTDEBUGHLT','RECODEBUG','RAWRECOSIMHLT','RAWRECODEBUGHLT']
96  for a in alist:
97  b=a+'output'
98  if hasattr(process,b):
99  getattr(process,b).outputCommands.append('keep *_simMuonME0Digis_*_*')
100  getattr(process,b).outputCommands.append('keep *_me0RecHits_*_*')
101  getattr(process,b).outputCommands.append('keep *_me0Segments_*_*')
102  getattr(process,b).outputCommands.append('keep *_me0SegmentProducer_*_*')
103  getattr(process,b).outputCommands.append('drop *_me0SegmentMatcher_*_*')
104  getattr(process,b).outputCommands.append('drop *_me0MuonConverter_*_*')
105  getattr(process,b).outputCommands.append('keep *_me0SegmentMatching_*_*')
106  getattr(process,b).outputCommands.append('keep *_me0MuonConverting_*_*')
107  return process
def outputCustoms
Definition: me0Customs.py:93