test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 uncleanedOnlyTracking = cms.Sequence(uncleanedOnlyElectronSeeds*uncleanedOnlyElectronCkfTrackCandidates*uncleanedOnlyElectronGsfTracks)
26 
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 uncleanedOnlyCkfTracksFromConversions = cms.Sequence(uncleanedOnlyConversionTrackCandidates*uncleanedOnlyCkfOutInTracksFromConversions*uncleanedOnlyCkfInOutTracksFromConversions)
54 
56 uncleanedOnlyGeneralConversionTrackProducer = generalConversionTrackProducer.clone()
57 
59 uncleanedOnlyInOutConversionTrackProducer = inOutConversionTrackProducer.clone(
60  TrackProducer = cms.string('uncleanedOnlyCkfInOutTracksFromConversions')
61  )
62 
64 uncleanedOnlyOutInConversionTrackProducer = outInConversionTrackProducer.clone(
65  TrackProducer = cms.string('uncleanedOnlyCkfOutInTracksFromConversions')
66  )
67 
69 uncleanedOnlyGsfConversionTrackProducer = gsfConversionTrackProducer.clone(
70  TrackProducer = cms.string('uncleanedOnlyElectronGsfTracks')
71  )
72 
73 uncleanedOnlyConversionTrackProducers = cms.Sequence(uncleanedOnlyGeneralConversionTrackProducer*uncleanedOnlyInOutConversionTrackProducer*uncleanedOnlyOutInConversionTrackProducer*uncleanedOnlyGsfConversionTrackProducer)
74 
76 uncleanedOnlyInOutOutInConversionTrackMerger = inOutOutInConversionTrackMerger.clone(
77  TrackProducer2 = cms.InputTag('uncleanedOnlyOutInConversionTrackProducer'),
78  TrackProducer1 = cms.InputTag('uncleanedOnlyInOutConversionTrackProducer')
79  )
80 
82 uncleanedOnlyGeneralInOutOutInConversionTrackMerger = generalInOutOutInConversionTrackMerger.clone(
83  TrackProducer2 = cms.InputTag('uncleanedOnlyGeneralConversionTrackProducer'),
84  TrackProducer1 = cms.InputTag('uncleanedOnlyInOutOutInConversionTrackMerger')
85  )
86 
88 uncleanedOnlyGsfGeneralInOutOutInConversionTrackMerger = gsfGeneralInOutOutInConversionTrackMerger.clone(
89  TrackProducer2 = cms.InputTag('uncleanedOnlyGsfConversionTrackProducer'),
90  TrackProducer1 = cms.InputTag('uncleanedOnlyGeneralInOutOutInConversionTrackMerger')
91  )
92 
93 uncleanedOnlyConversionTrackMergers = cms.Sequence(uncleanedOnlyInOutOutInConversionTrackMerger*uncleanedOnlyGeneralInOutOutInConversionTrackMerger*uncleanedOnlyGsfGeneralInOutOutInConversionTrackMerger)
94 
96 uncleanedOnlyAllConversions = allConversions.clone(
97  scBarrelProducer = cms.InputTag("uncleanedOnlyCorrectedHybridSuperClusters"),
98  bcBarrelCollection = cms.InputTag("hybridSuperClusters","uncleanOnlyHybridSuperClusters"),
99  scEndcapProducer = cms.InputTag("uncleanedOnlyCorrectedMulti5x5SuperClustersWithPreshower"),
100  bcEndcapCollection = cms.InputTag("multi5x5SuperClusters","uncleanOnlyMulti5x5EndcapBasicClusters"),
101  src = cms.InputTag("uncleanedOnlyGsfGeneralInOutOutInConversionTrackMerger")
102  )
103 
104 uncleanedOnlyConversions = cms.Sequence(uncleanedOnlyCkfTracksFromConversions*uncleanedOnlyConversionTrackProducers*uncleanedOnlyConversionTrackMergers*uncleanedOnlyAllConversions)
105 
106 #
107 # Particle Flow Tracking
108 #
109 
111 uncleanedOnlyPfTrack = pfTrack.clone(
112  GsfTrackModuleLabel = cms.InputTag("uncleanedOnlyElectronGsfTracks")
113  )
114 
116 uncleanedOnlyPfConversions = pfConversions.clone(
117  conversionCollection = cms.InputTag("allConversions")
118  )
119 
121 uncleanedOnlyPfTrackElec = pfTrackElec.clone(
122  PFConversions = cms.InputTag("uncleanedOnlyPfConversions"),
123  GsfTrackModuleLabel = cms.InputTag("uncleanedOnlyElectronGsfTracks"),
124  PFRecTrackLabel = cms.InputTag("uncleanedOnlyPfTrack")
125  )
126 
127 uncleanedOnlyPfTracking = cms.Sequence(uncleanedOnlyPfTrack*uncleanedOnlyPfConversions*uncleanedOnlyPfTrackElec)
128 
129 #
130 # Electrons
131 #
132 
134 uncleanedOnlyGsfElectronCores = ecalDrivenGsfElectronCores.clone(
135  gsfTracks = cms.InputTag("uncleanedOnlyElectronGsfTracks"),
136  gsfPfRecTracks = cms.InputTag("uncleanedOnlyPfTrackElec")
137  )
138 
140 uncleanedOnlyGsfElectrons = ecalDrivenGsfElectrons.clone(
141  gsfPfRecTracksTag = cms.InputTag("uncleanedOnlyPfTrackElec"),
142  gsfElectronCoresTag = cms.InputTag("uncleanedOnlyGsfElectronCores"),
143  seedsTag = cms.InputTag("uncleanedOnlyElectronSeeds")
144  )
145 
146 uncleanedOnlyElectrons = cms.Sequence(uncleanedOnlyGsfElectronCores*uncleanedOnlyGsfElectrons)
147 
148 #
149 # Whole Sequence
150 #
151 
152 uncleanedOnlyElectronSequence = cms.Sequence(uncleanedOnlyTracking*uncleanedOnlyConversions*uncleanedOnlyPfTracking*uncleanedOnlyElectrons)
153