1 import FWCore.ParameterSet.Config
as cms
3 process = cms.Process(
"CASTORDIGIVALIDATION")
4 process.load(
"SimGeneral.MixingModule.mixNoPU_cfi")
5 process.load(
"Geometry.CaloEventSetup.CaloGeometry_cff")
7 process.load(
"SimCalorimetry.CastorSim.castordigi_cfi")
9 process.load(
"RecoLocalCalo.CastorReco.CastorSimpleReconstructor_cfi")
11 process.load(
"Configuration.StandardSequences.GeometryExtended_cff")
14 process.load(
"CondCore.DBCommon.CondDBSetup_cfi")
15 process.load(
"CondCore.DBCommon.CondDBCommon_cfi")
18 process.castor_db_producer = cms.ESProducer(
"CastorDbProducer")
21 process.source = cms.Source(
"PoolSource",
22 duplicateCheckMode = cms.untracked.string(
"checkEachFile"),
23 debugFlag = cms.untracked.bool(
True),
24 debugVebosity = cms.untracked.uint32(100),
25 fileNames = cms.untracked.vstring(
27 'file:/afs/cern.ch/user/o/ochesanu/scratch0/CMSSW_3_2_5/src/SimG4CMS/Forward/python/test/sim_pion.root' 33 process.es_pool = cms.ESSource(
"PoolDBESSource",
35 timetype = cms.string(
'runnumber'),
37 connect = cms.string(
'sqlite_fle:testExample.db'),
38 authenticationMethod = cms.untracked.uint32(0),
41 record = cms.string(
'CastorPedestalsRcd'),
42 tag = cms.string(
'castor_pedestals_v1.0_test')
45 record = cms.string(
'CastorPedestalWidthsRcd'),
46 tag = cms.string(
'castor_widths_v1.0_test')
49 record = cms.string(
'CastorGainsRcd'),
50 tag = cms.string(
'castor_gains_v1.0_test')
53 record = cms.string(
'CastorQIEDataRcd'),
54 tag = cms.string(
'castor_qie_v1.0_test')
57 record = cms.string(
'CastorElectronicsMapRcd'),
58 tag = cms.string(
'castor_emap_v1.0_test')
61 record = cms.string(
'CastorChannelQualityRcd'),
62 tag = cms.string(
'castor_channelstatus_v1.0_test')
68 process.es_hardcode = cms.ESSource(
"CastorHardcodeCalibrations",
69 toGet = cms.untracked.vstring(
'GainWidths')
72 process.digiDumper = cms.EDFilter(
"HcalDigiDump")
73 process.RandomNumberGeneratorService = cms.Service(
"RandomNumberGeneratorService",
74 moduleSeeds = cms.PSet(
75 simCastorDigis = cms.untracked.uint32(12345)
78 process.hitDumper = cms.EDFilter(
"HcalRecHitDump")
80 process.hitAnalyzer = cms.EDAnalyzer(
"CastorHitAnalyzer")
82 process.digiAnalyzer = cms.EDAnalyzer(
"CastorDigiAnalyzer")
84 process.o1 = cms.OutputModule(
"PoolOutputModule",
85 fileName = cms.untracked.string(
'digiout_pions50.root')
88 process.p = cms.Path(process.mix*process.simCastorDigis)
90 process.outpath = cms.EndPath(process.o1)