1 import FWCore.ParameterSet.Config
as cms
3 process = cms.Process(
"Castor")
5 process.load(
"SimGeneral.HepPDTESSource.pdt_cfi")
7 process.load(
"IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
9 process.load(
"Configuration.StandardSequences.GeometryExtended_cff")
10 process.load(
"Configuration.EventContent.EventContent_cff")
12 process.load(
"SimG4Core.Application.g4SimHits_cfi")
13 process.load(
"Configuration.StandardSequences.Generator_cff")
14 process.load(
"SimGeneral.MixingModule.mixNoPU_cfi")
15 process.load(
"Geometry.CaloEventSetup.CaloGeometry_cff")
17 process.load(
"SimCalorimetry.CastorSim.castordigi_cfi")
19 process.load(
"RecoLocalCalo.CastorReco.CastorSimpleReconstructor_cfi")
22 process.load(
"CondCore.DBCommon.CondDBSetup_cfi")
23 process.load(
"CondCore.DBCommon.CondDBCommon_cfi")
25 process.load(
'RecoLocalCalo.Castor.Castor_cff')
26 process.castor_db_producer = cms.ESProducer(
"CastorDbProducer")
28 process.MessageLogger = cms.Service(
"MessageLogger",
29 destinations = cms.untracked.vstring(
'cout')
32 process.load(
"Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
34 process.RandomNumberGeneratorService.theSource.initialSeed = 15298183
35 process.RandomNumberGeneratorService.generator.initialSeed = 12503027
36 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 11120000
37 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 151
38 process.RandomNumberGeneratorService.mix.initialSeed = 14575
39 process.RandomNumberGeneratorService.simCastorDigis.initialSeed = 26
43 process.maxEvents = cms.untracked.PSet(
44 input = cms.untracked.int32(1)
46 process.load(
"Configuration.Generator.QCD_Pt_15_20_cfi")
48 process.es_pool = cms.ESSource(
"PoolDBESSource",
50 timetype = cms.string(
'runnumber'),
52 connect = cms.string(
'sqlite_file:testExample.db'),
53 authenticationMethod = cms.untracked.uint32(0),
56 record = cms.string(
'CastorPedestalsRcd'),
57 tag = cms.string(
'castor_pedestals_v1.0_test')
60 record = cms.string(
'CastorPedestalWidthsRcd'),
61 tag = cms.string(
'castor_widths_v1.0_test')
64 record = cms.string(
'CastorGainsRcd'),
65 tag = cms.string(
'castor_gains_v1.0_test')
68 record = cms.string(
'CastorQIEDataRcd'),
69 tag = cms.string(
'castor_qie_v1.0_test')
72 record = cms.string(
'CastorElectronicsMapRcd'),
73 tag = cms.string(
'castor_emap_v1.0_test')
76 record = cms.string(
'CastorChannelQualityRcd'),
77 tag = cms.string(
'castor_channelstatus_v1.0_test')
83 process.es_hardcode = cms.ESSource(
"CastorHardcodeCalibrations",
84 toGet = cms.untracked.vstring(
'GainWidths')
88 process.CaloSD = cms.PSet(
89 DetailedTiming = cms.bool(
False),
90 EminTrack = cms.double(1.0),
91 Verbosity = cms.int32(0),
92 UseMap = cms.bool(
True),
93 CheckHits = cms.int32(25)
98 process.common_maximum_timex = cms.PSet(
99 MaxTrackTime = cms.double(500.0),
100 MaxTimeNames = cms.vstring(),
101 MaxTrackTimes = cms.vdouble()
105 process.o1 = cms.OutputModule(
"PoolOutputModule",
106 fileName = cms.untracked.string(
'castor.root')
109 process.p1 = cms.Path(process.generator*process.pgen*process.VtxSmeared*process.g4SimHits*process.mix*process.simCastorDigis*process.castorreco*process.CastorFullReco)
110 process.outpath=cms.EndPath(process.o1)
112 process.g4SimHits.UseMagneticField =
False 113 process.g4SimHits.Physics.DefaultCutValue = 10.
115 process.g4SimHits.Generator.ApplyEtaCuts =
False 116 process.g4SimHits.UseMagneticField =
False 118 process.g4SimHits.CaloTrkProcessing.TestBeam =
True 120 process.g4SimHits.StackingAction = cms.PSet(
121 process.common_heavy_suppression,
122 process.common_maximum_timex,
123 TrackNeutrino = cms.bool(
False),
124 KillHeavy = cms.bool(
False),
125 SaveFirstLevelSecondary = cms.untracked.bool(
True),
126 SavePrimaryDecayProductsAndConversionsInTracker = cms.untracked.bool(
True),
127 SavePrimaryDecayProductsAndConversionsInCalo = cms.untracked.bool(
True),
128 SavePrimaryDecayProductsAndConversionsInMuon = cms.untracked.bool(
True)
131 process.g4SimHits.SteppingAction = cms.PSet(
132 process.common_maximum_timex,
133 KillBeamPipe = cms.bool(
True),
134 CriticalEnergyForVacuum = cms.double(2.0),
135 CriticalDensity = cms.double(1e-15),
136 EkinNames = cms.vstring(),
137 EkinThresholds = cms.vdouble(),
138 EkinParticles = cms.vstring(),
139 Verbosity = cms.untracked.int32(0)