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 
28 # add updating the GEN information by default
31 
32 doAllDigi = cms.Sequence(generatorSmeared*calDigi+muonDigi)
33 pdigi = cms.Sequence(generatorSmeared*fixGenInfo*cms.SequencePlaceholder("randomEngineStateProducer")*cms.SequencePlaceholder("mix")*doAllDigi*addPileupInfo)
34 pdigi_valid = cms.Sequence(pdigi)
35 pdigi_nogen=cms.Sequence(generatorSmeared*cms.SequencePlaceholder("randomEngineStateProducer")*cms.SequencePlaceholder("mix")*doAllDigi*addPileupInfo)
36 pdigi_valid_nogen=cms.Sequence(pdigi_nogen)
37 
39 pdigi_hi=cms.Sequence(pdigi+heavyIon)
40 pdigi_hi_nogen=cms.Sequence(pdigi_nogen+heavyIon)
41 
42 from Configuration.Eras.Modifier_fastSim_cff import fastSim
43 if fastSim.isChosen():
44  # pretend these digis have been through digi2raw and raw2digi, by using the approprate aliases
45  # use an alias to make the mixed track collection available under the usual label
46  from FastSimulation.Configuration.DigiAliases_cff import loadDigiAliases
47  loadDigiAliases(premix = False)
48  from FastSimulation.Configuration.DigiAliases_cff import generalTracks,ecalPreshowerDigis,ecalDigis,hcalDigis,muonDTDigis,muonCSCDigis,muonRPCDigis
49 
50 #phase 2 common mods
51 def _modifyDigitizerPhase2Hcal( theProcess ):
52  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
53  theProcess.hcal_db_producer = _hcal_db_producer
54  theProcess.es_hardcode = _es_hardcode
55  theProcess.es_prefer_hcalHardcode = _es_prefer_hcalHardcode
56 
57 from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
58 modifyDigitizerPhase2Hcal_ = phase2_hcal.makeProcessModifier( _modifyDigitizerPhase2Hcal )
59 
60 
def loadDigiAliases(premix=False)
def _modifyDigitizerPhase2Hcal(theProcess)
Definition: Digi_cff.py:51