CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
reducedRecHitsSequence_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 import RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi
4 
5 interestingEcalDetIdEB = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
6  basicClustersLabel = cms.InputTag("hybridSuperClusters","hybridBarrelBasicClusters"),
7  recHitsLabel = cms.InputTag("ecalRecHit","EcalRecHitsEB")
8  )
9 
10 interestingEcalDetIdEBU = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
11  basicClustersLabel = cms.InputTag("hybridSuperClusters","uncleanOnlyHybridBarrelBasicClusters"),
12  recHitsLabel = cms.InputTag("ecalRecHit","EcalRecHitsEB")
13  )
14 
15 interestingEcalDetIdEE = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
16  basicClustersLabel = cms.InputTag("multi5x5SuperClusters","multi5x5EndcapBasicClusters"),
17  recHitsLabel = cms.InputTag("ecalRecHit","EcalRecHitsEE")
18  )
19 
20 interestingEcalDetIdPFEB = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
21  basicClustersLabel = cms.InputTag("particleFlowSuperClusterECAL","particleFlowBasicClusterECALBarrel"),
22  recHitsLabel = cms.InputTag("ecalRecHit","EcalRecHitsEB")
23  )
24 
25 interestingEcalDetIdPFEE = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
26  basicClustersLabel = cms.InputTag("particleFlowSuperClusterECAL","particleFlowBasicClusterECALEndcap"),
27  recHitsLabel = cms.InputTag("ecalRecHit","EcalRecHitsEE")
28  )
29 
30 interestingEcalDetIdPFES = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
31  basicClustersLabel = cms.InputTag("particleFlowSuperClusterECAL","particleFlowBasicClusterECALPreshower"),
32  recHitsLabel = cms.InputTag("ecalPreshowerRecHit","EcalRecHitsES"),
33  severityLevel = cms.int32(-1),
34  keepNextToDead = cms.bool(False),
35  keepNextToBoundary = cms.bool(False)
36  )
37 
38 interestingEcalDetIdRefinedEB = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
39  basicClustersLabel = cms.InputTag("particleFlowEGamma","EBEEClusters"),
40  recHitsLabel = cms.InputTag("ecalRecHit","EcalRecHitsEB")
41  )
42 
43 interestingEcalDetIdRefinedEE = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
44  basicClustersLabel = cms.InputTag("particleFlowEGamma","EBEEClusters"),
45  recHitsLabel = cms.InputTag("ecalRecHit","EcalRecHitsEE")
46  )
47 
48 interestingEcalDetIdRefinedES = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
49  basicClustersLabel = cms.InputTag("particleFlowEGamma","ESClusters"),
50  recHitsLabel = cms.InputTag("ecalPreshowerRecHit","EcalRecHitsES"),
51  severityLevel = cms.int32(-1),
52  keepNextToDead = cms.bool(False),
53  keepNextToBoundary = cms.bool(False)
54  )
55 
56 # rechits associated to high pt tracks for HSCP
57 
58 from TrackingTools.TrackAssociator.default_cfi import TrackAssociatorParameterBlock
59 
60 interestingTrackEcalDetIds = cms.EDProducer('InterestingTrackEcalDetIdProducer',
61  TrackAssociatorParameterBlock,
62  TrackCollection = cms.InputTag("generalTracks"),
63  MinTrackPt = cms.double(50.0)
64 )
65 
66 reducedEcalRecHitsEB = cms.EDProducer("ReducedRecHitCollectionProducer",
67  recHitsLabel = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
68  interestingDetIdCollections = cms.VInputTag(
69  # ecal
70  cms.InputTag("interestingEcalDetIdEB"),
71  cms.InputTag("interestingEcalDetIdEBU"),
72  #ged
73  cms.InputTag("interestingEcalDetIdPFEB"),
74  cms.InputTag("interestingEcalDetIdRefinedEB"),
75  # egamma
76  cms.InputTag("interestingGedEleIsoDetIdEB"),
77  cms.InputTag("interestingGedGamIsoDetIdEB"),
78  cms.InputTag("interestingGamIsoDetIdEB"),
79  # tau
80  #cms.InputTag("caloRecoTauProducer"),
81  # muons
82  cms.InputTag("muonEcalDetIds"),
83  # high pt tracks
84  cms.InputTag("interestingTrackEcalDetIds")
85  ),
86  reducedHitsCollection = cms.string('')
87 )
88 
89 reducedEcalRecHitsEE = cms.EDProducer("ReducedRecHitCollectionProducer",
90  recHitsLabel = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
91  interestingDetIdCollections = cms.VInputTag(
92  # ecal
93  cms.InputTag("interestingEcalDetIdEE"),
94  #ged
95  cms.InputTag("interestingEcalDetIdPFEE"),
96  cms.InputTag("interestingEcalDetIdRefinedEE"),
97  # egamma
98  cms.InputTag("interestingGedEleIsoDetIdEE"),
99  cms.InputTag("interestingGedGamIsoDetIdEE"),
100  cms.InputTag("interestingGamIsoDetIdEE"),
101  # tau
102  #cms.InputTag("caloRecoTauProducer"),
103  # muons
104  cms.InputTag("muonEcalDetIds"),
105  # high pt tracks
106  cms.InputTag("interestingTrackEcalDetIds")
107  ),
108  reducedHitsCollection = cms.string('')
109 )
110 
111 reducedEcalRecHitsES = cms.EDProducer("ReducedESRecHitCollectionProducer",
112  scEtThreshold = cms.double(15),
113  EcalRecHitCollectionES = cms.InputTag('ecalPreshowerRecHit','EcalRecHitsES'),
114  EndcapSuperClusterCollection = cms.InputTag('correctedMulti5x5SuperClustersWithPreshower'),
115  OutputLabel_ES = cms.string(''),
116  interestingDetIds = cms.VInputTag(
117  cms.InputTag("interestingEcalDetIdPFES"),
118  cms.InputTag("interestingEcalDetIdRefinedES"),
119  ),
120  interestingDetIdsNotToClean = cms.VInputTag(
121  cms.InputTag("interestingGedEgammaIsoESDetId"),
122  )
123 )
124 
125 #selected digis
127 
128 reducedEcalRecHitsSequence = cms.Sequence(interestingEcalDetIdEB*interestingEcalDetIdEBU*
129  interestingEcalDetIdEE*
130  interestingEcalDetIdPFEB*interestingEcalDetIdPFEE*interestingEcalDetIdPFES*
131  interestingEcalDetIdRefinedEB*interestingEcalDetIdRefinedEE*interestingEcalDetIdRefinedES*
132  interestingTrackEcalDetIds*
133  reducedEcalRecHitsEB*
134  reducedEcalRecHitsEE*
135  seldigis*
136  reducedEcalRecHitsES)
137 
138 reducedEcalRecHitsSequenceEcalOnly = cms.Sequence(interestingEcalDetIdEB*interestingEcalDetIdEBU*
139  interestingEcalDetIdEE*
140  reducedEcalRecHitsEB*
141  reducedEcalRecHitsEE*
142  seldigis)