CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/SimCalorimetry/CastorSim/data/CastorDigiReco.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("CASTORDIGIVALIDATION")
00004 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
00005 process.load("Geometry.CaloEventSetup.CaloGeometry_cff")
00006 
00007 process.load("SimCalorimetry.CastorSim.castordigi_cfi")
00008 
00009 process.load("RecoLocalCalo.CastorReco.CastorSimpleReconstructor_cfi")
00010 
00011 process.load("Configuration.StandardSequences.GeometryExtended_cff")
00012 
00013 
00014 process.load("CondCore.DBCommon.CondDBSetup_cfi")
00015 process.load("CondCore.DBCommon.CondDBCommon_cfi")
00016 
00017 
00018 process.castor_db_producer = cms.ESProducer("CastorDbProducer")
00019 
00020 
00021 process.source = cms.Source("PoolSource",
00022 duplicateCheckMode = cms.untracked.string("checkEachFile"),
00023     debugFlag = cms.untracked.bool(True),
00024     debugVebosity = cms.untracked.uint32(100),
00025  fileNames = cms.untracked.vstring(
00026 #'rfio:/castor/cern.ch/user/o/ochesanu/CMSSW_310_pre6/pions/output_300_50.00_50.01_1.pool.root'
00027 'file:/afs/cern.ch/user/o/ochesanu/scratch0/CMSSW_3_2_5/src/SimG4CMS/Forward/python/test/sim_pion.root'
00028 )
00029 )
00030 
00031 
00032 
00033 process.es_pool = cms.ESSource( "PoolDBESSource",
00034      process.CondDBSetup,
00035      timetype = cms.string('runnumber'),
00036 #   connect = cms.string('frontier://cmsfrontier.cern.ch:8000/FrontierPrep/CMS_COND_30X_HCAL'),
00037     connect = cms.string('sqlite_fle:testExample.db'),
00038      authenticationMethod = cms.untracked.uint32(0),
00039      toGet = cms.VPSet(
00040          cms.PSet(
00041              record = cms.string('CastorPedestalsRcd'),
00042              tag = cms.string('castor_pedestals_v1.0_test')
00043              ),
00044          cms.PSet(
00045              record = cms.string('CastorPedestalWidthsRcd'),
00046              tag = cms.string('castor_widths_v1.0_test')
00047              ),
00048          cms.PSet(
00049              record = cms.string('CastorGainsRcd'),
00050              tag = cms.string('castor_gains_v1.0_test')
00051              ),
00052          cms.PSet(
00053              record = cms.string('CastorQIEDataRcd'),
00054              tag = cms.string('castor_qie_v1.0_test')
00055              ),
00056          cms.PSet(
00057              record = cms.string('CastorElectronicsMapRcd'),
00058              tag = cms.string('castor_emap_v1.0_test')
00059               ),
00060          cms.PSet(
00061              record = cms.string('CastorChannelQualityRcd'),
00062              tag = cms.string('castor_channelstatus_v1.0_test')
00063 
00064              )
00065              
00066      )
00067 )
00068 process.es_hardcode = cms.ESSource("CastorHardcodeCalibrations",
00069      toGet = cms.untracked.vstring('GainWidths')
00070  )
00071 
00072 process.digiDumper = cms.EDFilter("HcalDigiDump")
00073 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
00074     moduleSeeds = cms.PSet(
00075         simCastorDigis = cms.untracked.uint32(12345)
00076     )
00077 )
00078 process.hitDumper = cms.EDFilter("HcalRecHitDump")
00079 
00080 process.hitAnalyzer = cms.EDAnalyzer("CastorHitAnalyzer")
00081 
00082 process.digiAnalyzer = cms.EDAnalyzer("CastorDigiAnalyzer")
00083 
00084 process.o1 = cms.OutputModule("PoolOutputModule",
00085     fileName = cms.untracked.string('digiout_pions50.root')
00086 )
00087 
00088 process.p = cms.Path(process.mix*process.simCastorDigis)
00089 #*process.castorreco)
00090 process.outpath = cms.EndPath(process.o1)
00091