CMS 3D CMS Logo

egammaForCoreTracking_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
4 
5 from RecoEcal.EgammaClusterProducers.particleFlowSuperClusterECAL_cfi import particleFlowSuperClusterECAL as _particleFlowSuperClusterECAL
6 
7 #cant use the regression as requires #vertices and we cant use tracking info
8 #also require it to be above 20 GeV as we only want E/gammas Et>20 and H/E <0.2
9 particleFlowSuperClusterECALForTrk = _particleFlowSuperClusterECAL.clone(
10  useRegression = cms.bool(False),
11  regressionConfig = cms.PSet(),
12  thresh_SCEt = cms.double(20.0)
13 )
14 
15 egammasForTrk = cms.EDProducer( "EgammaHLTRecoEcalCandidateProducers",
16  scIslandEndcapProducer = cms.InputTag( 'particleFlowSuperClusterECALForTrk','particleFlowSuperClusterECALEndcapWithPreshower' ),
17  scHybridBarrelProducer = cms.InputTag( 'particleFlowSuperClusterECALForTrk','particleFlowSuperClusterECALBarrel' ),
18  recoEcalCandidateCollection = cms.string( "" )
19 )
20 
21 egammaHoverEForTrk = cms.EDProducer( "EgammaHLTBcHcalIsolationProducersRegional",
22  effectiveAreas = cms.vdouble( 0.105, 0.17 ),
23  doRhoCorrection = cms.bool( False ),
24  outerCone = cms.double( 0.15 ),
25  caloTowerProducer = cms.InputTag( "caloTowerForTrk" ),
26  innerCone = cms.double( 0.0 ),
27  useSingleTower = cms.bool( False ),
28  rhoProducer = cms.InputTag( "" ),
29  depth = cms.int32( -1 ),
30  absEtaLowEdges = cms.vdouble( 0.0, 1.479 ),
31  recoEcalCandidateProducer = cms.InputTag( "egammasForTrk" ),
32  rhoMax = cms.double( 9.9999999E7 ),
33  etMin = cms.double( 0.0 ),
34  rhoScale = cms.double( 1.0 ),
35  doEtSum = cms.bool( False )
36 )
37 
38 egammasForCoreTracking = cms.EDProducer( "EgammaHLTFilteredEcalCandPtrProducer",
39  cands = cms.InputTag( "egammasForTrk" ),
40  cuts = cms.VPSet(
41  cms.PSet(
42  var = cms.InputTag( "egammaHoverEForTrk" ),
43  barrelCut = cms.PSet(
44  useEt = cms.bool( False ),
45  cutOverE = cms.double( 0.2 )
46  ),
47  endcapCut = cms.PSet(
48  useEt = cms.bool( False ),
49  cutOverE = cms.double( 0.2 )
50  )
51  )
52  )
53 )
54 egammaForCoreTrackingTask = cms.Task(particleFlowSuperClusterECALForTrk,
55  egammasForTrk,
56  egammaHoverEForTrk,
57  egammasForCoreTracking)
58 
59 egammaForCoreTrackingSeq = cms.Sequence(egammaForCoreTrackingTask)