CMS 3D CMS Logo

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

Functions

def customise2019
 
def customise2023
 
def customise_Digi
 
def customise_DigiToRaw
 
def customise_DQM
 
def customise_gem_hlt
 
def customise_harvesting
 
def customise_RawToDigi
 
def customise_Reco
 
def customise_Validation
 
def outputCustoms
 

Function Documentation

def gemCustoms.customise2019 (   process)

Definition at line 3 of file gemCustoms.py.

References customise_Digi(), customise_DigiToRaw(), customise_DQM(), customise_gem_hlt(), customise_harvesting(), customise_RawToDigi(), customise_Reco(), and customise_Validation().

Referenced by customise2023().

3 
4 def customise2019(process):
5  if hasattr(process,'digitisation_step'):
6  process=customise_Digi(process)
7  if hasattr(process,'L1simulation_step'):
8  process=customise_L1Emulator2019(process,'pt0')
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_Reco(process)
15  if hasattr(process,'dqmoffline_step'):
16  process=customise_DQM(process)
17  if hasattr(process,'dqmHarvesting'):
18  process=customise_harvesting(process)
19  if hasattr(process,'validation_step'):
20  process=customise_Validation(process)
21  if hasattr(process,'HLTSchedule'):
22  process=customise_gem_hlt(process)
23  return process
def customise2019
Definition: gemCustoms.py:3
def customise_RawToDigi
Definition: gemCustoms.py:97
def customise_harvesting
Definition: gemCustoms.py:127
def customise_gem_hlt
Definition: gemCustoms.py:143
def customise_Validation
Definition: gemCustoms.py:113
def customise_Digi
Definition: gemCustoms.py:30
def customise_DQM
Definition: gemCustoms.py:110
def customise_Reco
Definition: gemCustoms.py:100
def customise_DigiToRaw
Definition: gemCustoms.py:94
def gemCustoms.customise2023 (   process)

Definition at line 24 of file gemCustoms.py.

References customise2019().

24 
25 def customise2023(process):
26  process = customise2019(process)
27  if hasattr(process,'L1simulation_step'):
28  process=customise_L1Emulator2023(process,'pt0')
29  return process
def customise2019
Definition: gemCustoms.py:3
def customise2023
Definition: gemCustoms.py:24
def gemCustoms.customise_Digi (   process)

Definition at line 30 of file gemCustoms.py.

References outputCustoms().

Referenced by customise2019().

30 
31 def customise_Digi(process):
32  # original from SLHC:
33  # ----------------------------
34  # process.RandomNumberGeneratorService.simMuonGEMDigis = cms.PSet(
35  # initialSeed = cms.untracked.uint32(1234567),
36  # engineName = cms.untracked.string('HepJamesRandom')
37  # )
38  process.mix.mixObjects.mixSH.crossingFrames.append('MuonGEMHits')
39  process.mix.mixObjects.mixSH.input.append(cms.InputTag("g4SimHits","MuonGEMHits"))
40  process.mix.mixObjects.mixSH.subdets.append('MuonGEMHits')
41  process.load('SimMuon.GEMDigitizer.muonGEMDigi_cff')
42  process.muonDigi += process.muonGEMDigi
43  # process.load('SimCalorimetry.Configuration.SimCalorimetry_cff')
44  # process.digitisation_step.remove(process.calDigi)
45  # process.load('SimCalorimetry.Configuration.ecalDigiSequence_cff')
46  # process.load('SimCalorimetry.Configuration.hcalDigiSequence_cff')
47  # process.load('SimCalorimetry.Configuration.castorDigiSequence_cff')
48  # process.digitisation_step.remove(process.ecalDigiSequence)
49  # process.digitisation_step.remove(process.hcalDigiSequence)
50  # process.digitisation_step.remove(process.castorDigiSequence)
51  process=outputCustoms(process)
52  # ----------------------------
53 
54  # original from 75X:
55  # ----------------------------
56  # from SimMuon.GEMDigitizer.customizeGEMDigi import customize_digi_addGEM_muon_only
57  # process = customize_digi_addGEM_muon_only(process)
58  # process.simMuonGEMDigis.mixLabel = cms.string("mix")
59  # process.simMuonRPCDigis.digiModel = cms.string('RPCSimAverageNoiseEff')
60  # ----------------------------
61  return process
62 
63 #
64 # Here come the L1 Trigger Customizations, below comes from 620 SLHC
65 # ------------------------------------------------------------------
66 # def customise_L1Emulator2019(process, ptdphi):
67 # from L1Trigger.CSCTriggerPrimitives.cscTriggerPrimitiveDigisPostLS2_cfi import cscTriggerPrimitiveDigisPostLS2
68 # process.simCscTriggerPrimitiveDigis = cscTriggerPrimitiveDigisPostLS2
69 # process.simCscTriggerPrimitiveDigis.clctSLHC.clctNplanesHitPattern = 3
70 # process.simCscTriggerPrimitiveDigis.clctSLHC.clctPidThreshPretrig = 2
71 # process.simCscTriggerPrimitiveDigis.clctParam07.clctPidThreshPretrig = 2
72 # ## give a random number generator
73 # process.RandomNumberGeneratorService.simCscTriggerPrimitiveDigis = cms.PSet(
74 # initialSeed = cms.untracked.uint32(1234567),
75 # engineName = cms.untracked.string('HepJamesRandom')
76 # )
77 # return process
78 
79 # def customise_L1Emulator2023(process, ptdphi):
80 # from L1Trigger.CSCTriggerPrimitives.cscTriggerPrimitiveDigisPostLS3_cfi import cscTriggerPrimitiveDigisPostLS3
81 # process.simCscTriggerPrimitiveDigis = cscTriggerPrimitiveDigisPostLS3
82 # process.simCscTriggerPrimitiveDigis.clctSLHC.clctNplanesHitPattern = 3
83 # process.simCscTriggerPrimitiveDigis.clctSLHC.clctPidThreshPretrig = 2
84 # process.simCscTriggerPrimitiveDigis.clctParam07.clctPidThreshPretrig = 2
85 # ## ME21 has its own SLHC processors
86 # process.simCscTriggerPrimitiveDigis.alctSLHCME21 = process.simCscTriggerPrimitiveDigis.alctSLHC.clone()
87 # process.simCscTriggerPrimitiveDigis.clctSLHCME21 = process.simCscTriggerPrimitiveDigis.clctSLHC.clone()
88 # process.simCscTriggerPrimitiveDigis.alctSLHCME21.alctNplanesHitPattern = 3
89 # process.simCscTriggerPrimitiveDigis.alctSLHCME21.runME21ILT = cms.bool(True)
90 # process.simCscTriggerPrimitiveDigis.clctSLHCME21.clctNplanesHitPattern = 3
91 # process.simCscTriggerPrimitiveDigis.clctSLHCME21.clctPidThreshPretrig = 2
92 # return process
93 # ------------------------------------------------------------------
def outputCustoms
Definition: gemCustoms.py:132
def customise_Digi
Definition: gemCustoms.py:30
def gemCustoms.customise_DigiToRaw (   process)

Definition at line 94 of file gemCustoms.py.

Referenced by customise2019().

94 
95 def customise_DigiToRaw(process):
96  return process
def customise_DigiToRaw
Definition: gemCustoms.py:94
def gemCustoms.customise_DQM (   process)

Definition at line 110 of file gemCustoms.py.

Referenced by customise2019(), and RecoTLR.customiseDataRun2Common().

111 def customise_DQM(process):
112  return process
def customise_DQM
Definition: gemCustoms.py:110
def gemCustoms.customise_gem_hlt (   process)

Definition at line 143 of file gemCustoms.py.

Referenced by customise2019().

144 def customise_gem_hlt(process):
145  process.hltL2OfflineMuonSeeds.EnableGEMMeasurement = cms.bool( True )
146  process.hltL2Muons.L2TrajBuilderParameters.EnableGEMMeasurement = cms.bool( True )
147  process.hltL2Muons.BWFilterParameters.EnableGEMMeasurement = cms.bool( True )
148  return process
149 
150 
def customise_gem_hlt
Definition: gemCustoms.py:143
def gemCustoms.customise_harvesting (   process)

Definition at line 127 of file gemCustoms.py.

Referenced by customise2019().

128 def customise_harvesting(process):
129  process.load('Validation.Configuration.gemPostValidation_cff')
130  process.genHarvesting += process.gemPostValidation
131  return process
def customise_harvesting
Definition: gemCustoms.py:127
def gemCustoms.customise_RawToDigi (   process)

Definition at line 97 of file gemCustoms.py.

Referenced by customise2019(), and RecoTLR.customiseDataRun2Common().

97 
98 def customise_RawToDigi(process):
99  return process
def customise_RawToDigi
Definition: gemCustoms.py:97
def gemCustoms.customise_Reco (   process)

Definition at line 100 of file gemCustoms.py.

References outputCustoms().

Referenced by customise2019(), and RecoTLR.customiseDataRun2Common().

101 def customise_Reco(process):
102  process.load('RecoLocalMuon.GEMRecHit.gemRecHits_cfi')
103  process.muonlocalreco += process.gemRecHits
104  process.standAloneMuons.STATrajBuilderParameters.EnableGEMMeasurement = cms.bool(True)
105  process.standAloneMuons.STATrajBuilderParameters.BWFilterParameters.EnableGEMMeasurement = cms.bool(True)
106  process.refittedStandAloneMuons.STATrajBuilderParameters.EnableGEMMeasurement = cms.bool(True)
107  process.refittedStandAloneMuons.STATrajBuilderParameters.BWFilterParameters.EnableGEMMeasurement = cms.bool(True)
108  process=outputCustoms(process)
109  return process
def outputCustoms
Definition: gemCustoms.py:132
def customise_Reco
Definition: gemCustoms.py:100
def gemCustoms.customise_Validation (   process)

Definition at line 113 of file gemCustoms.py.

Referenced by customise2019().

114 def customise_Validation(process):
115  process.load('Validation.Configuration.gemSimValid_cff')
116  process.load('Validation.MuonGEMDigis.MuonGEMDigis_cfi')
117  process.genvalid_all += process.gemSimValid
118  process.genvalid_all += process.gemDigiValidation
119  # Additional in SLHC: 2B checked whether needed / necessary
120  # ---------------------------------------------------------
121  process.load('Validation.RecoMuon.MuonTrackValidator_cfi')
122  process.load('SimMuon.MCTruth.MuonAssociatorByHits_cfi')
123  process.muonAssociatorByHitsCommonParameters.useGEMs = cms.bool(True)
124  process.muonTrackValidator.useGEMs = cms.bool(True)
125  # ---------------------------------------------------------
126  return process
def customise_Validation
Definition: gemCustoms.py:113
def gemCustoms.outputCustoms (   process)

Definition at line 132 of file gemCustoms.py.

Referenced by customise_Digi(), and customise_Reco().

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 *_simMuonGEMDigis_*_*')
139  getattr(process,b).outputCommands.append('keep *_simMuonGEMCSCPadDigis_*_*')
140  getattr(process,b).outputCommands.append('keep *_gemRecHits_*_*')
141  return process
142 
def outputCustoms
Definition: gemCustoms.py:132