test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 = cms.InputTag("ecalRecHit","EcalRecHitsEB")
14 eleIsoDepositEcalFromHitsFull.ExtractorPSet.endcapEcalHits = cms.InputTag("ecalRecHit","EcalRecHitsEE")
15 eleIsoDepositEcalFromHitsReduced.ExtractorPSet.barrelEcalHits = cms.InputTag("reducedEcalRecHitsEB")
16 eleIsoDepositEcalFromHitsReduced.ExtractorPSet.endcapEcalHits = cms.InputTag("reducedEcalRecHitsEE")
17 
18 # clone the value map producers for each DR
19 
20 eleIsoFromDepsTk03 = eleIsoFromDepsTk.clone()
21 eleIsoFromDepsTk04 = eleIsoFromDepsTk.clone()
22 eleIsoFromDepsEcalFromHitsByCrystalFull03 = eleIsoFromDepsEcalFromHitsByCrystal.clone()
23 eleIsoFromDepsEcalFromHitsByCrystalFull04 = eleIsoFromDepsEcalFromHitsByCrystal.clone()
24 eleIsoFromDepsEcalFromHitsByCrystalReduced03 = eleIsoFromDepsEcalFromHitsByCrystal.clone()
25 eleIsoFromDepsEcalFromHitsByCrystalReduced04 = eleIsoFromDepsEcalFromHitsByCrystal.clone()
26 eleIsoFromDepsHcalFromTowers03 = eleIsoFromDepsHcalFromTowers.clone()
27 eleIsoFromDepsHcalFromTowers04 = eleIsoFromDepsHcalFromTowers.clone()
28 
29 # set the correct delta R
30 eleIsoFromDepsTk03.deposits[0].deltaR = 0.3
31 eleIsoFromDepsTk04.deposits[0].deltaR = 0.4
32 eleIsoFromDepsEcalFromHitsByCrystalFull03.deposits[0].deltaR = 0.3
33 eleIsoFromDepsEcalFromHitsByCrystalFull04.deposits[0].deltaR = 0.4
34 eleIsoFromDepsEcalFromHitsByCrystalReduced03.deposits[0].deltaR = 0.3
35 eleIsoFromDepsEcalFromHitsByCrystalReduced04.deposits[0].deltaR = 0.4
36 eleIsoFromDepsHcalFromTowers03.deposits[0].deltaR = 0.3
37 eleIsoFromDepsHcalFromTowers04.deposits[0].deltaR = 0.4
38 
39 # change the source on the ECAL hits to make sure to get the reduced or full collection
40 
41 eleIsoFromDepsEcalFromHitsByCrystalFull03.deposits[0].src = "eleIsoDepositEcalFromHitsFull"
42 eleIsoFromDepsEcalFromHitsByCrystalFull04.deposits[0].src = "eleIsoDepositEcalFromHitsFull"
43 eleIsoFromDepsEcalFromHitsByCrystalReduced03.deposits[0].src = "eleIsoDepositEcalFromHitsReduced"
44 eleIsoFromDepsEcalFromHitsByCrystalReduced04.deposits[0].src = "eleIsoDepositEcalFromHitsReduced"
45 
46 # the sequence
47 
48 electronIsoFromDeps = cms.Sequence(
49  eleIsoDepositTk*eleIsoDepositEcalFromHitsFull*
50  eleIsoDepositEcalFromHitsReduced*
51  eleIsoDepositHcalFromTowers*
52  eleIsoFromDepsTk03*
53  eleIsoFromDepsTk04*
54  eleIsoFromDepsEcalFromHitsByCrystalFull03*
55  eleIsoFromDepsEcalFromHitsByCrystalFull04*
56  eleIsoFromDepsEcalFromHitsByCrystalReduced03*
57  eleIsoFromDepsEcalFromHitsByCrystalReduced04*
58  eleIsoFromDepsHcalFromTowers03*
59  eleIsoFromDepsHcalFromTowers04
60 )