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 
138 uncleanedOnlyGsfElectronCores = ecalDrivenGsfElectronCores.clone(
139  gsfTracks = cms.InputTag("uncleanedOnlyElectronGsfTracks"),
140  gsfPfRecTracks = cms.InputTag("uncleanedOnlyPfTrackElec")
141  )
142 
144 uncleanedOnlyGsfElectrons = ecalDrivenGsfElectrons.clone(
145  gsfPfRecTracksTag = cms.InputTag("uncleanedOnlyPfTrackElec"),
146  gsfElectronCoresTag = cms.InputTag("uncleanedOnlyGsfElectronCores"),
147  seedsTag = cms.InputTag("uncleanedOnlyElectronSeeds")
148  )
149 
150 uncleanedOnlyElectronsTask = cms.Task(uncleanedOnlyGsfElectronCores,uncleanedOnlyGsfElectrons)
151 uncleanedOnlyElectrons = cms.Sequence(uncleanedOnlyElectronsTask)
152 #
153 # Whole Sequence
154 #
155 
156 uncleanedOnlyElectronTask = cms.Task(uncleanedOnlyTrackingTask,uncleanedOnlyConversionsTask,uncleanedOnlyPfTrackingTask,uncleanedOnlyElectronsTask)
157 uncleanedOnlyElectronSequence = cms.Sequence(uncleanedOnlyElectronTask)