CMS 3D CMS Logo

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

Functions

def disableMaterialInteractionsTracker (process)
 
def disableOOTPU (process)
 
def fakeSimHits_for_geometry_ECALHCAL (process)
 

Function Documentation

◆ disableMaterialInteractionsTracker()

def Customs.disableMaterialInteractionsTracker (   process)

Definition at line 32 of file Customs.py.

33  for layer in process.fastSimProducer.detectorDefinition.BarrelLayers:
34  layer.interactionModels = cms.untracked.vstring("trackerSimHits")
35  for layer in process.fastSimProducer.detectorDefinition.ForwardLayers:
36  layer.interactionModels = cms.untracked.vstring("trackerSimHits")
37  return process
38 
39 
def disableMaterialInteractionsTracker(process)
Definition: Customs.py:32

◆ disableOOTPU()

def Customs.disableOOTPU (   process)

Definition at line 9 of file Customs.py.

9 def disableOOTPU(process):
10  process.mix.maxBunch = cms.int32(0)
11  process.mix.minBunch = cms.int32(0)
12  # set the bunch spacing
13  # bunch spacing matters for calorimeter calibration
14  # by convention bunchspace is set to 450 in case of no oot pu
15  process.mix.bunchspace = 450
16  return process
17 
18 # run this customisation function during the digi-step
19 # when processing a gen-sim sample that was generated with the HCALECAL geometry
def disableOOTPU(process)
Definition: Customs.py:9

◆ fakeSimHits_for_geometry_ECALHCAL()

def Customs.fakeSimHits_for_geometry_ECALHCAL (   process)

Definition at line 20 of file Customs.py.

21  import FastSimulation.Validation.EmptySimHits_cfi
22  process.g4SimHits = FastSimulation.Validation.EmptySimHits_cfi.emptySimHits.clone(
23  pCaloHitInstanceLabels = ["CastorFI"],
24  pSimHitInstanceLabels = []
25  )
26  for _entry in process.mix.mixObjects.mixSH.input:
27  process.g4SimHits.pSimHitInstanceLabels.append(_entry.getProductInstanceLabel())
28  process.emptySimHits_step = cms.Path(process.g4SimHits)
29  process.schedule.insert(0,process.emptySimHits_step)
30  return process
31 
def fakeSimHits_for_geometry_ECALHCAL(process)
Definition: Customs.py:20