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_hack_ecal
 
def customise_harvesting
 
def customise_L1Emulator
 
def customise_LocalReco
 
def customise_RawToDigi
 
def customise_Reco
 
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(), and customise_Reco().

3 
4 def customise(process):
5  #process=customise_hack_ecal(process)
6  if hasattr(process,'digitisation_step'):
7  process=customise_Digi(process)
8  if hasattr(process,'L1simulation_step'):
9  process=customise_L1Emulator(process)
10  if hasattr(process,'DigiToRaw'):
11  process=customise_DigiToRaw(process)
12  if hasattr(process,'RawToDigi'):
13  process=customise_RawToDigi(process)
14  #if hasattr(process,'reconstruction'):
15  # process=customise_RecoFull(process)
16  if hasattr(process,'reconstruction'):
17  process=customise_Reco(process)
18  if hasattr(process,'globalreco_step'):
19  process=customise_Reco(process)
20  #if hasattr(process,'famosWithEverything'):
21  # process=customise_RecoFast(process)
22  if hasattr(process,'dqmoffline_step'):
23  process=customise_DQM(process)
24  if hasattr(process,'dqmHarvesting'):
25  process=customise_harvesting(process)
26  #if hasattr(process,'validation_step'):
27  # process=customise_Validation(process)
28  return process
29 
def customise_Reco
Definition: me0Customs.py:109
def customise_DQM
Definition: me0Customs.py:126
def customise_DigiToRaw
Definition: me0Customs.py:66
def customise_L1Emulator
Definition: me0Customs.py:63
def customise
Definition: me0Customs.py:3
def customise_RawToDigi
Definition: me0Customs.py:69
def customise_Digi
Definition: me0Customs.py:47
def customise_harvesting
Definition: me0Customs.py:129
def me0Customs.customise_Digi (   process)

Definition at line 47 of file me0Customs.py.

References outputCustoms().

Referenced by customise().

47 
48 def customise_Digi(process):
49  process.RandomNumberGeneratorService.simMuonME0Digis = cms.PSet(
50  initialSeed = cms.untracked.uint32(1234567),
51  engineName = cms.untracked.string('HepJamesRandom')
52  )
53  process.mix.mixObjects.mixSH.crossingFrames.append('MuonME0Hits')
54  process.mix.mixObjects.mixSH.input.append(cms.InputTag("g4SimHits","MuonME0Hits"))
55  process.mix.mixObjects.mixSH.subdets.append('MuonME0Hits')
56  process.load('SimMuon.GEMDigitizer.muonME0DigisPreReco_cfi')
57  process.muonDigi += process.simMuonME0Digis
58  # process.load('SimCalorimetry.Configuration.SimCalorimetry_cff')
59  # process.digitisation_step.remove(calDigi)
60  process=outputCustoms(process)
61  return process
62 
def outputCustoms
Definition: me0Customs.py:132
def customise_Digi
Definition: me0Customs.py:47
def me0Customs.customise_DigiToRaw (   process)

Definition at line 66 of file me0Customs.py.

Referenced by customise().

66 
67 def customise_DigiToRaw(process):
68  return process
def customise_DigiToRaw
Definition: me0Customs.py:66
def me0Customs.customise_DQM (   process)

Definition at line 126 of file me0Customs.py.

Referenced by customise().

127 def customise_DQM(process):
128  return process
def customise_DQM
Definition: me0Customs.py:126
def me0Customs.customise_GlobalRecoFast (   process)

Definition at line 84 of file me0Customs.py.

References customise_GlobalRecoInclude().

Referenced by customise_RecoFast().

84 
85 def customise_GlobalRecoFast(process):
87  # process.load('RecoMuon.MuonIdentification.me0MuonReco_cff')
88  # process.reconstructionWithFamos += process.me0MuonReco
89  return process
def customise_GlobalRecoInclude
Definition: me0Customs.py:78
def customise_GlobalRecoFast
Definition: me0Customs.py:84
def me0Customs.customise_GlobalRecoFull (   process)

Definition at line 90 of file me0Customs.py.

References customise_GlobalRecoInclude().

Referenced by customise_RecoFull().

90 
91 def customise_GlobalRecoFull(process):
93  # process.load('RecoMuon.MuonIdentification.me0MuonReco_cff')
94  # process.muonGlobalReco += process.me0MuonReco
95  return process
def customise_GlobalRecoFull
Definition: me0Customs.py:90
def customise_GlobalRecoInclude
Definition: me0Customs.py:78
def me0Customs.customise_GlobalRecoInclude (   process)

Definition at line 78 of file me0Customs.py.

Referenced by customise_GlobalRecoFast(), and customise_GlobalRecoFull().

78 
79 def customise_GlobalRecoInclude(process):
80  process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAlong_cfi")
81  process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorOpposite_cfi")
82  process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAny_cfi")
83  return process
def customise_GlobalRecoInclude
Definition: me0Customs.py:78
def me0Customs.customise_hack_ecal (   process)

Definition at line 30 of file me0Customs.py.

30 
31 def customise_hack_ecal(process):
32  process.load("Geometry.CaloEventSetup.CaloGeometryBuilder_cfi")
33  process.CaloGeometryBuilder.SelectedCalos = cms.vstring('HCAL',
34  'ZDC',
35  'EcalBarrel',
36  'EcalEndcap',
37  #'EcalPreshower',
38  'TOWER')
39  #process.load("RecoEcal.EgammaClusterProducers.reducedRecHitsSequence_cff")
40  #process.load("Configuration.StandardSequences.Reconstruction_cff")
41  #process.reducedRecHits = cms.Sequence ( reducedEcalRecHitsSequenceEcalOnly * reducedHcalRecHitsSequence )
42  #Might not be needed...
43  #process.load("RecoEcal.EgammaClusterProducers.particleFlowSuperClusterECAL_cfi")
44  #process.particleFlowSuperClusterECALBox.use_preshower=cms.bool(False)
45  #process.particleFlowSuperClusterECALMustache.use_preshower=cms.bool(False)
46  return process
def customise_hack_ecal
Definition: me0Customs.py:30
def me0Customs.customise_harvesting (   process)

Definition at line 129 of file me0Customs.py.

Referenced by customise().

130 def customise_harvesting(process):
131  return process
def customise_harvesting
Definition: me0Customs.py:129
def me0Customs.customise_L1Emulator (   process)

Definition at line 63 of file me0Customs.py.

Referenced by customise().

63 
64 def customise_L1Emulator(process):
65  return process
def customise_L1Emulator
Definition: me0Customs.py:63
def me0Customs.customise_LocalReco (   process)

Definition at line 72 of file me0Customs.py.

References outputCustoms().

Referenced by customise_RecoFast(), and customise_RecoFull().

72 
73 def customise_LocalReco(process):
74  process.load('RecoLocalMuon.GEMRecHit.me0LocalReco_cff')
75  process.muonlocalreco += process.me0LocalReco
76  process=outputCustoms(process)
77  return process
def outputCustoms
Definition: me0Customs.py:132
def customise_LocalReco
Definition: me0Customs.py:72
def me0Customs.customise_RawToDigi (   process)

Definition at line 69 of file me0Customs.py.

Referenced by customise().

69 
70 def customise_RawToDigi(process):
71  return process
def customise_RawToDigi
Definition: me0Customs.py:69
def me0Customs.customise_Reco (   process)

Definition at line 109 of file me0Customs.py.

References outputCustoms().

Referenced by customise().

110 def customise_Reco(process):
111  #process.load('RecoLocalMuon.GEMRecHit.gemRecHits_cfi')
112  process.load('RecoLocalMuon.GEMRecHit.me0LocalReco_cfi')
113  process.muonlocalreco += process.me0LocalReco
114  #process.load("RecoMuon.StandAloneMuonProducer.standAloneMuons_cff")
115  process.standAloneMuons.STATrajBuilderParameters.FilterParameters.EnableME0Measurement = cms.bool(True)
116  process.standAloneMuons.STATrajBuilderParameters.BWFilterParameters.EnableME0Measurement = cms.bool(True)
117  process.refittedStandAloneMuons.STATrajBuilderParameters.FilterParameters.EnableME0Measurement = cms.bool(True)
118  process.refittedStandAloneMuons.STATrajBuilderParameters.BWFilterParameters.EnableME0Measurement = cms.bool(True)
119  process=outputCustoms(process)
120  return process
def customise_Reco
Definition: me0Customs.py:109
def outputCustoms
Definition: me0Customs.py:132
def me0Customs.customise_RecoFast (   process)

Definition at line 96 of file me0Customs.py.

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

96 
97 def customise_RecoFast(process):
98  process=customise_LocalReco(process)
99  process=customise_GlobalRecoFast(process)
100  process=outputCustoms(process)
101  return process
def customise_RecoFast
Definition: me0Customs.py:96
def outputCustoms
Definition: me0Customs.py:132
def customise_LocalReco
Definition: me0Customs.py:72
def customise_GlobalRecoFast
Definition: me0Customs.py:84
def me0Customs.customise_RecoFull (   process)

Definition at line 102 of file me0Customs.py.

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

103 def customise_RecoFull(process):
104  process=customise_LocalReco(process)
105  process=customise_GlobalRecoFull(process)
106  process=outputCustoms(process)
107  return process
108 
def customise_RecoFull
Definition: me0Customs.py:102
def outputCustoms
Definition: me0Customs.py:132
def customise_LocalReco
Definition: me0Customs.py:72
def customise_GlobalRecoFull
Definition: me0Customs.py:90
def me0Customs.customise_Validation (   process)

Definition at line 121 of file me0Customs.py.

122 def customise_Validation(process):
123  process.load('Validation.Configuration.gemSimValid_cff')
124  process.genvalid_all += process.me0SimValid
125  return process
def customise_Validation
Definition: me0Customs.py:121
def me0Customs.outputCustoms (   process)

Definition at line 132 of file me0Customs.py.

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

133 def outputCustoms(process):
134  alist=['AODSIM','RECOSIM','FEVTSIM','FEVTDEBUG','FEVTDEBUGHLT','RECODEBUG','RAWRECOSIMHLT','RAWRECODEBUGHLT']
135  for a in alist:
136  b=a+'output'
137  if hasattr(process,b):
138  getattr(process,b).outputCommands.append('keep *_simMuonME0Digis_*_*')
139  getattr(process,b).outputCommands.append('keep *_me0RecHits_*_*')
140  getattr(process,b).outputCommands.append('keep *_me0Segments_*_*')
141  getattr(process,b).outputCommands.append('keep *_me0SegmentProducer_*_*')
142  getattr(process,b).outputCommands.append('drop *_me0SegmentMatcher_*_*')
143  getattr(process,b).outputCommands.append('drop *_me0MuonConverter_*_*')
144  getattr(process,b).outputCommands.append('keep *_me0SegmentMatching_*_*')
145  getattr(process,b).outputCommands.append('keep *_me0MuonConverting_*_*')
146  return process
def outputCustoms
Definition: me0Customs.py:132