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 # main functions: prepareGenMixing and prepareDigiRecoMixing
4 # author: Lukas Vanelderen
5 # date: Jan 21 2015
6 #####################################
7 
8 import FWCore.ParameterSet.Config as cms
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
20 # when processing a gen-sim sample that was generated with the HCALECAL geometry
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
32 
34  process.famosSimHits.MaterialEffects.Bremsstrahlung = False
35  process.famosSimHits.MaterialEffects.NuclearInteraction = False
36  process.famosSimHits.MaterialEffects.PairProduction = False
37  process.famosSimHits.MaterialEffects.MuonBremsstrahlung = False
38  process.famosSimHits.MaterialEffects.MultipleScattering = False
39  process.famosSimHits.MaterialEffects.EnergyLoss = False
40  return process
41 
def fakeSimHits_for_geometry_ECALHCAL
Definition: Customs.py:21
def disableOOTPU
Definition: Customs.py:10
def disableMaterialInteractionsTracker
Definition: Customs.py:33