test
CMS 3D CMS Logo

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