CMS 3D CMS Logo

electronIsoFromDeps_cff.py
Go to the documentation of this file.
1 
2 # computing of isolation from deposits,
3 # as provided by Matthew LeBourgeois
4 
7 
8 # create both IsoDeposits from the full collection and the reduced collection
9 
10 eleIsoDepositEcalFromHitsFull = eleIsoDepositEcalFromHits.clone()
11 eleIsoDepositEcalFromHitsReduced = eleIsoDepositEcalFromHits.clone()
12 
13 eleIsoDepositEcalFromHitsFull.ExtractorPSet.barrelEcalHits = "ecalRecHit : EcalRecHitsEB"
14 eleIsoDepositEcalFromHitsFull.ExtractorPSet.endcapEcalHits = "ecalRecHit : EcalRecHitsEE"
15 eleIsoDepositEcalFromHitsReduced.ExtractorPSet.barrelEcalHits = "reducedEcalRecHitsEB"
16 eleIsoDepositEcalFromHitsReduced.ExtractorPSet.endcapEcalHits = "reducedEcalRecHitsEE"
17 
18 
19 # clone the value map producers for each DR
20 
21 eleIsoFromDepsTk03 = eleIsoFromDepsTk.clone()
22 eleIsoFromDepsTk04 = eleIsoFromDepsTk.clone()
23 eleIsoFromDepsEcalFromHitsByCrystalFull03 = eleIsoFromDepsEcalFromHitsByCrystal.clone()
24 eleIsoFromDepsEcalFromHitsByCrystalFull04 = eleIsoFromDepsEcalFromHitsByCrystal.clone()
25 eleIsoFromDepsEcalFromHitsByCrystalReduced03 = eleIsoFromDepsEcalFromHitsByCrystal.clone()
26 eleIsoFromDepsEcalFromHitsByCrystalReduced04 = eleIsoFromDepsEcalFromHitsByCrystal.clone()
27 eleIsoFromDepsHcalFromTowers03 = eleIsoFromDepsHcalFromTowers.clone()
28 eleIsoFromDepsHcalFromTowers04 = eleIsoFromDepsHcalFromTowers.clone()
29 
30 # set the correct delta R
31 eleIsoFromDepsTk03.deposits[0].deltaR = 0.3
32 eleIsoFromDepsTk04.deposits[0].deltaR = 0.4
33 eleIsoFromDepsEcalFromHitsByCrystalFull03.deposits[0].deltaR = 0.3
34 eleIsoFromDepsEcalFromHitsByCrystalFull04.deposits[0].deltaR = 0.4
35 eleIsoFromDepsEcalFromHitsByCrystalReduced03.deposits[0].deltaR = 0.3
36 eleIsoFromDepsEcalFromHitsByCrystalReduced04.deposits[0].deltaR = 0.4
37 eleIsoFromDepsHcalFromTowers03.deposits[0].deltaR = 0.3
38 eleIsoFromDepsHcalFromTowers04.deposits[0].deltaR = 0.4
39 
40 # change the source on the ECAL hits to make sure to get the reduced or full collection
41 
42 eleIsoFromDepsEcalFromHitsByCrystalFull03.deposits[0].src = "eleIsoDepositEcalFromHitsFull"
43 eleIsoFromDepsEcalFromHitsByCrystalFull04.deposits[0].src = "eleIsoDepositEcalFromHitsFull"
44 eleIsoFromDepsEcalFromHitsByCrystalReduced03.deposits[0].src = "eleIsoDepositEcalFromHitsReduced"
45 eleIsoFromDepsEcalFromHitsByCrystalReduced04.deposits[0].src = "eleIsoDepositEcalFromHitsReduced"
46 
47 # the sequence
48 
49 electronIsoFromDeps = cms.Sequence(
50  eleIsoDepositTk*eleIsoDepositEcalFromHitsFull*
51  eleIsoDepositEcalFromHitsReduced*
52  eleIsoDepositHcalFromTowers*
53  eleIsoFromDepsTk03*
54  eleIsoFromDepsTk04*
55  eleIsoFromDepsEcalFromHitsByCrystalFull03*
56  eleIsoFromDepsEcalFromHitsByCrystalFull04*
57  eleIsoFromDepsEcalFromHitsByCrystalReduced03*
58  eleIsoFromDepsEcalFromHitsByCrystalReduced04*
59  eleIsoFromDepsHcalFromTowers03*
60  eleIsoFromDepsHcalFromTowers04
61 )