15 if hasattr(digitizers,
"castor"):
16 delattr(digitizers,
"castor")
18 print "WARNING: digitizers has no attribute 'castor'"
21 if hasattr(digitizers,
"pixel")
and hasattr(digitizers,
"strip"):
22 delattr(digitizers,
"pixel")
23 delattr(digitizers,
"strip")
24 import FastSimulation.Tracking.recoTrackAccumulator_cfi
25 digitizers.tracker = cms.PSet(FastSimulation.Tracking.recoTrackAccumulator_cfi.recoTrackAccumulator)
27 print "WARNING: digitizers has no attribute 'pixel' and/or 'strip'"
28 print " : => not mixing tracks"
31 for element
in [
"ecal",
"hcal"]:
32 if hasattr(digitizers,element):
33 getattr(digitizers,element).hitsProducer =
"famosSimHits"
35 print "WARNING: digitizers has no attribute '{0}'".
format(element)
38 if hasattr(digitizers,
"mergedtruth"):
39 digitizers.mergedtruth.allowDifferentSimHitProcesses =
True
40 digitizers.mergedtruth.simHitCollections = cms.PSet(
41 muon = cms.VInputTag( cms.InputTag(
'MuonSimHits',
'MuonDTHits'),
42 cms.InputTag(
'MuonSimHits',
'MuonCSCHits'),
43 cms.InputTag(
'MuonSimHits',
'MuonRPCHits') ),
44 trackerAndPixel = cms.VInputTag( cms.InputTag(
'famosSimHits',
'TrackerHits') )
46 digitizers.mergedtruth.simTrackCollection = cms.InputTag(
'famosSimHits')
47 digitizers.mergedtruth.simVertexCollection = cms.InputTag(
'famosSimHits')