CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/RecoEgamma/EgammaElectronProducers/python/uncleanedOnlyElectronSequence_cff.py

Go to the documentation of this file.
00001 
00002 #import copy
00003 #from PhysicsTools.PatAlgos.tools.helpers import *
00004 
00005 #
00006 # Tracking
00007 #
00008 
00009 from RecoEgamma.EgammaElectronProducers.ecalDrivenElectronSeeds_cfi import *
00010 uncleanedOnlyElectronSeeds = ecalDrivenElectronSeeds.clone(
00011     barrelSuperClusters = cms.InputTag("uncleanedOnlyCorrectedHybridSuperClusters"),
00012     endcapSuperClusters = cms.InputTag("uncleanedOnlyCorrectedMulti5x5SuperClustersWithPreshower")
00013     )
00014 
00015 from TrackingTools.GsfTracking.CkfElectronCandidateMaker_cff import *
00016 uncleanedOnlyElectronCkfTrackCandidates = electronCkfTrackCandidates.clone(
00017     src = cms.InputTag("uncleanedOnlyElectronSeeds")
00018     )
00019 
00020 from TrackingTools.GsfTracking.GsfElectronGsfFit_cff import *
00021 uncleanedOnlyElectronGsfTracks = electronGsfTracks.clone(
00022     src = 'uncleanedOnlyElectronCkfTrackCandidates'
00023     )
00024 
00025 uncleanedOnlyTracking = cms.Sequence(uncleanedOnlyElectronSeeds*uncleanedOnlyElectronCkfTrackCandidates*uncleanedOnlyElectronGsfTracks)
00026 
00027 #
00028 # Conversions
00029 #
00030 
00031 from RecoEgamma.EgammaPhotonProducers.conversionTrackCandidates_cfi import *
00032 uncleanedOnlyConversionTrackCandidates = conversionTrackCandidates.clone(
00033     scHybridBarrelProducer = cms.InputTag("uncleanedOnlyCorrectedHybridSuperClusters"),
00034     bcBarrelCollection  = cms.InputTag("hybridSuperClusters","uncleanOnlyHybridSuperClusters"),
00035     scIslandEndcapProducer  = cms.InputTag("uncleanedOnlyCorrectedMulti5x5SuperClustersWithPreshower"),
00036     bcEndcapCollection  = cms.InputTag("multi5x5SuperClusters","uncleanOnlyMulti5x5EndcapBasicClusters")
00037     )
00038 
00039 from RecoEgamma.EgammaPhotonProducers.ckfOutInTracksFromConversions_cfi import *
00040 uncleanedOnlyCkfOutInTracksFromConversions = ckfOutInTracksFromConversions.clone(
00041     src = cms.InputTag("uncleanedOnlyConversionTrackCandidates","outInTracksFromConversions"),
00042     producer = cms.string('uncleanedOnlyConversionTrackCandidates'),
00043     ComponentName = cms.string('uncleanedOnlyCkfOutInTracksFromConversions')
00044     )
00045 
00046 from RecoEgamma.EgammaPhotonProducers.ckfInOutTracksFromConversions_cfi import *
00047 uncleanedOnlyCkfInOutTracksFromConversions = ckfInOutTracksFromConversions.clone(
00048     src = cms.InputTag("uncleanedOnlyConversionTrackCandidates","inOutTracksFromConversions"),
00049     producer = cms.string('uncleanedOnlyConversionTrackCandidates'),
00050     ComponentName = cms.string('uncleanedOnlyCkfInOutTracksFromConversions')
00051     )
00052 
00053 uncleanedOnlyCkfTracksFromConversions = cms.Sequence(uncleanedOnlyConversionTrackCandidates*uncleanedOnlyCkfOutInTracksFromConversions*uncleanedOnlyCkfInOutTracksFromConversions)
00054 
00055 from RecoEgamma.EgammaPhotonProducers.conversionTrackSequence_cff import *
00056 uncleanedOnlyGeneralConversionTrackProducer = generalConversionTrackProducer.clone()
00057 
00058 from RecoEgamma.EgammaPhotonProducers.conversionTrackSequence_cff import *
00059 uncleanedOnlyInOutConversionTrackProducer = inOutConversionTrackProducer.clone(
00060     TrackProducer = cms.string('uncleanedOnlyCkfInOutTracksFromConversions')
00061     )
00062 
00063 from RecoEgamma.EgammaPhotonProducers.conversionTrackSequence_cff import *
00064 uncleanedOnlyOutInConversionTrackProducer = outInConversionTrackProducer.clone(
00065     TrackProducer = cms.string('uncleanedOnlyCkfOutInTracksFromConversions')
00066     )
00067 
00068 from RecoEgamma.EgammaPhotonProducers.conversionTrackSequence_cff import *
00069 uncleanedOnlyGsfConversionTrackProducer = gsfConversionTrackProducer.clone(
00070     TrackProducer = cms.string('uncleanedOnlyElectronGsfTracks')
00071     )
00072 
00073 uncleanedOnlyConversionTrackProducers  = cms.Sequence(uncleanedOnlyGeneralConversionTrackProducer*uncleanedOnlyInOutConversionTrackProducer*uncleanedOnlyOutInConversionTrackProducer*uncleanedOnlyGsfConversionTrackProducer)
00074 
00075 from RecoEgamma.EgammaPhotonProducers.conversionTrackSequence_cff import *
00076 uncleanedOnlyInOutOutInConversionTrackMerger = inOutOutInConversionTrackMerger.clone(
00077     TrackProducer2 = cms.string('uncleanedOnlyOutInConversionTrackProducer'),
00078     TrackProducer1 = cms.string('uncleanedOnlyInOutConversionTrackProducer')
00079     )
00080 
00081 from RecoEgamma.EgammaPhotonProducers.conversionTrackSequence_cff import *
00082 uncleanedOnlyGeneralInOutOutInConversionTrackMerger = generalInOutOutInConversionTrackMerger.clone(
00083     TrackProducer2 = cms.string('uncleanedOnlyGeneralConversionTrackProducer'),
00084     TrackProducer1 = cms.string('uncleanedOnlyInOutOutInConversionTrackMerger')
00085     )
00086 
00087 from RecoEgamma.EgammaPhotonProducers.conversionTrackSequence_cff import *
00088 uncleanedOnlyGsfGeneralInOutOutInConversionTrackMerger = gsfGeneralInOutOutInConversionTrackMerger.clone(
00089     TrackProducer2 = cms.string('uncleanedOnlyGsfConversionTrackProducer'),
00090     TrackProducer1 = cms.string('uncleanedOnlyGeneralInOutOutInConversionTrackMerger')
00091     )
00092 
00093 uncleanedOnlyConversionTrackMergers = cms.Sequence(uncleanedOnlyInOutOutInConversionTrackMerger*uncleanedOnlyGeneralInOutOutInConversionTrackMerger*uncleanedOnlyGsfGeneralInOutOutInConversionTrackMerger)
00094 
00095 from RecoEgamma.EgammaPhotonProducers.allConversions_cfi import *
00096 uncleanedOnlyAllConversions = allConversions.clone(
00097     scBarrelProducer = cms.InputTag("uncleanedOnlyCorrectedHybridSuperClusters"),
00098     bcBarrelCollection  = cms.InputTag("hybridSuperClusters","uncleanOnlyHybridSuperClusters"),
00099     scEndcapProducer = cms.InputTag("uncleanedOnlyCorrectedMulti5x5SuperClustersWithPreshower"),
00100     bcEndcapCollection = cms.InputTag("multi5x5SuperClusters","uncleanOnlyMulti5x5EndcapBasicClusters"),
00101     src = cms.InputTag("uncleanedOnlyGsfGeneralInOutOutInConversionTrackMerger")
00102     )
00103 
00104 uncleanedOnlyConversions = cms.Sequence(uncleanedOnlyCkfTracksFromConversions*uncleanedOnlyConversionTrackProducers*uncleanedOnlyConversionTrackMergers*uncleanedOnlyAllConversions)
00105 
00106 #
00107 # Particle Flow Tracking
00108 #
00109 
00110 from RecoParticleFlow.PFTracking.pfTrack_cfi import *
00111 uncleanedOnlyPfTrack = pfTrack.clone(
00112     GsfTrackModuleLabel = cms.InputTag("uncleanedOnlyElectronGsfTracks")
00113     )
00114 
00115 from RecoParticleFlow.PFTracking.pfConversions_cfi import *
00116 uncleanedOnlyPfConversions = pfConversions.clone(
00117     conversionCollection = cms.InputTag("allConversions")
00118     )
00119 
00120 from RecoParticleFlow.PFTracking.pfTrackElec_cfi import *
00121 uncleanedOnlyPfTrackElec = pfTrackElec.clone(
00122     PFConversions = cms.InputTag("uncleanedOnlyPfConversions"),
00123     GsfTrackModuleLabel = cms.InputTag("uncleanedOnlyElectronGsfTracks"),
00124     PFRecTrackLabel = cms.InputTag("uncleanedOnlyPfTrack")
00125     )
00126 
00127 uncleanedOnlyPfTracking = cms.Sequence(uncleanedOnlyPfTrack*uncleanedOnlyPfConversions*uncleanedOnlyPfTrackElec)
00128 
00129 #
00130 # Electrons
00131 #
00132 
00133 from RecoEgamma.EgammaElectronProducers.gsfElectronCores_cfi import *
00134 uncleanedOnlyGsfElectronCores = ecalDrivenGsfElectronCores.clone(
00135     gsfTracks = cms.InputTag("uncleanedOnlyElectronGsfTracks"),
00136     gsfPfRecTracks = cms.InputTag("uncleanedOnlyPfTrackElec")
00137     )
00138 
00139 from RecoEgamma.EgammaElectronProducers.gsfElectrons_cfi import *
00140 uncleanedOnlyGsfElectrons = ecalDrivenGsfElectrons.clone(
00141     gsfPfRecTracksTag = cms.InputTag("uncleanedOnlyPfTrackElec"),
00142     gsfElectronCoresTag = cms.InputTag("uncleanedOnlyGsfElectronCores"),
00143     seedsTag = cms.InputTag("uncleanedOnlyElectronSeeds")
00144     )
00145 
00146 uncleanedOnlyElectrons = cms.Sequence(uncleanedOnlyGsfElectronCores*uncleanedOnlyGsfElectrons)
00147 
00148 #
00149 # Whole Sequence
00150 #
00151 
00152 uncleanedOnlyElectronSequence = cms.Sequence(uncleanedOnlyTracking*uncleanedOnlyConversions*uncleanedOnlyPfTracking*uncleanedOnlyElectrons)
00153