test
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: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 customise_RawToDigi
Definition: me0Customs.py:45
def customise_Digi
Definition: me0Customs.py:24
def customise_harvesting
Definition: me0Customs.py:92
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.load('SimCalorimetry.Configuration.SimCalorimetry_cff')
36  # process.digitisation_step.remove(calDigi)
37  process=outputCustoms(process)
38  return process
def outputCustoms
Definition: me0Customs.py:95
def customise_Digi
Definition: me0Customs.py:24
def me0Customs.customise_DigiToRaw (   process)

Definition at line 42 of file me0Customs.py.

Referenced by customise().

42 
43 def customise_DigiToRaw(process):
44  return process
def customise_DigiToRaw
Definition: me0Customs.py:42
def me0Customs.customise_DQM (   process)

Definition at line 89 of file me0Customs.py.

Referenced by customise().

89 
90 def customise_DQM(process):
91  return process
def customise_DQM
Definition: me0Customs.py:89
def me0Customs.customise_GlobalRecoFast (   process)

Definition at line 60 of file me0Customs.py.

References customise_GlobalRecoInclude().

Referenced by customise_RecoFast().

60 
61 def customise_GlobalRecoFast(process):
63  # process.load('RecoMuon.MuonIdentification.me0MuonReco_cff')
64  # process.reconstructionWithFamos += process.me0MuonReco
65  return process
def customise_GlobalRecoInclude
Definition: me0Customs.py:54
def customise_GlobalRecoFast
Definition: me0Customs.py:60
def me0Customs.customise_GlobalRecoFull (   process)

Definition at line 66 of file me0Customs.py.

References customise_GlobalRecoInclude().

Referenced by customise_RecoFull().

66 
67 def customise_GlobalRecoFull(process):
69  # process.load('RecoMuon.MuonIdentification.me0MuonReco_cff')
70  # process.muonGlobalReco += process.me0MuonReco
71  return process
def customise_GlobalRecoFull
Definition: me0Customs.py:66
def customise_GlobalRecoInclude
Definition: me0Customs.py:54
def me0Customs.customise_GlobalRecoInclude (   process)

Definition at line 54 of file me0Customs.py.

Referenced by customise_GlobalRecoFast(), and customise_GlobalRecoFull().

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

Definition at line 92 of file me0Customs.py.

Referenced by customise().

92 
93 def customise_harvesting(process):
94  return process
def customise_harvesting
Definition: me0Customs.py:92
def me0Customs.customise_L1Emulator (   process)

Definition at line 39 of file me0Customs.py.

Referenced by customise().

39 
40 def customise_L1Emulator(process):
41  return process
def customise_L1Emulator
Definition: me0Customs.py:39
def me0Customs.customise_LocalReco (   process)

Definition at line 48 of file me0Customs.py.

References outputCustoms().

Referenced by customise_RecoFast(), and customise_RecoFull().

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

Definition at line 45 of file me0Customs.py.

Referenced by customise().

45 
46 def customise_RawToDigi(process):
47  return process
def customise_RawToDigi
Definition: me0Customs.py:45
def me0Customs.customise_RecoFast (   process)

Definition at line 72 of file me0Customs.py.

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

Referenced by customise().

72 
73 def customise_RecoFast(process):
74  process=customise_LocalReco(process)
75  process=customise_GlobalRecoFast(process)
76  process=outputCustoms(process)
77  return process
def customise_RecoFast
Definition: me0Customs.py:72
def outputCustoms
Definition: me0Customs.py:95
def customise_LocalReco
Definition: me0Customs.py:48
def customise_GlobalRecoFast
Definition: me0Customs.py:60
def me0Customs.customise_RecoFull (   process)

Definition at line 78 of file me0Customs.py.

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

Referenced by customise().

78 
79 def customise_RecoFull(process):
80  process=customise_LocalReco(process)
81  process=customise_GlobalRecoFull(process)
82  process=outputCustoms(process)
83  return process
def customise_RecoFull
Definition: me0Customs.py:78
def outputCustoms
Definition: me0Customs.py:95
def customise_LocalReco
Definition: me0Customs.py:48
def customise_GlobalRecoFull
Definition: me0Customs.py:66
def me0Customs.customise_Validation (   process)

Definition at line 84 of file me0Customs.py.

Referenced by customise().

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

Definition at line 95 of file me0Customs.py.

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

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