CMS 3D CMS Logo

customiseStoreTrajectoryInEvent.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 def producers_by_type(process, *types):
3  return (module for module in process._Process__producers.values() if module._TypedParameterizable__type in types)
4 
6  for producer in producers_by_type(process,"TrackProducer"):
7  producer.TrajectoryInEvent = cms.bool(True)
8  producer.useHitsSplitting = cms.bool(False) # HI still set this on...
9  for producer in producers_by_type(process,"TrackListMerger"):
10  producer.copyExtras = cms.untracked.bool(True)
11  producer.copyTrajectories = cms.untracked.bool(True)
12  for producer in producers_by_type(process,"TrackCollectionMerger"):
13  producer.copyExtras = cms.untracked.bool(True)
14  producer.copyTrajectories = cms.untracked.bool(True)
15  for producer in producers_by_type(process,"DuplicateListMerger"):
16  producer.copyExtras = cms.untracked.bool(True)
17  producer.copyTrajectories = cms.untracked.bool(True)
18  for producer in producers_by_type(process,"TrackCollectionFilterCloner"):
19  producer.copyExtras = cms.untracked.bool(True)
20  producer.copyTrajectories = cms.untracked.bool(True)
21  for producer in producers_by_type(process,"AnalyticalTrackSelector") :
22  producer.copyExtras = cms.untracked.bool(True)
23  producer.copyTrajectories = cms.untracked.bool(True)
24  return process
customiseStoreTrajectoryInEvent.customiseStoreTrajectoryInEvent
def customiseStoreTrajectoryInEvent(process)
Definition: customiseStoreTrajectoryInEvent.py:5
customiseStoreTrajectoryInEvent.producers_by_type
def producers_by_type(process, *types)
Definition: customiseStoreTrajectoryInEvent.py:2