Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002
00003 process = cms.Process("Castor")
00004
00005 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
00006
00007 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
00008
00009 process.load("Configuration.StandardSequences.GeometryExtended_cff")
00010 process.load("Configuration.EventContent.EventContent_cff")
00011
00012 process.load("SimG4Core.Application.g4SimHits_cfi")
00013 process.load("Configuration.StandardSequences.Generator_cff")
00014 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
00015 process.load("Geometry.CaloEventSetup.CaloGeometry_cff")
00016
00017 process.load("SimCalorimetry.CastorSim.castordigi_cfi")
00018
00019 process.load("RecoLocalCalo.CastorReco.CastorSimpleReconstructor_cfi")
00020
00021
00022 process.load("CondCore.DBCommon.CondDBSetup_cfi")
00023 process.load("CondCore.DBCommon.CondDBCommon_cfi")
00024
00025 process.load('RecoLocalCalo.Castor.Castor_cff')
00026 process.castor_db_producer = cms.ESProducer("CastorDbProducer")
00027
00028 process.MessageLogger = cms.Service("MessageLogger",
00029 destinations = cms.untracked.vstring('cout')
00030 )
00031
00032 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
00033
00034 process.RandomNumberGeneratorService.theSource.initialSeed = 15298183
00035 process.RandomNumberGeneratorService.Generator.initialSeed = 12503027
00036 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 11120000
00037 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 151
00038 process.RandomNumberGeneratorService.mix.initialSeed = 14575
00039 process.RandomNumberGeneratorService.simCastorDigis.initialSeed = 26
00040
00041
00042
00043 process.maxEvents = cms.untracked.PSet(
00044 input = cms.untracked.int32(1)
00045 )
00046 process.load("Configuration.Generator.QCD_Pt_15_20_cfi")
00047
00048 process.es_pool = cms.ESSource( "PoolDBESSource",
00049 process.CondDBSetup,
00050 timetype = cms.string('runnumber'),
00051
00052 connect = cms.string('sqlite_file:testExample.db'),
00053 authenticationMethod = cms.untracked.uint32(0),
00054 toGet = cms.VPSet(
00055 cms.PSet(
00056 record = cms.string('CastorPedestalsRcd'),
00057 tag = cms.string('castor_pedestals_v1.0_test')
00058 ),
00059 cms.PSet(
00060 record = cms.string('CastorPedestalWidthsRcd'),
00061 tag = cms.string('castor_widths_v1.0_test')
00062 ),
00063 cms.PSet(
00064 record = cms.string('CastorGainsRcd'),
00065 tag = cms.string('castor_gains_v1.0_test')
00066 ),
00067 cms.PSet(
00068 record = cms.string('CastorQIEDataRcd'),
00069 tag = cms.string('castor_qie_v1.0_test')
00070 ),
00071 cms.PSet(
00072 record = cms.string('CastorElectronicsMapRcd'),
00073 tag = cms.string('castor_emap_v1.0_test')
00074 ),
00075 cms.PSet(
00076 record = cms.string('CastorChannelQualityRcd'),
00077 tag = cms.string('castor_channelstatus_v1.0_test')
00078
00079 )
00080
00081 )
00082 )
00083 process.es_hardcode = cms.ESSource("CastorHardcodeCalibrations",
00084 toGet = cms.untracked.vstring('GainWidths')
00085 )
00086
00087
00088 process.CaloSD = cms.PSet(
00089 DetailedTiming = cms.bool(False),
00090 EminTrack = cms.double(1.0),
00091 Verbosity = cms.int32(0),
00092 UseMap = cms.bool(True),
00093 CheckHits = cms.int32(25)
00094 )
00095
00096
00097
00098 process.common_maximum_timex = cms.PSet(
00099 MaxTrackTime = cms.double(500.0),
00100 MaxTimeNames = cms.vstring(),
00101 MaxTrackTimes = cms.vdouble()
00102 )
00103
00104
00105 process.o1 = cms.OutputModule("PoolOutputModule",
00106 fileName = cms.untracked.string('Castor.root')
00107 )
00108
00109 process.p1 = cms.Path(process.Generator*process.pgen*process.VtxSmeared*process.g4SimHits*process.mix*process.simCastorDigis*process.CastorReco*process.CastorFullReco)
00110 process.outpath=cms.EndPath(process.o1)
00111
00112 process.g4SimHits.UseMagneticField = False
00113 process.g4SimHits.Physics.DefaultCutValue = 10.
00114
00115 process.g4SimHits.Generator.ApplyEtaCuts = False
00116 process.g4SimHits.UseMagneticField = False
00117
00118 process.g4SimHits.CaloTrkProcessing.TestBeam = True
00119
00120 process.g4SimHits.StackingAction = cms.PSet(
00121 process.common_heavy_suppression,
00122 process.common_maximum_timex,
00123 TrackNeutrino = cms.bool(False),
00124 KillHeavy = cms.bool(False),
00125 SaveFirstLevelSecondary = cms.untracked.bool(True),
00126 SavePrimaryDecayProductsAndConversionsInTracker = cms.untracked.bool(True),
00127 SavePrimaryDecayProductsAndConversionsInCalo = cms.untracked.bool(True),
00128 SavePrimaryDecayProductsAndConversionsInMuon = cms.untracked.bool(True)
00129 )
00130
00131 process.g4SimHits.SteppingAction = cms.PSet(
00132 process.common_maximum_timex,
00133 KillBeamPipe = cms.bool(True),
00134 CriticalEnergyForVacuum = cms.double(2.0),
00135 CriticalDensity = cms.double(1e-15),
00136 EkinNames = cms.vstring(),
00137 EkinThresholds = cms.vdouble(),
00138 EkinParticles = cms.vstring(),
00139 Verbosity = cms.untracked.int32(0)
00140 )
00141
00142
00143
00144
00145
00146