Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:38

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROTPGD")
0004 
0005 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0006 
0007 # ecal mapping
0008 process.load("Geometry.EcalMapping.EcalMapping_cfi")
0009 
0010 process.load("Geometry.EcalMapping.EcalMappingRecord_cfi")
0011 
0012 # magnetic field
0013 process.load("Configuration.StandardSequences.MagneticField_cff")
0014 
0015 # Calo geometry service model
0016 process.load("Geometry.CaloEventSetup.CaloGeometry_cfi")
0017 
0018 # Calo geometry service model
0019 process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
0020 
0021 # IdealGeometryRecord
0022 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0023 
0024 process.load("CalibCalorimetry.Configuration.Ecal_FakeConditions_cff")
0025 
0026 
0027 process.load("SimCalorimetry.EcalTrigPrimProducers.ecalTriggerPrimitiveDigis_readDBOffline_cff")
0028 
0029 process.source = cms.Source("PoolSource",
0030     fileNames = cms.untracked.vstring('file:/data/uberthon/tpg/elec_unsupp_pt10-100.root')
0031 )
0032 
0033 process.maxEvents = cms.untracked.PSet(
0034     input = cms.untracked.int32(10)
0035 )
0036 
0037 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0038 
0039 
0040 process.ecalTPConditions = cms.ESSource("PoolDBESSource",
0041     process.CondDBSetup,
0042     loadAll = cms.bool(True),
0043     toGet = cms.VPSet(cms.PSet(
0044         record = cms.string('EcalTPGPedestalsRcd'),
0045         tag = cms.string('EcalTPGPedestals_craft')
0046     ), 
0047         cms.PSet(
0048             record = cms.string('EcalTPGLinearizationConstRcd'),
0049             tag = cms.string('EcalTPGLinearizationConst_craft')
0050         ), 
0051         cms.PSet(
0052             record = cms.string('EcalTPGSlidingWindowRcd'),
0053             tag = cms.string('EcalTPGSlidingWindow_craft')
0054         ), 
0055         cms.PSet(
0056             record = cms.string('EcalTPGFineGrainEBIdMapRcd'),
0057             tag = cms.string('EcalTPGFineGrainEBIdMap_craft')
0058         ), 
0059         cms.PSet(
0060             record = cms.string('EcalTPGFineGrainStripEERcd'),
0061             tag = cms.string('EcalTPGFineGrainStripEE_craft')
0062         ), 
0063         cms.PSet(
0064             record = cms.string('EcalTPGFineGrainTowerEERcd'),
0065             tag = cms.string('EcalTPGFineGrainTowerEE_craft')
0066         ), 
0067         cms.PSet(
0068             record = cms.string('EcalTPGLutIdMapRcd'),
0069             tag = cms.string('EcalTPGLutIdMap_craft')
0070         ), 
0071         cms.PSet(
0072             record = cms.string('EcalTPGWeightIdMapRcd'),
0073             tag = cms.string('EcalTPGWeightIdMap_craft')
0074         ), 
0075         cms.PSet(
0076             record = cms.string('EcalTPGWeightGroupRcd'),
0077             tag = cms.string('EcalTPGWeightGroup_craft')
0078         ), 
0079         cms.PSet(
0080             record = cms.string('EcalTPGLutGroupRcd'),
0081             tag = cms.string('EcalTPGLutGroup_craft')
0082         ), 
0083         cms.PSet(
0084             record = cms.string('EcalTPGFineGrainEBGroupRcd'),
0085             tag = cms.string('EcalTPGFineGrainEBGroup_craft')
0086         ), 
0087         cms.PSet(
0088             record = cms.string('EcalTPGPhysicsConstRcd'),
0089             tag = cms.string('EcalTPGPhysicsConst_craft')
0090         ),
0091     cms.PSet(    
0092         record = cms.string('EcalTPGCrystalStatusRcd'),
0093         tag = cms.string('EcalTPGCrystalStatus_craft')
0094     ),
0095     cms.PSet(    
0096         record = cms.string('EcalTPGTowerStatusRcd'),
0097         tag = cms.string('EcalTPGTowerStatus_craft')
0098     )),    
0099     messagelevel = cms.untracked.uint32(3),
0100     timetype = cms.string('runnumber'),
0101 #    connect = cms.string('oracle://ecalh4db/TEST02'),
0102     connect = cms.string('sqlite_file:DB_craft.db'),
0103     authenticationMethod = cms.untracked.uint32(1),
0104     loadBlobStreamer = cms.untracked.bool(True)
0105 )
0106         
0107     
0108 process.out = cms.OutputModule("PoolOutputModule",
0109     outputCommands = cms.untracked.vstring('drop *_*_*_*', 
0110         'keep *_simEcalTriggerPrimitiveDigis_*_*', 
0111         'keep *_ecalDigis_*_*', 
0112         'keep *_ecalRecHit_*_*', 
0113         'keep *_ecalWeightUncalibRecHit_*_*', 
0114         'keep PCaloHits_*_EcalHitsEB_*', 
0115         'keep PCaloHits_*_EcalHitsEE_*', 
0116         'keep edmHepMCProduct_*_*_*'),
0117     fileName = cms.untracked.string('TrigPrim_Em_DBOffline30x.root')
0118 )
0119 
0120 process.Timing = cms.Service("Timing")
0121 
0122 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck")
0123 
0124 process.MessageLogger = cms.Service("MessageLogger",
0125     cerr = cms.untracked.PSet(
0126         enable = cms.untracked.bool(False)
0127     ),
0128     cout = cms.untracked.PSet(
0129         DEBUG = cms.untracked.PSet(
0130             limit = cms.untracked.int32(0)
0131         ),
0132         EcalTPG = cms.untracked.PSet(
0133             limit = cms.untracked.int32(1000000)
0134         ),
0135         enable = cms.untracked.bool(True),
0136         threshold = cms.untracked.string('DEBUG')
0137     ),
0138     debugModules = cms.untracked.vstring('simEcalTriggerPrimitiveDigis')
0139 )
0140 
0141 process.p = cms.Path(process.simEcalTriggerPrimitiveDigis)
0142 process.outpath = cms.EndPath(process.out)
0143 
0144