CMS 3D CMS Logo

digitizersCosmics_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # configuration to model pileup for initial physics phase
12 
13 pixelDigitizer.TofLowerCut=cms.double(18.5)
14 pixelDigitizer.TofUpperCut=cms.double(43.5)
15 stripDigitizer.CosmicDelayShift = cms.untracked.double(31)
16 
17 ecalDigitizer.cosmicsPhase = cms.bool(True)
18 ecalDigitizer.cosmicsShift = cms.double(1.)
19 
20 theDigitizers = cms.PSet(
21  pixel = cms.PSet(
22  pixelDigitizer
23  ),
24  strip = cms.PSet(
25  stripDigitizer
26  ),
27  ecal = cms.PSet(
28  ecalDigitizer
29  ),
30  hcal = cms.PSet(
31  hcalDigitizer
32  ),
33  castor = cms.PSet(
34  castorDigitizer
35  )
36 )
37 
38 from Configuration.Eras.Modifier_run3_common_cff import run3_common
39 run3_common.toModify( theDigitizers, castor = None )
40 
41 from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import hgceeDigitizer, hgchebackDigitizer, hgchefrontDigitizer, HGCAL_noise_fC, HGCAL_noise_heback, HFNose_noise_fC, HGCAL_chargeCollectionEfficiencies, HGCAL_ileakParam_toUse, HGCAL_cceParams_toUse, HGCAL_noises
42 
43 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
44 phase2_hgcal.toModify( theDigitizers,
45  hgceeDigitizer = cms.PSet(hgceeDigitizer),
46  hgchebackDigitizer = cms.PSet(hgchebackDigitizer),
47  hgchefrontDigitizer = cms.PSet(hgchefrontDigitizer),
48  calotruth = cms.PSet(caloParticles), #HGCAL still needs calotruth for production mode
49 )
50 
52 
53 from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
54 phase2_hfnose.toModify( theDigitizers,
55  hfnoseDigitizer = cms.PSet(hfnoseDigitizer),
56 )
57 
58 from SimGeneral.MixingModule.ecalTimeDigitizer_cfi import ecalTimeDigitizer
59 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
60 phase2_timing.toModify( theDigitizers,
61  ecalTime = ecalTimeDigitizer.clone() )
62 
63 from SimFastTiming.Configuration.SimFastTiming_cff import mtdDigitizer
64 from Configuration.Eras.Modifier_phase2_timing_layer_cff import phase2_timing_layer
65 phase2_timing_layer.toModify( theDigitizers,
66  fastTimingLayer = mtdDigitizer.clone() )
67 
68 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
69 phase2_tracker.toModify(theDigitizers,
70  strip = None)
71 
72 theDigitizersValid = cms.PSet(theDigitizers,
73  mergedtruth = cms.PSet(trackingParticles))