CMS 3D CMS Logo

Digi_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #
4 # Full-scale Digitization of the simulated hits
5 # in all CMS subdets : Tracker, ECAL, HCAl, Muon's;
6 # MixingModule (at least in zero-pileup mode) needs
7 # to be included to make Digi's operational, since
8 # it's required for ECAL/HCAL & Muon's
9 # Defined in a separate fragment
10 #
11 # Tracker Digis (Pixel + SiStrips) are now made in the mixing
12 # module, so the old "trDigi" sequence has been taken out.
13 #
14 
15 # Calorimetry Digis (Ecal + Hcal) - * unsuppressed *
16 # returns sequence "calDigi"
18 # Muon Digis (CSC + DT + RPC)
19 # returns sequence "muonDigi"
20 #
22 #
23 # TrackingParticle Producer is now part of the mixing module, so
24 # it is no longer run here.
25 #
27 
29 
30 # add updating the GEN information by default
34 
35 doAllDigiTask = cms.Task(generatorSmeared, calDigiTask, muonDigiTask)
36 pdigiTask_nogen = cms.Task(generatorSmeared, cms.TaskPlaceholder("randomEngineStateProducer"), cms.TaskPlaceholder("mix"), doAllDigiTask, addPileupInfo, genPUProtons)
37 pdigiTask = cms.Task(pdigiTask_nogen, fixGenInfoTask, tpPruningTask)
38 
39 doAllDigi = cms.Sequence(doAllDigiTask)
40 pdigi = cms.Sequence(pdigiTask)
41 pdigi_valid = cms.Sequence(pdigiTask)
42 pdigi_nogen=cms.Sequence(pdigiTask_nogen)
43 pdigi_valid_nogen=cms.Sequence(pdigiTask_nogen)
44 
46 pdigiTask_hi = cms.Task(pdigiTask, heavyIon)
47 pdigiTask_hi_nogen = cms.Task(pdigiTask_nogen, genJetMETTask, heavyIon)
48 pdigi_hi=cms.Sequence(pdigiTask_hi)
49 pdigi_hi_nogen=cms.Sequence(pdigiTask_hi_nogen)
50 
51 from Configuration.Eras.Modifier_fastSim_cff import fastSim
52 def _fastSimDigis(process):
53  import FastSimulation.Configuration.DigiAliases_cff as DigiAliases
54 
55  # pretend these digis have been through digi2raw and raw2digi, by using the approprate aliases
56  # use an alias to make the mixed track collection available under the usual label
57  from FastSimulation.Configuration.DigiAliases_cff import loadDigiAliases
58  loadDigiAliases(process)
59 # no need for the aliases for premixing stage1
60 modifyDigi_fastSimDigis = (fastSim & ~premix_stage1).makeProcessModifier(_fastSimDigis)
61 
62 #phase 2 common mods
63 def _modifyEnableHcalHardcode( theProcess ):
64  from CalibCalorimetry.HcalPlugins.Hcal_Conditions_forGlobalTag_cff import hcal_db_producer as _hcal_db_producer, es_hardcode as _es_hardcode, es_prefer_hcalHardcode as _es_prefer_hcalHardcode
65  theProcess.hcal_db_producer = _hcal_db_producer
66  theProcess.es_hardcode = _es_hardcode
67  theProcess.es_prefer_hcalHardcode = _es_prefer_hcalHardcode
68 
69 from Configuration.Eras.Modifier_hcalHardcodeConditions_cff import hcalHardcodeConditions
70 modifyEnableHcalHardcode_ = hcalHardcodeConditions.makeProcessModifier( _modifyEnableHcalHardcode )
71 
72 
def loadDigiAliases(process, premix=False)
def _fastSimDigis(process)
Definition: Digi_cff.py:52
def _modifyEnableHcalHardcode(theProcess)
Definition: Digi_cff.py:63