CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
digitizers_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
13 
14 theDigitizers = cms.PSet(
15  pixel = cms.PSet(
16  pixelDigitizer
17  ),
18  strip = cms.PSet(
19  stripDigitizer
20  ),
21  ecal = cms.PSet(
22  ecalDigitizer
23  ),
24  hcal = cms.PSet(
25  hcalDigitizer
26  ),
27  castor = cms.PSet(
28  castorDigitizer
29  ),
30  puVtx = cms.PSet(
31  pileupVtxDigitizer
32  )
33 )
34 
35 from Configuration.StandardSequences.Eras import eras
36 if eras.fastSim.isChosen():
37  # fastsim does not model castor
38  delattr(theDigitizers,"castor")
39  # fastsim does not digitize pixel and strip hits
40  delattr(theDigitizers,"pixel")
41  delattr(theDigitizers,"strip")
42  setattr(theDigitizers,"tracks",recoTrackAccumulator)
43 
44 theDigitizersValid = cms.PSet(
45  theDigitizers,
46  mergedtruth = cms.PSet(
47  trackingParticles
48  )
49  )