CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/CaloOnlineTools/EcalTools/python/ecalTPGAnalyzer_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("ANALYSEMIP")
00004 
00005 # Trigger ###
00006 process.load("L1TriggerConfig.L1GtConfigProducers.L1GtConfig_cff")
00007 process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.startup.L1Menu_startup_v3_Unprescaled_cff")
00008 process.load("L1TriggerConfig.L1GtConfigProducers.L1GtBoardMapsConfig_cff")
00009 process.load("L1TriggerConfig.L1ScalesProducers.L1MuTriggerScalesConfig_cff")
00010 process.load("L1TriggerConfig.L1ScalesProducers.L1MuTriggerPtScaleConfig_cff")
00011 import FWCore.Modules.printContent_cfi
00012 process.dumpEv = FWCore.Modules.printContent_cfi.printContent.clone()
00013 import EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi
00014 process.gtDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone()
00015 process.gtDigis.DaqGtInputTag = 'source'
00016 
00017 # ECAL Unpacker ###
00018 process.load("EventFilter.EcalRawToDigi.EcalUnpackerMapping_cfi")
00019 process.load("EventFilter.EcalRawToDigi.EcalUnpackerData_cfi")
00020 
00021 # ECAL TPG Producer ###
00022 process.load("Geometry.EcalMapping.EcalMapping_cfi")
00023 process.load("Geometry.EcalMapping.EcalMappingRecord_cfi")
00024 process.load("MagneticField.Engine.volumeBasedMagneticField_cfi")
00025 process.load("CalibCalorimetry.Configuration.Ecal_FakeConditions_cff")
00026 
00027 # ECAL TPG Analyzer ###
00028 process.load("Geometry.CaloEventSetup.CaloGeometry_cfi")
00029 process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
00030 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
00031 
00032 process.tpparams = cms.ESSource("EmptyESSource",
00033     recordName = cms.string('EcalTPGLinearizationConstRcd'),
00034     iovIsRunNotTime = cms.bool(True),
00035     firstValid = cms.vuint32(1)
00036 )
00037 
00038 process.tpparams2 = cms.ESSource("EmptyESSource",
00039     recordName = cms.string('EcalTPGPedestalsRcd'),
00040     iovIsRunNotTime = cms.bool(True),
00041     firstValid = cms.vuint32(1)
00042 )
00043 
00044 process.tpparams3 = cms.ESSource("EmptyESSource",
00045     recordName = cms.string('EcalTPGSlidingWindowRcd'),
00046     iovIsRunNotTime = cms.bool(True),
00047     firstValid = cms.vuint32(1)
00048 )
00049 
00050 process.tpparams4 = cms.ESSource("EmptyESSource",
00051     recordName = cms.string('EcalTPGWeightIdMapRcd'),
00052     iovIsRunNotTime = cms.bool(True),
00053     firstValid = cms.vuint32(1)
00054 )
00055 
00056 process.tpparams5 = cms.ESSource("EmptyESSource",
00057     recordName = cms.string('EcalTPGWeightGroupRcd'),
00058     iovIsRunNotTime = cms.bool(True),
00059     firstValid = cms.vuint32(1)
00060 )
00061 
00062 process.tpparams6 = cms.ESSource("EmptyESSource",
00063     recordName = cms.string('EcalTPGLutGroupRcd'),
00064     iovIsRunNotTime = cms.bool(True),
00065     firstValid = cms.vuint32(1)
00066 )
00067 
00068 process.tpparams7 = cms.ESSource("EmptyESSource",
00069     recordName = cms.string('EcalTPGLutIdMapRcd'),
00070     iovIsRunNotTime = cms.bool(True),
00071     firstValid = cms.vuint32(1)
00072 )
00073 
00074 process.tpparams8 = cms.ESSource("EmptyESSource",
00075     recordName = cms.string('EcalTPGFineGrainEBIdMapRcd'),
00076     iovIsRunNotTime = cms.bool(True),
00077     firstValid = cms.vuint32(1)
00078 )
00079 
00080 process.tpparams9 = cms.ESSource("EmptyESSource",
00081     recordName = cms.string('EcalTPGFineGrainEBGroupRcd'),
00082     iovIsRunNotTime = cms.bool(True),
00083     firstValid = cms.vuint32(1)
00084 )
00085 
00086 process.tpparams10 = cms.ESSource("EmptyESSource",
00087     recordName = cms.string('EcalTPGFineGrainStripEERcd'),
00088     iovIsRunNotTime = cms.bool(True),
00089     firstValid = cms.vuint32(1)
00090 )
00091 
00092 process.tpparams11 = cms.ESSource("EmptyESSource",
00093     recordName = cms.string('EcalTPGFineGrainTowerEERcd'),
00094     iovIsRunNotTime = cms.bool(True),
00095     firstValid = cms.vuint32(1)
00096 )
00097 
00098 process.tpparams12 = cms.ESSource("EmptyESSource",
00099     recordName = cms.string('EcalTPGPhysicsConstRcd'),
00100     iovIsRunNotTime = cms.bool(True),
00101     firstValid = cms.vuint32(1)
00102 )
00103 
00104 process.EcalTrigPrimESProducer = cms.ESProducer("EcalTrigPrimESProducer",
00105     DatabaseFile = cms.untracked.string('TPG_EB.txt')
00106 )
00107 
00108 process.ecalTriggerPrimitiveDigis = cms.EDProducer("EcalTrigPrimProducer",
00109     InstanceEB = cms.string('ebDigis'),
00110     InstanceEE = cms.string(''),
00111     Label = cms.string('ecalEBunpacker'),
00112 
00113     BarrelOnly = cms.bool(True),
00114     Famos = cms.bool(False),
00115     TcpOutput = cms.bool(False),
00116     Debug = cms.bool(False),
00117 
00118     binOfMaximum = cms.int32(6), ## optional from release 200 on, from 1-10
00119                                                    
00120     TTFHighEnergyEB = cms.double(1.0),
00121     TTFHighEnergyEE = cms.double(1.0),
00122     TTFLowEnergyEB = cms.double(1.0), ## this + the following is added from 140_pre4 on
00123     TTFLowEnergyEE = cms.double(1.0)
00124 )
00125 
00126 process.maxEvents = cms.untracked.PSet(
00127     input = cms.untracked.int32(100)
00128 )
00129 process.source = cms.source("PoolSource",
00130     fileNames = cms.untracked.vstring('rfio:/castor/cern.ch/cms//store/data/Commissioning08/Cosmics/RAW/v1/000/068/000/08E115E1-D1A5-DD11-BCE7-000423D99AA2.root')
00131 )
00132 
00133 
00134 
00135 process.tpAnalyzer = cms.EDAnalyzer("EcalTPGAnalyzer",
00136 
00137     TPCollection = cms.InputTag("ecalEBunpacker","EcalTriggerPrimitives"),
00138     TPEmulatorCollection =  cms.InputTag("ecalTriggerPrimitiveDigis",""),
00139     DigiCollectionEB = cms.InputTag("ecalEBunpacker","ebDigis"),
00140     DigiCollectionEE = cms.InputTag("ecalEBunpacker","eeDigis"),
00141     GTRecordCollection = cms.string('gtDigis'),
00142     TrackMuonCollection = cms.string('globalCosmicMuons1LegBarrelOnly'),
00143                                     
00144     Print = cms.bool(True),
00145     ReadTriggerPrimitives = cms.bool(True),                                    
00146     UseEndCap = cms.bool(False)
00147 
00148 )
00149 
00150 
00151 process.p = cms.Path(process.gtDigis*process.ecalEBunpacker*process.ecalTriggerPrimitiveDigis*process.tpAnalyzer)
00152 process.EcalTrigPrimESProducer.DatabaseFile = 'TPG_startup.txt.gz'
00153