1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
import FWCore.ParameterSet.Config as cms
process = cms.Process("ANALYSEMIP")
# Trigger ###
process.load("L1TriggerConfig.L1GtConfigProducers.L1GtConfig_cff")
process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.startup.L1Menu_startup_v3_Unprescaled_cff")
process.load("L1TriggerConfig.L1GtConfigProducers.L1GtBoardMapsConfig_cff")
process.load("L1TriggerConfig.L1ScalesProducers.L1MuTriggerScalesConfig_cff")
process.load("L1TriggerConfig.L1ScalesProducers.L1MuTriggerPtScaleConfig_cff")
import FWCore.Modules.printContent_cfi
process.dumpEv = FWCore.Modules.printContent_cfi.printContent.clone()
import EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi
process.gtDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone()
process.gtDigis.DaqGtInputTag = 'source'
# ECAL Unpacker ###
process.load("EventFilter.EcalRawToDigi.EcalUnpackerMapping_cfi")
process.load("EventFilter.EcalRawToDigi.EcalUnpackerData_cfi")
# ECAL TPG Producer ###
process.load("Geometry.EcalMapping.EcalMapping_cfi")
process.load("Geometry.EcalMapping.EcalMappingRecord_cfi")
process.load("MagneticField.Engine.volumeBasedMagneticField_cfi")
process.load("CalibCalorimetry.Configuration.Ecal_FakeConditions_cff")
# ECAL TPG Analyzer ###
process.load("Geometry.CaloEventSetup.CaloGeometry_cfi")
process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
process.tpparams = cms.ESSource("EmptyESSource",
recordName = cms.string('EcalTPGLinearizationConstRcd'),
iovIsRunNotTime = cms.bool(True),
firstValid = cms.vuint32(1)
)
process.tpparams2 = cms.ESSource("EmptyESSource",
recordName = cms.string('EcalTPGPedestalsRcd'),
iovIsRunNotTime = cms.bool(True),
firstValid = cms.vuint32(1)
)
process.tpparams3 = cms.ESSource("EmptyESSource",
recordName = cms.string('EcalTPGSlidingWindowRcd'),
iovIsRunNotTime = cms.bool(True),
firstValid = cms.vuint32(1)
)
process.tpparams4 = cms.ESSource("EmptyESSource",
recordName = cms.string('EcalTPGWeightIdMapRcd'),
iovIsRunNotTime = cms.bool(True),
firstValid = cms.vuint32(1)
)
process.tpparams5 = cms.ESSource("EmptyESSource",
recordName = cms.string('EcalTPGWeightGroupRcd'),
iovIsRunNotTime = cms.bool(True),
firstValid = cms.vuint32(1)
)
process.tpparams6 = cms.ESSource("EmptyESSource",
recordName = cms.string('EcalTPGLutGroupRcd'),
iovIsRunNotTime = cms.bool(True),
firstValid = cms.vuint32(1)
)
process.tpparams7 = cms.ESSource("EmptyESSource",
recordName = cms.string('EcalTPGLutIdMapRcd'),
iovIsRunNotTime = cms.bool(True),
firstValid = cms.vuint32(1)
)
process.tpparams8 = cms.ESSource("EmptyESSource",
recordName = cms.string('EcalTPGFineGrainEBIdMapRcd'),
iovIsRunNotTime = cms.bool(True),
firstValid = cms.vuint32(1)
)
process.tpparams9 = cms.ESSource("EmptyESSource",
recordName = cms.string('EcalTPGFineGrainEBGroupRcd'),
iovIsRunNotTime = cms.bool(True),
firstValid = cms.vuint32(1)
)
process.tpparams10 = cms.ESSource("EmptyESSource",
recordName = cms.string('EcalTPGFineGrainStripEERcd'),
iovIsRunNotTime = cms.bool(True),
firstValid = cms.vuint32(1)
)
process.tpparams11 = cms.ESSource("EmptyESSource",
recordName = cms.string('EcalTPGFineGrainTowerEERcd'),
iovIsRunNotTime = cms.bool(True),
firstValid = cms.vuint32(1)
)
process.tpparams12 = cms.ESSource("EmptyESSource",
recordName = cms.string('EcalTPGPhysicsConstRcd'),
iovIsRunNotTime = cms.bool(True),
firstValid = cms.vuint32(1)
)
process.EcalTrigPrimESProducer = cms.ESProducer("EcalTrigPrimESProducer",
DatabaseFile = cms.untracked.string('TPG_EB.txt')
)
process.ecalTriggerPrimitiveDigis = cms.EDProducer("EcalTrigPrimProducer",
InstanceEB = cms.string('ebDigis'),
InstanceEE = cms.string(''),
Label = cms.string('ecalEBunpacker'),
BarrelOnly = cms.bool(True),
Famos = cms.bool(False),
TcpOutput = cms.bool(False),
Debug = cms.bool(False),
binOfMaximum = cms.int32(6), ## optional from release 200 on, from 1-10
TTFHighEnergyEB = cms.double(1.0),
TTFHighEnergyEE = cms.double(1.0),
TTFLowEnergyEB = cms.double(1.0), ## this + the following is added from 140_pre4 on
TTFLowEnergyEE = cms.double(1.0)
)
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(100)
)
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring('rfio:/castor/cern.ch/cms//store/data/Commissioning08/Cosmics/RAW/v1/000/068/000/08E115E1-D1A5-DD11-BCE7-000423D99AA2.root')
)
process.tpAnalyzer = cms.EDAnalyzer("EcalTPGAnalyzer",
TPCollection = cms.InputTag("ecalEBunpacker","EcalTriggerPrimitives"),
TPEmulatorCollection = cms.InputTag("ecalTriggerPrimitiveDigis",""),
DigiCollectionEB = cms.InputTag("ecalEBunpacker","ebDigis"),
DigiCollectionEE = cms.InputTag("ecalEBunpacker","eeDigis"),
GTRecordCollection = cms.string('gtDigis'),
TrackMuonCollection = cms.string('globalCosmicMuons1LegBarrelOnly'),
Print = cms.bool(True),
ReadTriggerPrimitives = cms.bool(True),
UseEndCap = cms.bool(False)
)
process.p = cms.Path(process.gtDigis*process.ecalEBunpacker*process.ecalTriggerPrimitiveDigis*process.tpAnalyzer)
process.EcalTrigPrimESProducer.DatabaseFile = 'TPG_startup.txt.gz'
|