CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
customiseStoreTrajectoryInEvent Namespace Reference

Functions

def customiseStoreTrajectoryInEvent
 
def producers_by_type
 

Function Documentation

def customiseStoreTrajectoryInEvent.customiseStoreTrajectoryInEvent (   process)

Definition at line 5 of file customiseStoreTrajectoryInEvent.py.

References producers_by_type().

5 
7  for producer in producers_by_type(process,"TrackProducer"):
8  producer.TrajectoryInEvent = cms.bool(True)
9  producer.useHitsSplitting = cms.bool(False) # HI still set this on...
10  for producer in producers_by_type(process,"TrackListMerger"):
11  producer.copyExtras = cms.untracked.bool(True)
12  producer.copyTrajectories = cms.untracked.bool(True)
13  for producer in producers_by_type(process,"TrackCollectionMerger"):
14  producer.copyExtras = cms.untracked.bool(True)
15  producer.copyTrajectories = cms.untracked.bool(True)
16  for producer in producers_by_type(process,"DuplicateListMerger"):
17  producer.copyExtras = cms.untracked.bool(True)
18  producer.copyTrajectories = cms.untracked.bool(True)
19  for producer in producers_by_type(process,"TrackCollectionFilterCloner"):
20  producer.copyExtras = cms.untracked.bool(True)
21  producer.copyTrajectories = cms.untracked.bool(True)
22  for producer in producers_by_type(process,"AnalyticalTrackSelector") :
23  producer.copyExtras = cms.untracked.bool(True)
24  producer.copyTrajectories = cms.untracked.bool(True)
25  return process
def customiseStoreTrajectoryInEvent.producers_by_type (   process,
  types 
)

Definition at line 2 of file customiseStoreTrajectoryInEvent.py.

Referenced by customiseStoreTrajectoryInEvent().

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