CMS 3D CMS Logo

TkOnlyDigi_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 def TkOnlyDigi(process):
4  print "!!! Special version of the digitization for tracker only !!!"
5  if hasattr(process,'digitisationTkOnly_step'):
6  process=customise_DigiTkOnly(process)
7 
8  return process
9 
10 def customise_DigiTkOnly(process):
11  process.load('Configuration.StandardSequences.Digi_cff')
12  process.doAllDigi = cms.Sequence()
13  process.load('SimGeneral.MixingModule.mixObjects_cfi')
14  process.digitisationTkOnly_step.remove(process.mix.mixObjects.mixCH)
15  del process.simCastorDigis
16  del process.simEcalUnsuppressedDigis
17  del process.simHcalUnsuppressedDigis
18  process.mix.digitizers = cms.PSet(process.theDigitizersValid)
19  del process.mix.digitizers.ecal
20  del process.mix.digitizers.hcal
21  del process.mix.digitizers.castor
22  process.digitisationTkOnly_step.remove(process.mix.digitizers.pixel)
23  process.load('SimTracker.SiPhase2Digitizer.phase2TrackerDigitizer_cfi')
24  process.mix.digitizers.pixel=process.phase2TrackerDigitizer
25  process.mix.digitizers.strip.ROUList = cms.vstring("g4SimHitsTrackerHitsPixelBarrelLowTof",
26  'g4SimHitsTrackerHitsPixelEndcapLowTof')
27  #Check if mergedtruth is in the sequence first, could be taken out depending on cmsDriver options
28  if hasattr(process.mix.digitizers,"mergedtruth") :
29  process.mix.digitizers.mergedtruth.simHitCollections.muon = cms.VInputTag( )
30  process.mix.digitizers.mergedtruth.simHitCollections.tracker.remove( cms.InputTag("g4SimHits","TrackerHitsTIBLowTof"))
31  process.mix.digitizers.mergedtruth.simHitCollections.tracker.remove( cms.InputTag("g4SimHits","TrackerHitsTIBHighTof"))
32  process.mix.digitizers.mergedtruth.simHitCollections.tracker.remove( cms.InputTag("g4SimHits","TrackerHitsTOBLowTof"))
33  process.mix.digitizers.mergedtruth.simHitCollections.tracker.remove( cms.InputTag("g4SimHits","TrackerHitsTOBHighTof"))
34  process.mix.digitizers.mergedtruth.simHitCollections.tracker.remove( cms.InputTag("g4SimHits","TrackerHitsTECLowTof"))
35  process.mix.digitizers.mergedtruth.simHitCollections.tracker.remove( cms.InputTag("g4SimHits","TrackerHitsTECHighTof"))
36  process.mix.digitizers.mergedtruth.simHitCollections.tracker.remove( cms.InputTag("g4SimHits","TrackerHitsTIDLowTof"))
37  process.mix.digitizers.mergedtruth.simHitCollections.tracker.remove( cms.InputTag("g4SimHits","TrackerHitsTIDHighTof"))
38 
39  # keep new digis
40  alist=['FEVTDEBUG','FEVTDEBUGHLT','FEVT']
41  for a in alist:
42  b=a+'output'
43  if hasattr(process,b):
44  getattr(process,b).outputCommands.append('keep Phase2TrackerDigiedmDetSetVector_*_*_*')
45  return process
46 
def customise_DigiTkOnly(process)
def TkOnlyDigi(process)