Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("CASTORDIGIVALIDATION")
0004 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
0005 process.load("Geometry.CaloEventSetup.CaloGeometry_cff")
0006 
0007 process.load("SimCalorimetry.CastorSim.castordigi_cfi")
0008 
0009 process.load("RecoLocalCalo.CastorReco.CastorSimpleReconstructor_cfi")
0010 
0011 process.load("Configuration.StandardSequences.GeometryExtended_cff")
0012 
0013 
0014 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0015 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0016 
0017 
0018 process.castor_db_producer = cms.ESProducer("CastorDbProducer")
0019 
0020 
0021 process.source = cms.Source("PoolSource",
0022 duplicateCheckMode = cms.untracked.string("checkEachFile"),
0023     debugFlag = cms.untracked.bool(True),
0024     debugVebosity = cms.untracked.uint32(100),
0025  fileNames = cms.untracked.vstring(
0026 #'rfio:/castor/cern.ch/user/o/ochesanu/CMSSW_310_pre6/pions/output_300_50.00_50.01_1.pool.root'
0027 'file:/afs/cern.ch/user/o/ochesanu/scratch0/CMSSW_3_2_5/src/SimG4CMS/Forward/python/test/sim_pion.root'
0028 )
0029 )
0030 
0031 
0032 
0033 process.es_pool = cms.ESSource( "PoolDBESSource",
0034      process.CondDBSetup,
0035      timetype = cms.string('runnumber'),
0036 #   connect = cms.string('frontier://cmsfrontier.cern.ch:8000/FrontierPrep/CMS_COND_30X_HCAL'),
0037     connect = cms.string('sqlite_fle:testExample.db'),
0038      authenticationMethod = cms.untracked.uint32(0),
0039      toGet = cms.VPSet(
0040          cms.PSet(
0041              record = cms.string('CastorPedestalsRcd'),
0042              tag = cms.string('castor_pedestals_v1.0_test')
0043              ),
0044          cms.PSet(
0045              record = cms.string('CastorPedestalWidthsRcd'),
0046              tag = cms.string('castor_widths_v1.0_test')
0047              ),
0048          cms.PSet(
0049              record = cms.string('CastorGainsRcd'),
0050              tag = cms.string('castor_gains_v1.0_test')
0051              ),
0052          cms.PSet(
0053              record = cms.string('CastorQIEDataRcd'),
0054              tag = cms.string('castor_qie_v1.0_test')
0055              ),
0056          cms.PSet(
0057              record = cms.string('CastorElectronicsMapRcd'),
0058              tag = cms.string('castor_emap_v1.0_test')
0059               ),
0060          cms.PSet(
0061              record = cms.string('CastorChannelQualityRcd'),
0062              tag = cms.string('castor_channelstatus_v1.0_test')
0063 
0064              )
0065          
0066      )
0067 )
0068 process.es_hardcode = cms.ESSource("CastorHardcodeCalibrations",
0069      toGet = cms.untracked.vstring('GainWidths')
0070  )
0071 
0072 process.digiDumper = cms.EDFilter("HcalDigiDump")
0073 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0074     moduleSeeds = cms.PSet(
0075         simCastorDigis = cms.untracked.uint32(12345)
0076     )
0077 )
0078 process.hitDumper = cms.EDFilter("HcalRecHitDump")
0079 
0080 process.hitAnalyzer = cms.EDAnalyzer("CastorHitAnalyzer")
0081 
0082 process.digiAnalyzer = cms.EDAnalyzer("CastorDigiAnalyzer")
0083 
0084 process.o1 = cms.OutputModule("PoolOutputModule",
0085     fileName = cms.untracked.string('digiout_pions50.root')
0086 )
0087 
0088 process.p = cms.Path(process.mix*process.simCastorDigis)
0089 #*process.castorreco)
0090 process.outpath = cms.EndPath(process.o1)
0091