Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:24:50

0001 
0002 #import copy
0003 #from PhysicsTools.PatAlgos.tools.helpers import *
0004 
0005 #
0006 # Tracking
0007 #
0008 
0009 from RecoEgamma.EgammaElectronProducers.ecalDrivenElectronSeeds_cff import *
0010 uncleanedOnlyElectronSeeds = ecalDrivenElectronSeeds.clone(
0011     barrelSuperClusters = "uncleanedOnlyCorrectedHybridSuperClusters",
0012     endcapSuperClusters = "uncleanedOnlyCorrectedMulti5x5SuperClustersWithPreshower"
0013     )
0014 
0015 from TrackingTools.GsfTracking.CkfElectronCandidateMaker_cff import *
0016 uncleanedOnlyElectronCkfTrackCandidates = electronCkfTrackCandidates.clone(
0017     src = "uncleanedOnlyElectronSeeds"
0018     )
0019 
0020 from TrackingTools.GsfTracking.GsfElectronGsfFit_cff import *
0021 uncleanedOnlyElectronGsfTracks = electronGsfTracks.clone(
0022     src = 'uncleanedOnlyElectronCkfTrackCandidates'
0023     )
0024 
0025 uncleanedOnlyTrackingTask = cms.Task(uncleanedOnlyElectronSeeds,uncleanedOnlyElectronCkfTrackCandidates,uncleanedOnlyElectronGsfTracks)
0026 uncleanedOnlyTracking = cms.Sequence(uncleanedOnlyTrackingTask)
0027 #
0028 # Conversions
0029 #
0030 
0031 from RecoEgamma.EgammaPhotonProducers.conversionTrackCandidates_cff import *
0032 uncleanedOnlyConversionTrackCandidates = conversionTrackCandidates.clone(
0033     scHybridBarrelProducer  = "uncleanedOnlyCorrectedHybridSuperClusters",
0034     bcBarrelCollection      = "hybridSuperClusters:uncleanOnlyHybridSuperClusters",
0035     scIslandEndcapProducer  = "uncleanedOnlyCorrectedMulti5x5SuperClustersWithPreshower",
0036     bcEndcapCollection      = "multi5x5SuperClusters:uncleanOnlyMulti5x5EndcapBasicClusters"
0037     )
0038 
0039 from RecoEgamma.EgammaPhotonProducers.ckfOutInTracksFromConversions_cfi import *
0040 uncleanedOnlyCkfOutInTracksFromConversions = ckfOutInTracksFromConversions.clone(
0041     src           = "uncleanedOnlyConversionTrackCandidates:outInTracksFromConversions",
0042     producer      = 'uncleanedOnlyConversionTrackCandidates',
0043     ComponentName = 'uncleanedOnlyCkfOutInTracksFromConversions'
0044     )
0045 
0046 from RecoEgamma.EgammaPhotonProducers.ckfInOutTracksFromConversions_cfi import *
0047 uncleanedOnlyCkfInOutTracksFromConversions = ckfInOutTracksFromConversions.clone(
0048     src           = "uncleanedOnlyConversionTrackCandidates:inOutTracksFromConversions",
0049     producer      = 'uncleanedOnlyConversionTrackCandidates',
0050     ComponentName = 'uncleanedOnlyCkfInOutTracksFromConversions'
0051     )
0052 
0053 uncleanedOnlyCkfTracksFromConversionsTask = cms.Task(uncleanedOnlyConversionTrackCandidates,uncleanedOnlyCkfOutInTracksFromConversions,uncleanedOnlyCkfInOutTracksFromConversions)
0054 uncleanedOnlyCkfTracksFromConversions = cms.Sequence(uncleanedOnlyCkfTracksFromConversionsTask)
0055 
0056 from RecoEgamma.EgammaPhotonProducers.conversionTrackSequence_cff import *
0057 uncleanedOnlyGeneralConversionTrackProducer = generalConversionTrackProducer.clone()
0058 
0059 from RecoEgamma.EgammaPhotonProducers.conversionTrackSequence_cff import *
0060 uncleanedOnlyInOutConversionTrackProducer = inOutConversionTrackProducer.clone(
0061     TrackProducer = 'uncleanedOnlyCkfInOutTracksFromConversions'
0062     )
0063 
0064 from RecoEgamma.EgammaPhotonProducers.conversionTrackSequence_cff import *
0065 uncleanedOnlyOutInConversionTrackProducer = outInConversionTrackProducer.clone(
0066     TrackProducer = 'uncleanedOnlyCkfOutInTracksFromConversions'
0067     )
0068 
0069 from RecoEgamma.EgammaPhotonProducers.conversionTrackSequence_cff import *
0070 uncleanedOnlyGsfConversionTrackProducer = gsfConversionTrackProducer.clone(
0071     TrackProducer = 'uncleanedOnlyElectronGsfTracks'
0072     )
0073 
0074 uncleanedOnlyConversionTrackProducersTask  = cms.Task(uncleanedOnlyGeneralConversionTrackProducer,uncleanedOnlyInOutConversionTrackProducer,uncleanedOnlyOutInConversionTrackProducer,uncleanedOnlyGsfConversionTrackProducer)
0075 uncleanedOnlyConversionTrackProducers  = cms.Sequence(uncleanedOnlyConversionTrackProducersTask)
0076 
0077 from RecoEgamma.EgammaPhotonProducers.conversionTrackSequence_cff import *
0078 uncleanedOnlyInOutOutInConversionTrackMerger = inOutOutInConversionTrackMerger.clone(
0079     TrackProducer2 = 'uncleanedOnlyOutInConversionTrackProducer',
0080     TrackProducer1 = 'uncleanedOnlyInOutConversionTrackProducer'
0081     )
0082 
0083 from RecoEgamma.EgammaPhotonProducers.conversionTrackSequence_cff import *
0084 uncleanedOnlyGeneralInOutOutInConversionTrackMerger = generalInOutOutInConversionTrackMerger.clone(
0085     TrackProducer2 = 'uncleanedOnlyGeneralConversionTrackProducer',
0086     TrackProducer1 = 'uncleanedOnlyInOutOutInConversionTrackMerger'
0087     )
0088 
0089 from RecoEgamma.EgammaPhotonProducers.conversionTrackSequence_cff import *
0090 uncleanedOnlyGsfGeneralInOutOutInConversionTrackMerger = gsfGeneralInOutOutInConversionTrackMerger.clone(
0091     TrackProducer2 = 'uncleanedOnlyGsfConversionTrackProducer',
0092     TrackProducer1 = 'uncleanedOnlyGeneralInOutOutInConversionTrackMerger'
0093     )
0094 
0095 uncleanedOnlyConversionTrackMergersTask = cms.Task(uncleanedOnlyInOutOutInConversionTrackMerger,uncleanedOnlyGeneralInOutOutInConversionTrackMerger,uncleanedOnlyGsfGeneralInOutOutInConversionTrackMerger)
0096 uncleanedOnlyConversionTrackMergers = cms.Sequence(uncleanedOnlyConversionTrackMergersTask)
0097 
0098 from RecoEgamma.EgammaPhotonProducers.allConversions_cfi import *
0099 uncleanedOnlyAllConversions = allConversions.clone(
0100     scBarrelProducer    = "uncleanedOnlyCorrectedHybridSuperClusters",
0101     bcBarrelCollection  = "hybridSuperClusters:uncleanOnlyHybridSuperClusters",
0102     scEndcapProducer    = "uncleanedOnlyCorrectedMulti5x5SuperClustersWithPreshower",
0103     bcEndcapCollection  = "multi5x5SuperClusters:uncleanOnlyMulti5x5EndcapBasicClusters",
0104     src                 = "uncleanedOnlyGsfGeneralInOutOutInConversionTrackMerger"
0105     )
0106 
0107 uncleanedOnlyConversionsTask = cms.Task(uncleanedOnlyCkfTracksFromConversionsTask,uncleanedOnlyConversionTrackProducersTask,uncleanedOnlyConversionTrackMergersTask,uncleanedOnlyAllConversions)
0108 uncleanedOnlyConversions = cms.Sequence(uncleanedOnlyConversionsTask)
0109 #
0110 # Particle Flow Tracking
0111 #
0112 
0113 from RecoParticleFlow.PFTracking.pfTrack_cfi import *
0114 uncleanedOnlyPfTrack = pfTrack.clone(
0115     GsfTrackModuleLabel = "uncleanedOnlyElectronGsfTracks"
0116     )
0117 
0118 from RecoParticleFlow.PFTracking.pfConversions_cfi import *
0119 uncleanedOnlyPfConversions = pfConversions.clone(
0120     conversionCollection = "allConversions"
0121     )
0122 
0123 from RecoParticleFlow.PFTracking.pfTrackElec_cfi import *
0124 uncleanedOnlyPfTrackElec = pfTrackElec.clone(
0125     PFConversions       = "uncleanedOnlyPfConversions",
0126     GsfTrackModuleLabel = "uncleanedOnlyElectronGsfTracks",
0127     PFRecTrackLabel     = "uncleanedOnlyPfTrack"
0128     )
0129 
0130 uncleanedOnlyPfTrackingTask = cms.Task(uncleanedOnlyPfTrack,uncleanedOnlyPfConversions,uncleanedOnlyPfTrackElec)
0131 uncleanedOnlyPfTracking = cms.Sequence(uncleanedOnlyPfTrackingTask)
0132 
0133 #
0134 # Electrons
0135 #
0136 
0137 from RecoEgamma.EgammaElectronProducers.ecalDrivenGsfElectronCores_cfi import ecalDrivenGsfElectronCores
0138 from RecoEgamma.EgammaElectronProducers.ecalDrivenGsfElectronCoresHGC_cff import ecalDrivenGsfElectronCoresHGC
0139 uncleanedOnlyGsfElectronCores = ecalDrivenGsfElectronCores.clone(
0140     gsfTracks      = "uncleanedOnlyElectronGsfTracks",
0141     gsfPfRecTracks = "uncleanedOnlyPfTrackElec"
0142     )
0143 
0144 from RecoEgamma.EgammaElectronProducers.gsfElectrons_cfi import *
0145 uncleanedOnlyGsfElectrons = ecalDrivenGsfElectrons.clone(
0146     gsfPfRecTracksTag   = "uncleanedOnlyPfTrackElec",
0147     gsfElectronCoresTag = "uncleanedOnlyGsfElectronCores",
0148     seedsTag            = "uncleanedOnlyElectronSeeds"
0149     )
0150 
0151 uncleanedOnlyElectronsTask = cms.Task(uncleanedOnlyGsfElectronCores,uncleanedOnlyGsfElectrons)
0152 uncleanedOnlyElectrons = cms.Sequence(uncleanedOnlyElectronsTask)
0153 #
0154 # Whole Sequence
0155 #
0156 
0157 uncleanedOnlyElectronTask = cms.Task(uncleanedOnlyTrackingTask,uncleanedOnlyConversionsTask,uncleanedOnlyPfTrackingTask,uncleanedOnlyElectronsTask)
0158 uncleanedOnlyElectronSequence = cms.Sequence(uncleanedOnlyElectronTask)