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 = "uncleanedOnlyCorrectedHybridSuperClusters",
12  endcapSuperClusters = "uncleanedOnlyCorrectedMulti5x5SuperClustersWithPreshower"
13  )
14 
16 uncleanedOnlyElectronCkfTrackCandidates = electronCkfTrackCandidates.clone(
17  src = "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 = "uncleanedOnlyCorrectedHybridSuperClusters",
34  bcBarrelCollection = "hybridSuperClusters:uncleanOnlyHybridSuperClusters",
35  scIslandEndcapProducer = "uncleanedOnlyCorrectedMulti5x5SuperClustersWithPreshower",
36  bcEndcapCollection = "multi5x5SuperClusters:uncleanOnlyMulti5x5EndcapBasicClusters"
37  )
38 
40 uncleanedOnlyCkfOutInTracksFromConversions = ckfOutInTracksFromConversions.clone(
41  src = "uncleanedOnlyConversionTrackCandidates:outInTracksFromConversions",
42  producer = 'uncleanedOnlyConversionTrackCandidates',
43  ComponentName = 'uncleanedOnlyCkfOutInTracksFromConversions'
44  )
45 
47 uncleanedOnlyCkfInOutTracksFromConversions = ckfInOutTracksFromConversions.clone(
48  src = "uncleanedOnlyConversionTrackCandidates:inOutTracksFromConversions",
49  producer = 'uncleanedOnlyConversionTrackCandidates',
50  ComponentName = '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 = 'uncleanedOnlyCkfInOutTracksFromConversions'
62  )
63 
65 uncleanedOnlyOutInConversionTrackProducer = outInConversionTrackProducer.clone(
66  TrackProducer = 'uncleanedOnlyCkfOutInTracksFromConversions'
67  )
68 
70 uncleanedOnlyGsfConversionTrackProducer = gsfConversionTrackProducer.clone(
71  TrackProducer = 'uncleanedOnlyElectronGsfTracks'
72  )
73 
74 uncleanedOnlyConversionTrackProducersTask = cms.Task(uncleanedOnlyGeneralConversionTrackProducer,uncleanedOnlyInOutConversionTrackProducer,uncleanedOnlyOutInConversionTrackProducer,uncleanedOnlyGsfConversionTrackProducer)
75 uncleanedOnlyConversionTrackProducers = cms.Sequence(uncleanedOnlyConversionTrackProducersTask)
76 
78 uncleanedOnlyInOutOutInConversionTrackMerger = inOutOutInConversionTrackMerger.clone(
79  TrackProducer2 = 'uncleanedOnlyOutInConversionTrackProducer',
80  TrackProducer1 = 'uncleanedOnlyInOutConversionTrackProducer'
81  )
82 
84 uncleanedOnlyGeneralInOutOutInConversionTrackMerger = generalInOutOutInConversionTrackMerger.clone(
85  TrackProducer2 = 'uncleanedOnlyGeneralConversionTrackProducer',
86  TrackProducer1 = 'uncleanedOnlyInOutOutInConversionTrackMerger'
87  )
88 
90 uncleanedOnlyGsfGeneralInOutOutInConversionTrackMerger = gsfGeneralInOutOutInConversionTrackMerger.clone(
91  TrackProducer2 = 'uncleanedOnlyGsfConversionTrackProducer',
92  TrackProducer1 = 'uncleanedOnlyGeneralInOutOutInConversionTrackMerger'
93  )
94 
95 uncleanedOnlyConversionTrackMergersTask = cms.Task(uncleanedOnlyInOutOutInConversionTrackMerger,uncleanedOnlyGeneralInOutOutInConversionTrackMerger,uncleanedOnlyGsfGeneralInOutOutInConversionTrackMerger)
96 uncleanedOnlyConversionTrackMergers = cms.Sequence(uncleanedOnlyConversionTrackMergersTask)
97 
99 uncleanedOnlyAllConversions = allConversions.clone(
100  scBarrelProducer = "uncleanedOnlyCorrectedHybridSuperClusters",
101  bcBarrelCollection = "hybridSuperClusters:uncleanOnlyHybridSuperClusters",
102  scEndcapProducer = "uncleanedOnlyCorrectedMulti5x5SuperClustersWithPreshower",
103  bcEndcapCollection = "multi5x5SuperClusters:uncleanOnlyMulti5x5EndcapBasicClusters",
104  src = "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 = "uncleanedOnlyElectronGsfTracks"
116  )
117 
119 uncleanedOnlyPfConversions = pfConversions.clone(
120  conversionCollection = "allConversions"
121  )
122 
124 uncleanedOnlyPfTrackElec = pfTrackElec.clone(
125  PFConversions = "uncleanedOnlyPfConversions",
126  GsfTrackModuleLabel = "uncleanedOnlyElectronGsfTracks",
127  PFRecTrackLabel = "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.ecalDrivenGsfElectronCoresFromMultiCl_cff import ecalDrivenGsfElectronCoresFromMultiCl
139 uncleanedOnlyGsfElectronCores = ecalDrivenGsfElectronCores.clone(
140  gsfTracks = "uncleanedOnlyElectronGsfTracks",
141  gsfPfRecTracks = "uncleanedOnlyPfTrackElec"
142  )
143 
145 uncleanedOnlyGsfElectrons = ecalDrivenGsfElectrons.clone(
146  gsfPfRecTracksTag = "uncleanedOnlyPfTrackElec",
147  gsfElectronCoresTag = "uncleanedOnlyGsfElectronCores",
148  seedsTag = "uncleanedOnlyElectronSeeds"
149  )
150 
151 uncleanedOnlyElectronsTask = cms.Task(uncleanedOnlyGsfElectronCores,uncleanedOnlyGsfElectrons)
152 uncleanedOnlyElectrons = cms.Sequence(uncleanedOnlyElectronsTask)
153 #
154 # Whole Sequence
155 #
156 
157 uncleanedOnlyElectronTask = cms.Task(uncleanedOnlyTrackingTask,uncleanedOnlyConversionsTask,uncleanedOnlyPfTrackingTask,uncleanedOnlyElectronsTask)
158 uncleanedOnlyElectronSequence = cms.Sequence(uncleanedOnlyElectronTask)
ecalDrivenElectronSeeds_cff
pfConversions_cfi
allConversions_cfi
conversionTrackSequence_cff
ckfInOutTracksFromConversions_cfi
ckfOutInTracksFromConversions_cfi
pfTrackElec_cfi
GsfElectronGsfFit_cff
gsfElectrons_cfi
CkfElectronCandidateMaker_cff
conversionTrackCandidates_cff
pfTrack_cfi