CMS 3D CMS Logo

Functions
customiseStoreTrajectoryInEvent Namespace Reference

Functions

def customiseStoreTrajectoryInEvent (process)
 
def producers_by_type (process, types)
 

Function Documentation

◆ customiseStoreTrajectoryInEvent()

def customiseStoreTrajectoryInEvent.customiseStoreTrajectoryInEvent (   process)

Definition at line 5 of file customiseStoreTrajectoryInEvent.py.

References producers_by_type().

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

◆ producers_by_type()

def customiseStoreTrajectoryInEvent.producers_by_type (   process,
  types 
)

Definition at line 2 of file customiseStoreTrajectoryInEvent.py.

Referenced by customiseStoreTrajectoryInEvent().

2 def producers_by_type(process, *types):
3  return (module for module in process._Process__producers.values() if module._TypedParameterizable__type in types)
4