CMS 3D CMS Logo

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

Functions

def disableMaterialInteractionsTracker
 
def disableOOTPU
 
def fakeSimHits_for_geometry_ECALHCAL
 

Function Documentation

def Customs.disableMaterialInteractionsTracker (   process)

Definition at line 32 of file Customs.py.

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

Definition at line 9 of file Customs.py.

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

Definition at line 20 of file Customs.py.

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