CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
gemCustom.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 def customise2023(process):
3  if hasattr(process,'digitisation_step') :
4  process=customise_digitization(process)
5  if hasattr(process, 'L1simulation_step') :
6  process=customise_L1simulation(process)
7  if hasattr(process,'dqmHarvesting'):
8  process=customise_harvesting(process)
9  if hasattr(process,'validation_step'):
10  process=customise_Validation(process)
11  return process
13  from SimMuon.GEMDigitizer.customizeGEMDigi import customize_digi_addGEM_muon_only
14  if (hasattr(process,"simMuonGEMDigis")) :
15  if ( not hasattr(process.simMuonGEMDigis,"mixLabel")) :
16  process.simMuonGEMDigis.mixLabel = cms.string("mix")
17  if ( hasattr(process,"simMuonME0Digis")) :
18  if ( not hasattr(process.simMuonME0Digis,"mixLabel")) :
19  process.simMuonME0Digis.mixLabel = cms.string("mix")
20  return process
21 
23  if (not hasattr(process, 'caloConfigSource')) :
24  process.load('L1Trigger.L1TCalorimeter.caloConfigStage1PP_cfi')
25  from L1Trigger.CSCTriggerPrimitives.cscTriggerPrimitiveDigis_cfi import cscTriggerPrimitiveDigis
26  process.simCscTriggerPrimitiveDigis = cscTriggerPrimitiveDigis
27  process.simCscTriggerPrimitiveDigis.commonParam.isSLHC = True
28  process.simCscTriggerPrimitiveDigis.commonParam.smartME1aME1b = True
29 
30  from Validation.MuonGEMDigis.MuonGEMDigis_cff import me11tmbSLHCGEM
31  process.simCscTriggerPrimitiveDigis.commonParam.runME11ILT = cms.bool(True)
32  process.simCscTriggerPrimitiveDigis.me11tmbSLHCGEM = me11tmbSLHCGEM
33  process.simCscTriggerPrimitiveDigis.clctSLHC.clctNplanesHitPattern = 3
34  process.simCscTriggerPrimitiveDigis.clctSLHC.clctPidThreshPretrig = 2
35  process.simCscTriggerPrimitiveDigis.clctParam07.clctPidThreshPretrig = 2
36  process.simCscTriggerPrimitiveDigis.GEMPadDigiProducer = "simMuonGEMPadDigis"
37 
38  from Validation.MuonGEMDigis.MuonGEMDigis_cff import me21tmbSLHCGEM
39  process.simCscTriggerPrimitiveDigis.commonParam.runME21ILT = cms.bool(True)
40  process.simCscTriggerPrimitiveDigis.me21tmbSLHCGEM = me21tmbSLHCGEM
41  ## ME21 has its own SLHC processors
42  process.simCscTriggerPrimitiveDigis.alctSLHCME21 = process.simCscTriggerPrimitiveDigis.alctSLHC.clone()
43  process.simCscTriggerPrimitiveDigis.clctSLHCME21 = process.simCscTriggerPrimitiveDigis.clctSLHC.clone()
44  process.simCscTriggerPrimitiveDigis.alctSLHCME21.alctNplanesHitPattern = 3
45  #process.simCscTriggerPrimitiveDigis.alctSLHCME21.runME21ILT = cms.bool(True)
46  process.simCscTriggerPrimitiveDigis.clctSLHCME21.clctNplanesHitPattern = 3
47  process.simCscTriggerPrimitiveDigis.clctSLHCME21.clctPidThreshPretrig = 2
48  return process
49 
50 def customise_Validation(process):
51  process.load('Validation.MuonGEMHits.gemSimValid_cff')
52  process.genvalid_all += process.gemSimValid
53  if ( hasattr(process,"me0SimValid") ) :
54  process.genvalid_all += process.me0SimValid
55  return process
56 
57 def customise_harvesting(process):
58  process.load('Validation.MuonGEMHits.gemPostValidation_cff')
59  process.genHarvesting += process.gemPostValidation
60  process.load('DQMServices.Components.EDMtoMEConverter_cff')
61  process.genHarvesting += process.EDMtoMEConverter
62  return process
63 
def customise_Validation
Definition: gemCustom.py:50
def customise2023
Definition: gemCustom.py:2
def customise_L1simulation
Definition: gemCustom.py:22
def customise_harvesting
Definition: gemCustom.py:57
def customise_digitization
Definition: gemCustom.py:12