8 import FWCore.ParameterSet.Config
as cms
14 if hasattr(digitizers,
"castor"):
15 delattr(digitizers,
"castor")
17 print "WARNING: digitizers has no attribute 'castor'"
20 if hasattr(digitizers,
"pixel")
and hasattr(digitizers,
"strip"):
21 delattr(digitizers,
"pixel")
22 delattr(digitizers,
"strip")
23 import FastSimulation.Tracking.recoTrackAccumulator_cfi
24 digitizers.tracker = cms.PSet(FastSimulation.Tracking.recoTrackAccumulator_cfi.recoTrackAccumulator)
26 print "WARNING: digitizers has no attribute 'pixel' and/or 'strip'"
27 print " : => not mixing tracks"
30 for element
in [
"ecal",
"hcal"]:
31 if hasattr(digitizers,element):
32 getattr(digitizers,element).hitsProducer =
"famosSimHits"
34 print "WARNING: digitizers has no attribute '{0}'".
format(element)
37 if hasattr(digitizers,
"mergedtruth"):
38 digitizers.mergedtruth.allowDifferentSimHitProcesses =
True
39 digitizers.mergedtruth.simHitCollections = cms.PSet(
40 muon = cms.VInputTag( cms.InputTag(
'MuonSimHits',
'MuonDTHits'),
41 cms.InputTag(
'MuonSimHits',
'MuonCSCHits'),
42 cms.InputTag(
'MuonSimHits',
'MuonRPCHits') ),
43 trackerAndPixel = cms.VInputTag( cms.InputTag(
'famosSimHits',
'TrackerHits') )
45 digitizers.mergedtruth.simTrackCollection = cms.InputTag(
'famosSimHits')
46 digitizers.mergedtruth.simVertexCollection = cms.InputTag(
'famosSimHits')
57 import FastSimulation.Configuration.mixObjects_cfi
58 process.mix.mixObjects = FastSimulation.Configuration.mixObjects_cfi.theMixObjects
62 for element
in [
"simCastorDigis",
"simSiPixelDigis",
"simSiStripDigis"]:
63 if hasattr(process,element):
64 delattr(process,element)
68 del process.theDigitizers
69 del process.theDigitizersValid
70 del process.trackingParticles
71 del process.stripDigitizer
72 del process.SiStripSimBlock
73 del process.castorDigitizer
74 del process.pixelDigitizer
75 del process.ecalDigitizer
79 del process.siStripGainSimESProducer
def prepareDigiRecoMixing