-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
Copy pathcustomiseStoreTrajectoryInEvent.py
24 lines (23 loc) · 1.36 KB
/
customiseStoreTrajectoryInEvent.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import FWCore.ParameterSet.Config as cms
def producers_by_type(process, *types):
return (module for module in process._Process__producers.values() if module._TypedParameterizable__type in types)
def customiseStoreTrajectoryInEvent(process):
for producer in producers_by_type(process,"TrackProducer"):
producer.TrajectoryInEvent = cms.bool(True)
producer.useHitsSplitting = cms.bool(False) # HI still set this on...
for producer in producers_by_type(process,"TrackListMerger"):
producer.copyExtras = cms.untracked.bool(True)
producer.copyTrajectories = cms.untracked.bool(True)
for producer in producers_by_type(process,"TrackCollectionMerger"):
producer.copyExtras = cms.untracked.bool(True)
producer.copyTrajectories = cms.untracked.bool(True)
for producer in producers_by_type(process,"DuplicateListMerger"):
producer.copyExtras = cms.untracked.bool(True)
producer.copyTrajectories = cms.untracked.bool(True)
for producer in producers_by_type(process,"TrackCollectionFilterCloner"):
producer.copyExtras = cms.untracked.bool(True)
producer.copyTrajectories = cms.untracked.bool(True)
for producer in producers_by_type(process,"AnalyticalTrackSelector") :
producer.copyExtras = cms.untracked.bool(True)
producer.copyTrajectories = cms.untracked.bool(True)
return process