CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Customs.py
Go to the documentation of this file.
1 #####################################
2 # a bunch of handy customisation functions
3 # author: Lukas Vanelderen
4 # date: Jan 21 2015
5 #####################################
6 
7 import FWCore.ParameterSet.Config as cms
8 
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
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 
33  process.famosSimHits.MaterialEffects.Bremsstrahlung = False
34  process.famosSimHits.MaterialEffects.NuclearInteraction = False
35  process.famosSimHits.MaterialEffects.PairProduction = False
36  process.famosSimHits.MaterialEffects.MuonBremsstrahlung = False
37  process.famosSimHits.MaterialEffects.MultipleScattering = False
38  process.famosSimHits.MaterialEffects.EnergyLoss = False
39  return process
40 
def fakeSimHits_for_geometry_ECALHCAL
Definition: Customs.py:20
def disableOOTPU
Definition: Customs.py:9
def disableMaterialInteractionsTracker
Definition: Customs.py:32