Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-10 22:49:48

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoEgamma.EgammaTools.cleanedEcalDrivenGsfElectronsHGC_cfi import cleanedEcalDrivenGsfElectronsHGC
0004 from RecoEgamma.EgammaTools.hgcalElectronIDValueMap_cff import hgcalElectronIDValueMap
0005 from PhysicsTools.PatAlgos.PATElectronProducer_cfi import PATElectronProducer
0006 from PhysicsTools.PatAlgos.slimming.slimmedElectrons_cfi import slimmedElectrons
0007 from RecoLocalCalo.HGCalRecProducers.hgcalRecHitMapProducer_cfi import hgcalRecHitMapProducer
0008 
0009 hgcElectronID = hgcalElectronIDValueMap.clone(
0010     electrons = "cleanedEcalDrivenGsfElectronsHGC",
0011 )
0012 patElectronsHGC = PATElectronProducer.clone(
0013     electronSource             = "cleanedEcalDrivenGsfElectronsHGC",
0014     beamLineSrc                = "offlineBeamSpot",
0015     pvSrc                      = "offlinePrimaryVertices",
0016     addElectronID              = False,
0017     addGenMatch                = False,
0018     addMVAVariables            = False,
0019     embedGenMatch              = False,
0020     embedGsfElectronCore       = True,
0021     embedGsfTrack              = True,
0022     embedSuperCluster          = True,
0023     embedPflowSuperCluster     = False,
0024     embedSeedCluster           = True,
0025     embedBasicClusters         = False,
0026     embedPreshowerClusters     = False,
0027     embedPflowBasicClusters    = False,
0028     embedPflowPreshowerClusters= False,
0029     embedPFCandidate           = False,
0030     embedTrack                 = True,
0031     embedRecHits               = False,
0032     embedHighLevelSelection    = True,
0033     userData = cms.PSet(
0034         userClasses = cms.PSet( src = cms.VInputTag('')),
0035         userFloats  = cms.PSet( src = cms.VInputTag(
0036             [cms.InputTag("hgcElectronID", key) for key in hgcElectronID.variables]
0037         )),
0038         userInts  = cms.PSet( src = cms.VInputTag('')),
0039         userCands = cms.PSet( src = cms.VInputTag('')),
0040         userFunctions = cms.vstring(),
0041         userFunctionLabels = cms.vstring()
0042     ),
0043 )
0044 selectedPatElectronsHGC = cms.EDFilter("PATElectronSelector",
0045     src = cms.InputTag("patElectronsHGC"),
0046     cut = cms.string("!isEB && pt >= 10."),
0047 )
0048 slimmedElectronsHGC = slimmedElectrons.clone(
0049     src = "selectedPatElectronsHGC",
0050     linkToPackedPFCandidates = False,
0051     saveNonZSClusterShapes   = "0",
0052     modifyElectrons          = False,
0053 )
0054 
0055 slimmedElectronsHGCTask = cms.Task(
0056     cleanedEcalDrivenGsfElectronsHGC,
0057     hgcElectronID,
0058     patElectronsHGC,
0059     selectedPatElectronsHGC,
0060     slimmedElectronsHGC
0061 )
0062 
0063 
0064 from RecoEgamma.EgammaTools.hgcalPhotonIDValueMap_cff import hgcalPhotonIDValueMap
0065 from PhysicsTools.PatAlgos.PATPhotonProducer_cfi import PATPhotonProducer
0066 from PhysicsTools.PatAlgos.slimming.slimmedPhotons_cfi import slimmedPhotons
0067 
0068 hgcPhotonID = hgcalPhotonIDValueMap.clone()
0069 
0070 patPhotonsHGC = PATPhotonProducer.clone(
0071     photonSource           = "photonsHGC",
0072     electronSource         = "ecalDrivenGsfElectronsHGC",
0073     beamLineSrc            = "offlineBeamSpot",
0074     addPhotonID            = False,
0075     addGenMatch            = False,
0076     embedSuperCluster      = True,
0077     embedSeedCluster       = True,
0078     embedBasicClusters     = False,
0079     embedPreshowerClusters = False,
0080     embedRecHits           = False,
0081     saveRegressionData     = False,
0082     embedGenMatch          = False,
0083     isolationValues = cms.PSet(),
0084     userData = cms.PSet(
0085         userClasses = cms.PSet( src = cms.VInputTag('')),
0086         userFloats  = cms.PSet( src = cms.VInputTag(
0087             [cms.InputTag("hgcPhotonID", key) for key in hgcPhotonID.variables]
0088         )),
0089         userInts  = cms.PSet( src = cms.VInputTag('')),
0090         userCands = cms.PSet( src = cms.VInputTag('')),
0091         userFunctions = cms.vstring(),
0092         userFunctionLabels = cms.vstring()
0093     ),
0094 )
0095 selectedPatPhotonsHGC = cms.EDFilter("PATPhotonSelector",
0096     src = cms.InputTag("patPhotonsHGC"),
0097     cut = cms.string("!isEB && pt >= 15."),
0098 )
0099 slimmedPhotonsHGC = slimmedPhotons.clone(
0100     src = "selectedPatPhotonsHGC",
0101     linkToPackedPFCandidates = False,
0102     saveNonZSClusterShapes   = "0",
0103     modifyPhotons            = False,
0104 )
0105 
0106 slimmedPhotonsHGCTask = cms.Task(
0107     hgcPhotonID,
0108     patPhotonsHGC,
0109     selectedPatPhotonsHGC,
0110     slimmedPhotonsHGC
0111 )
0112 
0113 slimmedEgammaHGCTask = cms.Task(
0114     hgcalRecHitMapProducer,
0115     slimmedElectronsHGCTask,
0116     slimmedPhotonsHGCTask
0117 )