CMS 3D CMS Logo

uncleanedOnlyElectronSequence_cff.py
Go to the documentation of this file.
1 
2 #import copy
3 #from PhysicsTools.PatAlgos.tools.helpers import *
4 
5 #
6 # Tracking
7 #
8 
10 uncleanedOnlyElectronSeeds = ecalDrivenElectronSeeds.clone(
11  barrelSuperClusters = cms.InputTag("uncleanedOnlyCorrectedHybridSuperClusters"),
12  endcapSuperClusters = cms.InputTag("uncleanedOnlyCorrectedMulti5x5SuperClustersWithPreshower")
13  )
14 
16 uncleanedOnlyElectronCkfTrackCandidates = electronCkfTrackCandidates.clone(
17  src = cms.InputTag("uncleanedOnlyElectronSeeds")
18  )
19 
21 uncleanedOnlyElectronGsfTracks = electronGsfTracks.clone(
22  src = 'uncleanedOnlyElectronCkfTrackCandidates'
23  )
24 
25 uncleanedOnlyTrackingTask = cms.Task(uncleanedOnlyElectronSeeds,uncleanedOnlyElectronCkfTrackCandidates,uncleanedOnlyElectronGsfTracks)
26 uncleanedOnlyTracking = cms.Sequence(uncleanedOnlyTrackingTask)
27 #
28 # Conversions
29 #
30 
32 uncleanedOnlyConversionTrackCandidates = conversionTrackCandidates.clone(
33  scHybridBarrelProducer = cms.InputTag("uncleanedOnlyCorrectedHybridSuperClusters"),
34  bcBarrelCollection = cms.InputTag("hybridSuperClusters","uncleanOnlyHybridSuperClusters"),
35  scIslandEndcapProducer = cms.InputTag("uncleanedOnlyCorrectedMulti5x5SuperClustersWithPreshower"),
36  bcEndcapCollection = cms.InputTag("multi5x5SuperClusters","uncleanOnlyMulti5x5EndcapBasicClusters")
37  )
38 
40 uncleanedOnlyCkfOutInTracksFromConversions = ckfOutInTracksFromConversions.clone(
41  src = cms.InputTag("uncleanedOnlyConversionTrackCandidates","outInTracksFromConversions"),
42  producer = cms.string('uncleanedOnlyConversionTrackCandidates'),
43  ComponentName = cms.string('uncleanedOnlyCkfOutInTracksFromConversions')
44  )
45 
47 uncleanedOnlyCkfInOutTracksFromConversions = ckfInOutTracksFromConversions.clone(
48  src = cms.InputTag("uncleanedOnlyConversionTrackCandidates","inOutTracksFromConversions"),
49  producer = cms.string('uncleanedOnlyConversionTrackCandidates'),
50  ComponentName = cms.string('uncleanedOnlyCkfInOutTracksFromConversions')
51  )
52 
53 uncleanedOnlyCkfTracksFromConversionsTask = cms.Task(uncleanedOnlyConversionTrackCandidates,uncleanedOnlyCkfOutInTracksFromConversions,uncleanedOnlyCkfInOutTracksFromConversions)
54 uncleanedOnlyCkfTracksFromConversions = cms.Sequence(uncleanedOnlyCkfTracksFromConversionsTask)
55 
57 uncleanedOnlyGeneralConversionTrackProducer = generalConversionTrackProducer.clone()
58 
60 uncleanedOnlyInOutConversionTrackProducer = inOutConversionTrackProducer.clone(
61  TrackProducer = cms.string('uncleanedOnlyCkfInOutTracksFromConversions')
62  )
63 
65 uncleanedOnlyOutInConversionTrackProducer = outInConversionTrackProducer.clone(
66  TrackProducer = cms.string('uncleanedOnlyCkfOutInTracksFromConversions')
67  )
68 
70 uncleanedOnlyGsfConversionTrackProducer = gsfConversionTrackProducer.clone(
71  TrackProducer = cms.string('uncleanedOnlyElectronGsfTracks')
72  )
73 
74 uncleanedOnlyConversionTrackProducersTask = cms.Task(uncleanedOnlyGeneralConversionTrackProducer,uncleanedOnlyInOutConversionTrackProducer,uncleanedOnlyOutInConversionTrackProducer,uncleanedOnlyGsfConversionTrackProducer)
75 uncleanedOnlyConversionTrackProducers = cms.Sequence(uncleanedOnlyConversionTrackProducersTask)
76 
78 uncleanedOnlyInOutOutInConversionTrackMerger = inOutOutInConversionTrackMerger.clone(
79  TrackProducer2 = cms.InputTag('uncleanedOnlyOutInConversionTrackProducer'),
80  TrackProducer1 = cms.InputTag('uncleanedOnlyInOutConversionTrackProducer')
81  )
82 
84 uncleanedOnlyGeneralInOutOutInConversionTrackMerger = generalInOutOutInConversionTrackMerger.clone(
85  TrackProducer2 = cms.InputTag('uncleanedOnlyGeneralConversionTrackProducer'),
86  TrackProducer1 = cms.InputTag('uncleanedOnlyInOutOutInConversionTrackMerger')
87  )
88 
90 uncleanedOnlyGsfGeneralInOutOutInConversionTrackMerger = gsfGeneralInOutOutInConversionTrackMerger.clone(
91  TrackProducer2 = cms.InputTag('uncleanedOnlyGsfConversionTrackProducer'),
92  TrackProducer1 = cms.InputTag('uncleanedOnlyGeneralInOutOutInConversionTrackMerger')
93  )
94 
95 uncleanedOnlyConversionTrackMergersTask = cms.Task(uncleanedOnlyInOutOutInConversionTrackMerger,uncleanedOnlyGeneralInOutOutInConversionTrackMerger,uncleanedOnlyGsfGeneralInOutOutInConversionTrackMerger)
96 uncleanedOnlyConversionTrackMergers = cms.Sequence(uncleanedOnlyConversionTrackMergersTask)
97 
99 uncleanedOnlyAllConversions = allConversions.clone(
100  scBarrelProducer = cms.InputTag("uncleanedOnlyCorrectedHybridSuperClusters"),
101  bcBarrelCollection = cms.InputTag("hybridSuperClusters","uncleanOnlyHybridSuperClusters"),
102  scEndcapProducer = cms.InputTag("uncleanedOnlyCorrectedMulti5x5SuperClustersWithPreshower"),
103  bcEndcapCollection = cms.InputTag("multi5x5SuperClusters","uncleanOnlyMulti5x5EndcapBasicClusters"),
104  src = cms.InputTag("uncleanedOnlyGsfGeneralInOutOutInConversionTrackMerger")
105  )
106 
107 uncleanedOnlyConversionsTask = cms.Task(uncleanedOnlyCkfTracksFromConversionsTask,uncleanedOnlyConversionTrackProducersTask,uncleanedOnlyConversionTrackMergersTask,uncleanedOnlyAllConversions)
108 uncleanedOnlyConversions = cms.Sequence(uncleanedOnlyConversionsTask)
109 #
110 # Particle Flow Tracking
111 #
112 
114 uncleanedOnlyPfTrack = pfTrack.clone(
115  GsfTrackModuleLabel = cms.InputTag("uncleanedOnlyElectronGsfTracks")
116  )
117 
119 uncleanedOnlyPfConversions = pfConversions.clone(
120  conversionCollection = cms.InputTag("allConversions")
121  )
122 
124 uncleanedOnlyPfTrackElec = pfTrackElec.clone(
125  PFConversions = cms.InputTag("uncleanedOnlyPfConversions"),
126  GsfTrackModuleLabel = cms.InputTag("uncleanedOnlyElectronGsfTracks"),
127  PFRecTrackLabel = cms.InputTag("uncleanedOnlyPfTrack")
128  )
129 
130 uncleanedOnlyPfTrackingTask = cms.Task(uncleanedOnlyPfTrack,uncleanedOnlyPfConversions,uncleanedOnlyPfTrackElec)
131 uncleanedOnlyPfTracking = cms.Sequence(uncleanedOnlyPfTrackingTask)
132 
133 #
134 # Electrons
135 #
136 
137 from RecoEgamma.EgammaElectronProducers.ecalDrivenGsfElectronCores_cfi import ecalDrivenGsfElectronCores
138 from RecoEgamma.EgammaElectronProducers.gsfElectronCores_cfi import gsfElectronCores
139 from RecoEgamma.EgammaElectronProducers.ecalDrivenGsfElectronCoresFromMultiCl_cff import ecalDrivenGsfElectronCoresFromMultiCl
140 uncleanedOnlyGsfElectronCores = ecalDrivenGsfElectronCores.clone(
141  gsfTracks = cms.InputTag("uncleanedOnlyElectronGsfTracks"),
142  gsfPfRecTracks = cms.InputTag("uncleanedOnlyPfTrackElec")
143  )
144 
146 uncleanedOnlyGsfElectrons = ecalDrivenGsfElectrons.clone(
147  gsfPfRecTracksTag = cms.InputTag("uncleanedOnlyPfTrackElec"),
148  gsfElectronCoresTag = cms.InputTag("uncleanedOnlyGsfElectronCores"),
149  seedsTag = cms.InputTag("uncleanedOnlyElectronSeeds")
150  )
151 
152 uncleanedOnlyElectronsTask = cms.Task(uncleanedOnlyGsfElectronCores,uncleanedOnlyGsfElectrons)
153 uncleanedOnlyElectrons = cms.Sequence(uncleanedOnlyElectronsTask)
154 #
155 # Whole Sequence
156 #
157 
158 uncleanedOnlyElectronTask = cms.Task(uncleanedOnlyTrackingTask,uncleanedOnlyConversionsTask,uncleanedOnlyPfTrackingTask,uncleanedOnlyElectronsTask)
159 uncleanedOnlyElectronSequence = cms.Sequence(uncleanedOnlyElectronTask)