File indexing completed on 2024-04-06 12:29:21
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("Castor")
0004
0005 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0006
0007 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0008
0009 process.load("Configuration.StandardSequences.GeometryExtended_cff")
0010 process.load("Configuration.EventContent.EventContent_cff")
0011
0012 process.load("SimG4Core.Application.g4SimHits_cfi")
0013 process.load("Configuration.StandardSequences.Generator_cff")
0014 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
0015 process.load("Geometry.CaloEventSetup.CaloGeometry_cff")
0016
0017 process.load("SimCalorimetry.CastorSim.castordigi_cfi")
0018
0019 process.load("RecoLocalCalo.CastorReco.CastorSimpleReconstructor_cfi")
0020
0021
0022 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0023 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0024
0025 process.load('RecoLocalCalo.Castor.Castor_cff')
0026 process.castor_db_producer = cms.ESProducer("CastorDbProducer")
0027
0028 process.MessageLogger = cms.Service("MessageLogger",
0029 destinations = cms.untracked.vstring('cout')
0030 )
0031
0032 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
0033
0034 process.RandomNumberGeneratorService.theSource.initialSeed = 15298183
0035 process.RandomNumberGeneratorService.generator.initialSeed = 12503027
0036 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 11120000
0037 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 151
0038 process.RandomNumberGeneratorService.mix.initialSeed = 14575
0039 process.RandomNumberGeneratorService.simCastorDigis.initialSeed = 26
0040
0041
0042
0043 process.maxEvents = cms.untracked.PSet(
0044 input = cms.untracked.int32(1)
0045 )
0046 process.load("Configuration.Generator.QCD_Pt_15_20_cfi")
0047
0048 process.es_pool = cms.ESSource( "PoolDBESSource",
0049 process.CondDBSetup,
0050 timetype = cms.string('runnumber'),
0051
0052 connect = cms.string('sqlite_file:testExample.db'),
0053 authenticationMethod = cms.untracked.uint32(0),
0054 toGet = cms.VPSet(
0055 cms.PSet(
0056 record = cms.string('CastorPedestalsRcd'),
0057 tag = cms.string('castor_pedestals_v1.0_test')
0058 ),
0059 cms.PSet(
0060 record = cms.string('CastorPedestalWidthsRcd'),
0061 tag = cms.string('castor_widths_v1.0_test')
0062 ),
0063 cms.PSet(
0064 record = cms.string('CastorGainsRcd'),
0065 tag = cms.string('castor_gains_v1.0_test')
0066 ),
0067 cms.PSet(
0068 record = cms.string('CastorQIEDataRcd'),
0069 tag = cms.string('castor_qie_v1.0_test')
0070 ),
0071 cms.PSet(
0072 record = cms.string('CastorElectronicsMapRcd'),
0073 tag = cms.string('castor_emap_v1.0_test')
0074 ),
0075 cms.PSet(
0076 record = cms.string('CastorChannelQualityRcd'),
0077 tag = cms.string('castor_channelstatus_v1.0_test')
0078
0079 )
0080
0081 )
0082 )
0083 process.es_hardcode = cms.ESSource("CastorHardcodeCalibrations",
0084 toGet = cms.untracked.vstring('GainWidths')
0085 )
0086
0087
0088 process.CaloSD = cms.PSet(
0089 DetailedTiming = cms.bool(False),
0090 EminTrack = cms.double(1.0),
0091 Verbosity = cms.int32(0),
0092 UseMap = cms.bool(True),
0093 CheckHits = cms.int32(25)
0094 )
0095
0096
0097
0098 process.common_maximum_timex = cms.PSet(
0099 MaxTrackTime = cms.double(500.0),
0100 MaxTimeNames = cms.vstring(),
0101 MaxTrackTimes = cms.vdouble()
0102 )
0103
0104
0105 process.o1 = cms.OutputModule("PoolOutputModule",
0106 fileName = cms.untracked.string('castor.root')
0107 )
0108
0109 process.p1 = cms.Path(process.generator*process.pgen*process.VtxSmeared*process.g4SimHits*process.mix*process.simCastorDigis*process.castorreco*process.CastorFullReco)
0110 process.outpath=cms.EndPath(process.o1)
0111
0112 process.g4SimHits.UseMagneticField = False
0113 process.g4SimHits.Physics.DefaultCutValue = 10.
0114
0115 process.g4SimHits.Generator.ApplyEtaCuts = False
0116 process.g4SimHits.UseMagneticField = False
0117
0118 process.g4SimHits.CaloTrkProcessing.TestBeam = True
0119
0120 process.g4SimHits.StackingAction = cms.PSet(
0121 process.common_heavy_suppression,
0122 process.common_maximum_timex,
0123 TrackNeutrino = cms.bool(False),
0124 KillHeavy = cms.bool(False),
0125 SaveFirstLevelSecondary = cms.untracked.bool(True),
0126 SavePrimaryDecayProductsAndConversionsInTracker = cms.untracked.bool(True),
0127 SavePrimaryDecayProductsAndConversionsInCalo = cms.untracked.bool(True),
0128 SavePrimaryDecayProductsAndConversionsInMuon = cms.untracked.bool(True)
0129 )
0130
0131 process.g4SimHits.SteppingAction = cms.PSet(
0132 process.common_maximum_timex,
0133 KillBeamPipe = cms.bool(True),
0134 CriticalEnergyForVacuum = cms.double(2.0),
0135 CriticalDensity = cms.double(1e-15),
0136 EkinNames = cms.vstring(),
0137 EkinThresholds = cms.vdouble(),
0138 EkinParticles = cms.vstring(),
0139 Verbosity = cms.untracked.int32(0)
0140 )
0141
0142
0143
0144
0145
0146