Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:34:16

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 
0004 
0005 from RecoEcal.EgammaClusterProducers.particleFlowSuperClusterECAL_cfi import particleFlowSuperClusterECAL as _particleFlowSuperClusterECAL
0006 
0007 #cant use the regression as requires #vertices and we cant use tracking info
0008 #also require it to be above 20 GeV as we only want E/gammas Et>20 and H/E <0.2
0009 particleFlowSuperClusterECALForTrk = _particleFlowSuperClusterECAL.clone(
0010      useRegression = False,
0011      regressionConfig = cms.PSet(),
0012      thresh_SCEt = 20.0
0013 )
0014 
0015 egammasForTrk = cms.EDProducer( "EgammaHLTRecoEcalCandidateProducers",
0016     scIslandEndcapProducer = cms.InputTag( 'particleFlowSuperClusterECALForTrk','particleFlowSuperClusterECALEndcapWithPreshower' ),
0017     scHybridBarrelProducer = cms.InputTag( 'particleFlowSuperClusterECALForTrk','particleFlowSuperClusterECALBarrel' ),
0018     recoEcalCandidateCollection = cms.string( "" )
0019 )
0020 
0021 egammaHoverEForTrk = cms.EDProducer( "EgammaHLTBcHcalIsolationProducersRegional",
0022     effectiveAreas = cms.vdouble( 0.105, 0.17 ),
0023     doRhoCorrection = cms.bool( False ),
0024     outerCone = cms.double( 0.15 ),
0025     caloTowerProducer = cms.InputTag( "caloTowerForTrk" ),
0026     innerCone = cms.double( 0.0 ),
0027     useSingleTower = cms.bool( False ),
0028     rhoProducer = cms.InputTag( "" ),
0029     depth = cms.int32( -1 ),
0030     absEtaLowEdges = cms.vdouble( 0.0, 1.479 ),
0031     recoEcalCandidateProducer = cms.InputTag( "egammasForTrk" ),
0032     rhoMax = cms.double( 9.9999999E7 ),
0033     etMin = cms.double( 0.0 ),
0034     rhoScale = cms.double( 1.0 ),
0035     doEtSum = cms.bool( False )
0036 )
0037 
0038 egammasForCoreTracking = cms.EDProducer( "EgammaHLTFilteredEcalCandPtrProducer",
0039     cands = cms.InputTag( "egammasForTrk" ),
0040     cuts = cms.VPSet( 
0041         cms.PSet(
0042             var = cms.InputTag( "egammaHoverEForTrk" ),
0043             barrelCut = cms.PSet( 
0044                 useEt = cms.bool( False ),
0045                 cutOverE = cms.double( 0.2 )
0046             ),
0047             endcapCut = cms.PSet( 
0048                 useEt = cms.bool( False ),
0049                 cutOverE = cms.double( 0.2 )
0050             )
0051         )     
0052     )                                                        
0053 )                                        
0054 egammaForCoreTrackingTask = cms.Task(particleFlowSuperClusterECALForTrk, 
0055                                      egammasForTrk,
0056                                      egammaHoverEForTrk, 
0057                                      egammasForCoreTracking)
0058 
0059 egammaForCoreTrackingSeq = cms.Sequence(egammaForCoreTrackingTask)