CMS 3D CMS Logo

DetIdAssociatorESProducer_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Use this object to make changes when different configurations are active
4 
5 ecalDetIdAssociator = cms.ESProducer("DetIdAssociatorESProducer",
6  ComponentName = cms.string('EcalDetIdAssociator'),
7  etaBinSize = cms.double(0.02),
8  nEta = cms.int32(300),
9  nPhi = cms.int32(360)
10 )
11 
12 hcalDetIdAssociator = cms.ESProducer("DetIdAssociatorESProducer",
13  ComponentName = cms.string('HcalDetIdAssociator'),
14  etaBinSize = cms.double(0.087),
15  nEta = cms.int32(70),
16  nPhi = cms.int32(72),
17  hcalRegion = cms.int32(2)
18 )
19 
20 hoDetIdAssociator = cms.ESProducer("DetIdAssociatorESProducer",
21  ComponentName = cms.string('HODetIdAssociator'),
22  etaBinSize = cms.double(0.087),
23  nEta = cms.int32(30),
24  nPhi = cms.int32(72)
25 )
26 
27 caloDetIdAssociator = cms.ESProducer("DetIdAssociatorESProducer",
28  ComponentName = cms.string('CaloDetIdAssociator'),
29  etaBinSize = cms.double(0.087),
30  nEta = cms.int32(70),
31  nPhi = cms.int32(72)
32 )
33 
34 muonDetIdAssociator = cms.ESProducer("DetIdAssociatorESProducer",
35  ComponentName = cms.string('MuonDetIdAssociator'),
36  etaBinSize = cms.double(0.125),
37  nEta = cms.int32(48),
38  nPhi = cms.int32(48),
39  includeBadChambers = cms.bool(False),
40  includeGEM = cms.bool(False),
41  includeME0 = cms.bool(False)
42 )
43 
44 # If running in Run 2, include bad chambers
45 from Configuration.Eras.Modifier_run2_common_cff import run2_common
46 run2_common.toModify( muonDetIdAssociator, includeBadChambers = True )
47 
48 # include GEM & ME0 for phase2
49 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
50 run3_GEM.toModify( muonDetIdAssociator, includeGEM = True )
51 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
52 phase2_muon.toModify( muonDetIdAssociator, includeME0 = True )
53 phase2_muon.toModify( hcalDetIdAssociator, hcalRegion = 1 )
54 from Configuration.Eras.Modifier_phase2_GE0_cff import phase2_GE0
55 phase2_GE0.toModify( muonDetIdAssociator, includeME0 = False )
56 
57 preshowerDetIdAssociator = cms.ESProducer("DetIdAssociatorESProducer",
58  ComponentName = cms.string('PreshowerDetIdAssociator'),
59  etaBinSize = cms.double(0.1),
60  nEta = cms.int32(60),
61  nPhi = cms.int32(30)
62 )